The following commands need to be executed from the folder containing the YAML files:
$ kubectl apply -f deploy.yml -f svc-cloud.yml
deployment.apps/qsk-deploy created
service/cloud-lb created
Run the kubectl get deployments and kubectl get svc commands to ensure that the application and Service are running.
Get Deployments
$ kubectl get deployments
NAME READY UP-TO-DATE AVAILABLE AGE
qsk-deploy 5/5 5 5 4m
Get Services
$ kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
svc-cloud ClusterIP 10.128.97.167
It may take a minute for the Pods to enter the running phase, but as soon as they do, you can proceed to the next lesson.