Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- apiVersion: v1
- kind: PersistentVolumeClaim
- metadata:
- name: busibox-pv-claim
- labels:
- app: busybox0
- spec:
- storageClassName: csi-rbd
- accessModes:
- - ReadWriteOnce
- resources:
- requests:
- storage: 5Gi
- ---
- apiVersion: v1
- kind: ReplicationController
- metadata:
- name: busybox0
- labels:
- app: busybox0
- spec:
- replicas: 1
- selector:
- app: busybox0
- template:
- metadata:
- name: busybox0
- labels:
- app: busybox0
- spec:
- containers:
- - image: busybox
- command:
- - sleep
- - "3600"
- imagePullPolicy: IfNotPresent
- name: busybox
- volumeMounts:
- - name: datas-persistent-storage
- mountPath: /var/lib/datas
- volumes:
- - name: datas-persistent-storage
- persistentVolumeClaim:
- claimName: busibox-pv-claim
- restartPolicy: Always
Advertisement
Add Comment
Please, Sign In to add comment