Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 873 Bytes

05-Commands-and-Arguments-in-Kubernetes.md

File metadata and controls

23 lines (20 loc) · 873 Bytes

Commands and Arguments in Kubernetes

In this section, we will take a look at commands and arguments in kubernetes

  • Anything that is appended to the docker run command will go into the args property of the pod definition file in the form of an array.
  • The command field corresponds to the entrypoint instruction in the Dockerfile so to summarize there are 2 fields that correspond to 2 instructions in the Dockerfile.
    apiVersion: v1
    kind: Pod
    metadata:
      name: ubuntu-sleeper-pod
    spec:
     containers:
     - name: ubuntu-sleeper
       image: ubuntu-sleeper
       command: ["sleep2.0"]
       args: ["10"]
    
    args

K8s Reference Docs