Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: apps/v1beta1
- kind: Deployment
- metadata:
- name: <your-name>-pv-deploy
- spec:
- replicas: 1
- template:
- metadata:
- labels:
- app: <your-name>-mypv
- spec:
- containers:
- - name: <your-name>-shell
- image: centos:7
- command:
- - "bin/bash"
- - "-c"
- - "sleep 10000"
- volumeMounts:
- - name: <your-name>-mypd
- mountPath: "/tmp/persistent"
- volumes:
- - name: <your-name>-mypd
- persistentVolumeClaim:
- claimName: <your-name>-myclaim
Add Comment
Please, Sign In to add comment