$ kubectl get deployments hello-world
$ kubectl describe deployments hello-world

[create a Service object that exposes the deployment]
$ kubectl expose deployment hello-world --type=NodePort --name=example-service

[display information about the Service]
$ kubectl describe services example-service
Name:                   example-service
Namespace:              default
Labels:                 run=load-balancer-example
Annotations:            <none>
Selector:               run=load-balancer-example
Type:                   NodePort
IP:                     10.32.0.16
Port:                   <unset> 8080/TCP
TargetPort:             8080/TCP
NodePort:               <unset> 31496/TCP
Endpoints:              10.200.1.4:8080,10.200.2.5:8080
Session Affinity:       None
Events:                 <none>

[list the pods that are running the application]
$ kubectl get pods --selector="run=load-balancer-example" --output=wide
NAME                           READY   STATUS    ...  IP           NODE
hello-world-2895499144-bsbk5   1/1     Running   ...  10.200.1.4   worker1
hello-world-2895499144-m1pwt   1/1     Running   ...  10.200.2.5   worker2

[use the node address and node port to access the application]
$ curl http://<public-node-ip>:<node-port>

[delete the Service]
$ kubectl delete services example-service

[delete the Deployment, the ReplicaSet, and the Pods]
$ kubectl delete deployment hello-world
