Demo to run Node.js in Docker container.
Run start_docker.sh script to automatically build and run the docker image.
kubectl create -f helloworld-v1.yaml
kubectl expose deployment hello-node --type="LoadBalancer"
kubectl apply -f helloworld-v2.yaml
To show pod labels:
kubectl get pods --show-labels
Scale with command line:
kubectl scale deployment hello-node --replicas=2
kubectl run deployments/helloworld-v1.yaml
kubectl get pods
kubectl expose deployment hello-node --type="LoadBalancer"
kubectl get svc hello-node
kubectl get services hello-node
kubectl describe svc hello-node
kubectl get services kube-dns --namespace=kube-system