May 2018
Intermediate to advanced
554 pages
13h 51m
English
For assigning a name to the Pod, follow the following steps:
# cat my-pod.yaml apiVersion: v1 kind: Pod metadata: name: my-pod spec: containers: - name: my-container image: nginx # kubectl create -f my-pod.yamlpod "my-pod" created# kubectl get podsNAME READY STATUS RESTARTS AGEmy-pod 0/1 Running 0 4s
$ kubectl describe pod my-podName: my-podNamespace: defaultNode: minikube/192.168.64.12Start Time: Sat, 16 Dec 2017 10:53:38 -0800Labels: <none>Annotations: ...