The Deployment created automatically a label for our Pod. With the describe deployment
subcommand you can see the name (the key) of that label:
kubectl describe deployment
If you haven't worked through the earlier sections, start from Using minikube to create a cluster.
Scaling is accomplished by changing the number of replicas in a Deployment
-NOTE If you are trying this after the previous section , you may need to start from creating a cluster as the services may have been deleted
+ {{< note >}} +If you are trying this after the previous section, you may have deleted the Service exposing the Deployment. In that case, please expose the Deployment again using the following command:
kubectl expose deployment/kubernetes-bootcamp --type="NodePort" --port 8080