- Download and install Docker CE Edge. Make sure to download Edge build. 2. If you have kubectl already installed then delete $HOME/.kube folder.
- After installing Docker go to Docker settings, switch to 'Kubernetes' tab and check 'Enable Kubernetes' checkbox. Wait till it's been installed.
- Check Docker installation with
docker version
command. - Check Kubernetes installation with
kubectl version
command. - Download Helm and add it to PATH.
- Initialize Helm with
helm init
. - Check installation with
helm version
command. - Download and install dotnet SDK.
- Make sure dotnet core is installed with
dotnet --version
command. - Fetch dotnet Docker images we'll be using later:
docker pull microsoft/aspnetcore-build:2.0
docker pull microsoft/dotnet:2.0-runtime
- dotnet new empty -o k8sworkshop && cd k8sworkshop # create new project
- dotnet new globaljson # fix dotnet sdk version
- docker build -t k8sworkshop . # build docker image
- docker run -it --rm -p 5000:5000 --name myapp k8sworkshop # launch app in docker
- docker run -d --rm -p 5000:5000 --name myapp k8sworkshop # launch app in docker in background
- docker tag k8sworkshop targetprocess/k8sworkshop:initial
- docker push targetprocess/k8sworkshop:initial
- helm init # initialize helm
- cd helm
- helm install k8sworkshop --name k8sws # install helm chart
- kubectl get svc # view list of services
- open http://localhost:31264 in browser
- open https://github.com/kubernetes/ingress-nginx/blob/master/deploy/README.md.
- helm install stable/nginx-ingress --name ingress-nginx -f nginx-ingress/values.yaml
- kubectl get po # make sure that all pods are up and running
- open http://workshop.com:32080/k8s in browser
- helm del k8sws --purge # delete and then install with secret
- helm install k8sworkshop --name k8sws # install helm chart
- kubectl exec -it POD_NAME -- bash
- cat /secrets/secret.txt