Getting started with MSA (Micro Service Architecture) using Docker, Kubernetes and Helm Charts.
- Used minikube to setup Kubernetes cluster.
- Setup script for Ubuntu (18.0.4 LTS) on AWS that installs all dependencies (Docker, Kubernetes, Minikube).
minikube start --vm-driver=none
If there was a previous deployment on the instance, it might be necessary to override the previous configuration
sudo mv /root/.kube $HOME/.kube
sudo mv /root/.minikube $HOME/.minikube
sudo chown -R $USER $HOME/.kube
sudo chgrp -R $USER $HOME/.kube
sudo chown -R $USER $HOME/.minikube
sudo chgrp -R $USER $HOME/.minikube
minikube status
kubectl create -f deployment.yaml
minikube ip
kubectl get deployments msadeployment
kubectl describe deployments msadeployment
kubectl get services msaservice
kubectl describe services msaservice
curl http://<minikube ip>:<nodeport>
http://<ec2-instance-public-ip>:<nodeport>
To Clean up first delete the Service then delete the Deployment, the ReplicaSet, and the Pods that are running the app
kubectl delete deployment msadeployment
kubectl delete services msaservice