11b0b64ab9
Some pods were missing `restartPolicy` which caused them to go in `CrashLoopBackoff`, so adding `restartPolicy` as `OnFailure`.
14 lines
265 B
YAML
14 lines
265 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: command-demo
|
|
labels:
|
|
purpose: demonstrate-command
|
|
spec:
|
|
containers:
|
|
- name: command-demo-container
|
|
image: debian
|
|
command: ["printenv"]
|
|
args: ["HOSTNAME", "KUBERNETES_PORT"]
|
|
restartPolicy: OnFailure
|