arshad75

pvc-claim-gke

Jul 4th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. apiVersion: apps/v1beta1
  2. kind: Deployment
  3. metadata:
  4. name: <your-name>-pv-deploy
  5. spec:
  6. replicas: 1
  7. template:
  8. metadata:
  9. labels:
  10. app: <your-name>-mypv
  11. spec:
  12. containers:
  13. - name: <your-name>-shell
  14. image: centos:7
  15. command:
  16. - "bin/bash"
  17. - "-c"
  18. - "sleep 10000"
  19. volumeMounts:
  20. - name: <your-name>-mypd
  21. mountPath: "/tmp/persistent"
  22. volumes:
  23. - name: <your-name>-mypd
  24. persistentVolumeClaim:
  25. claimName: <your-name>-myclaim
Add Comment
Please, Sign In to add comment