生成容器

vim test-for-k8s.yml

apiVersion: v1
kind: Pod
metadata:
  name: busybox-curl
  labels: 
    ccb: busybox-curl
spec:
  containers:
    - name: test-for-k8s
      image: yauritux/busybox-curl
      command: ["/bin/sh", "-c", "sleep   100000" ]
  restartPolicy: Never

使用

k  create  -f test-for-k8s.yml
k get po 

k  exec  -it busybox-curl  /bin/sh

相关文章:

  • 2021-09-26
  • 2022-02-04
  • 2021-09-24
  • 2021-07-05
  • 2022-01-15
  • 2021-08-30
  • 2021-08-24
  • 2022-12-23
猜你喜欢
  • 2021-10-01
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2021-11-30
  • 2021-09-25
  • 2022-02-10
相关资源
相似解决方案