Advertisement
sandervanvugt

lab4.yaml

Dec 12th, 2022
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: init-demo
  5. spec:
  6. containers:
  7. - name: nginx
  8. image: busybox
  9. volumeMounts:
  10. - name: workdir
  11. mountPath: "/data"
  12. command:
  13. - sleep
  14. - "10000"
  15. # These containers are run during pod initialization
  16. initContainers:
  17. - name: install
  18. image: busybox:1.28
  19. command:
  20. - touch
  21. - "/data/runfile.txt"
  22. volumeMounts:
  23. - name: workdir
  24. mountPath: "/data"
  25. - name: waitabit
  26. image: busybox
  27. command:
  28. - sleep
  29. - "20"
  30. dnsPolicy: Default
  31. volumes:
  32. - name: workdir
  33. emptyDir: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement