This cluster consists of
- external service
- internal service
- mongodb deployment
- mongo-express deployment
I managed it using miniKube on local environment Steps to recreate
- you have to have
kubectl
andminikube
installedsudo apt install kubectl minikube
- to run configuration files in
kubectl
note sequence of applying is important because we have some references make sure you run thekubectl apply -f [filename]
configmap
andsecret
before other files that reference them - run
kubectl get services
to make sure the services is alive, if you're usingminikube
you'll see that theexternal ip
is pending - if you're using
minikube
you have to runminikube service [service-name]
to specifyEXTERNAL-IP
- DONE - we finished setting up the cluster