KubernetesPod.yaml 989 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. labels:
  5. aihub-backend: aihub-backend
  6. spec:
  7. containers:
  8. - name: docker
  9. image: docker:latest
  10. imagePullPolicy: IfNotPresent
  11. command:
  12. - cat
  13. tty: true
  14. volumeMounts:
  15. - mountPath: "/etc/docker/daemon.json"
  16. name: "volume-docker1"
  17. - mountPath: "/root/.docker/config.json"
  18. name: "docker-auth"
  19. - mountPath: "/var/run/docker.sock"
  20. name: "volume-docker0"
  21. - name: kubectl
  22. image: cnych/kubectl
  23. imagePullPolicy: IfNotPresent
  24. command:
  25. - cat
  26. tty: true
  27. volumes:
  28. - name: volume-docker0
  29. hostPath:
  30. path: "/var/run/docker.sock"
  31. - name: docker-auth
  32. hostPath:
  33. path: "/root/.docker/config.json"
  34. - name: volume-docker1
  35. hostPath:
  36. path: "/etc/docker/daemon.json"
  37. nodeSelector:
  38. kubernetes.io/hostname: 10.138.130.97
  39. tolerations:
  40. - key: "node-role.kubernetes.io/master"
  41. operator: "Equal"
  42. value: "true"
  43. effect: "NoSchedule"