Creating a Service and Discovering DNS Names in Kubernetes
PreviousDeploying a Pod to a Node with a Label in KubernetesNextScheduling Pods with Taints and Tolerations in Kubernetes
Last updated
Last updated
Use this command to create an nginx deployment:
Use this command to verify deployment was successful:
Use this command to create a service:
Use this command to verify the service was created:
Use the following YAML to create the busybox pod spec:
busybox.yaml
Use the following command to create the busybox pod:
Use the following command to verify the pod was created successfully:
Use the following command to query the DNS name of the nginx service:
Record the name: