kubectl YAML config file equivalent of “kubectl run … -i --tty …”

前端 未结 1 1968
死守一世寂寞
死守一世寂寞 2020-12-16 13:26

I\'ve been using \"kubectl run\" with assorted flags to run Jobs interactively, but have recently outgrown what I can do with those flags, and have graduated to using YAML c

相关标签:
1条回答
  • 2020-12-16 14:03

    I think you are mentioning these fields. https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/core/types.go#L2081-L2088

    You can define stdin and tty in yaml file.

    apiVersion: v1 
    kind: Pod 
    metadata: 
      name: test 
    spec: 
      containers: 
        - name: test 
          image: test 
          stdin: true 
          tty: true 
    
    0 讨论(0)
提交回复
热议问题