📜  kubernetes while true sleep - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:13.502000             🧑  作者: Mango

代码示例2
apiVersion: v1
kind: Pod
metadata:
  name: ubuntu
spec:
  containers:
  - name: ubuntu
    image: ubuntu:latest
    # Just spin & wait forever
    command: [ "/bin/bash", "-c", "--" ]
    args: [ "while true; do sleep 30; done;" ]