KubernetesPod.yaml 918 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. labels:
  5. meta-be: meta-be
  6. spec:
  7. containers:
  8. - name: docker
  9. image: docker:latest
  10. command:
  11. - cat
  12. tty: true
  13. volumeMounts:
  14. - mountPath: "/etc/docker/daemon.json"
  15. name: "volume-docker1"
  16. - mountPath: "/root/.docker/config.json"
  17. name: "docker-auth"
  18. - mountPath: "/var/run/docker.sock"
  19. name: "volume-docker0"
  20. - name: helm
  21. image: alpine/helm:3.11.1
  22. command:
  23. - cat
  24. tty: true
  25. - name: kubectl
  26. image: cnych/kubectl
  27. command:
  28. - cat
  29. tty: true
  30. volumes:
  31. - name: volume-docker0
  32. hostPath:
  33. path: "/var/run/docker.sock"
  34. - name: docker-auth
  35. hostPath:
  36. path: "/root/.docker/config.json"
  37. - name: volume-docker1
  38. hostPath:
  39. path: "/etc/docker/daemon.json"
  40. nodeSelector:
  41. kubernetes.io/hostname: h107
  42. hostAliases:
  43. - ip: 192.168.199.31
  44. hostnames:
  45. - "sxkj"