Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Created March 26, 2021 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save developer-guy/995d0166bbf1e93d3cc1a35e48078023 to your computer and use it in GitHub Desktop.
Save developer-guy/995d0166bbf1e93d3cc1a35e48078023 to your computer and use it in GitHub Desktop.
Define a Command and Arguments for a Container
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment