k8s yaml 中如何写 shell 命令

spec:
      containers:
      - args:
        - -c
        - |
          cd /juicefs/
          ls -1 >/tmp/list.txt
          for i in `seq`;do echo $i;done
        command:
        - /bin/bash
spec:
      

你可能感兴趣的:(Kubernetes,kubernetes)