Member-only story
Deploy and scale your first test application to Kubernetes in 2 min ?
1 min readSep 24, 2019
Yes, it is this fast and easy.
Go to https://cloud.google.com/kubernetes-engine/kubernetes-comic/ , then you can read/enjoy the k8s comic ! Scroll or jump to the end. You will see two terminals. Just follow and type or copy/paste the commands in the top window.
All commands are:
gcloud container clusters create myCluster
kubectl run app — image gcr.io/google-samples/hello-app:1.0
kubectl scale deployment app --replicas 3
kubectl expose deployment app --port 80 --type=LoadBalancer
kubectl get service app
curl http://198.51.100.111:80 (IP can be different)
kubectl set image deployment app app=gcr.io/google-samples/hello-app:2.0
curl http://198.51.100.111:80 (IP can be different)
Congratulations ! You just deployed and scaled your first test application in Kubernetes and did a CI/CD demo in 2 min !