Performing finalization checks

To make sure that everything is in place, let's go ahead and carry out some checks:

  1. Install busybox to  check and validate the Kubernetes deployments:
$ kubectl create -f https://k8s.io/examples/admin/dns/busybox.yaml
  1. Now install the hostname deployment. First, create a deployment:
$ kubectl run hostnames --image=k8s.gcr.io/serve_hostname 
--labels=app=hostnames
--port=9376
--replicas=3
  1. Next, create a service:
$ kubectl expose deployment hostnames --port=80 --target-port=9376
  1. Finally, perform a sanity check for the cluster. Check the pod with the following:
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
busybox 1/1 Running 0 13s
For more help regarding testing the cluster, you can visit https://kubernetes.io/docs/tasks/debug-application-cluster/debug-service/.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.140.5