March 2020
Intermediate to advanced
626 pages
14h 45m
English
To make sure that everything is in place, let's go ahead and carry out some checks:
$ kubectl create -f https://k8s.io/examples/admin/dns/busybox.yaml
$ kubectl run hostnames --image=k8s.gcr.io/serve_hostname \ --labels=app=hostnames \ --port=9376 \ --replicas=3
$ kubectl expose deployment hostnames --port=80 --target-port=9376
$ kubectl get podsNAME READY STATUS RESTARTS AGEbusybox 1/1 Running 0 13s
Read now
Unlock full access