Created
March 26, 2021 19:31
-
-
Save developer-guy/995d0166bbf1e93d3cc1a35e48078023 to your computer and use it in GitHub Desktop.
Define a Command and Arguments for a Container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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