Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. labels:
  5. run: foo
  6. name: foo
  7. namespace: default
  8. spec:
  9. containers:
  10. - args:
  11. - /bin/bash
  12. image: centos
  13. imagePullPolicy: IfNotPresent
  14. name: foo
  15. resources: {}
  16. securityContext:
  17. privileged: true
  18. stdin: true
  19. stdinOnce: true
  20. terminationMessagePath: /dev/termination-log
  21. terminationMessagePolicy: File
  22. tty: true
  23. volumeMounts:
  24. - mountPath: /chroot
  25. name: chroot
  26. - mountPath: /run
  27. name: run
  28. - mountPath: /var/log
  29. name: varlog
  30. dnsPolicy: ClusterFirst
  31. nodeSelector:
  32. node-role.kubernetes.io/compute: "true"
  33. priority: 0
  34. restartPolicy: Never
  35. schedulerName: default-scheduler
  36. securityContext:
  37. privileged: true
  38. serviceAccount: default
  39. serviceAccountName: default
  40. volumes:
  41. - name: chroot
  42. hostPath:
  43. # directory location on host
  44. path: /
  45. # this field is optional
  46. type: Directory
  47. - name: run
  48. hostPath:
  49. path: /run
  50. - name: varlog
  51. hostPath:
  52. path: /var/log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement