🔨 A demo project to run a simple .NET Core Web API in Kubernetes
- Point docker client to the minikube docker server
$ eval $(minikube docker-env)
- Building the docker image
$ docker-compose build
- Test locally using docker-compose
$ docker-compose up
- Deploy the pod, replica or the service
$ kubectl apply -f <path-to-config.yml>
- Check it in the Kube dashboard
$ minikube dashboard
$ minikube ip
$ kubectl get pod --namespace=<your-namespace>
In general it is
$ kubectl get <resource> --namespace=<your-namespace>
$ kubectl delete <resource> --namespace=<your-namespace>
$ minikube dashboard
$ kubectl config get-contexts