Apply this pod to a Kubernetes cluster:
kubectl apply -f simple_pod.yamlThis pod will be applied to the default namespace.
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: simple | |
| spec: | |
| containers: | |
| - image: ubuntu | |
| name: simple | |
| command: | |
| - "/bin/sh" | |
| - "-c" | |
| - "sleep 9999" |