yato-consulting

Untitled

Jun 12th, 2019
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.92 KB | None | 0 0
  1. ---
  2. apiVersion: v1
  3. kind: PersistentVolumeClaim
  4. metadata:
  5.   name: busibox-pv-claim
  6.   labels:
  7.     app: busybox0
  8. spec:
  9.   storageClassName: csi-rbd
  10.   accessModes:
  11.    - ReadWriteOnce
  12.   resources:
  13.     requests:
  14.       storage: 5Gi
  15. ---
  16. apiVersion: v1
  17. kind: ReplicationController
  18. metadata:
  19.   name: busybox0
  20.   labels:
  21.     app: busybox0
  22. spec:
  23.   replicas: 1
  24.   selector:
  25.     app: busybox0
  26.   template:
  27.     metadata:
  28.       name: busybox0
  29.       labels:
  30.         app: busybox0
  31.     spec:
  32.       containers:
  33.         - image: busybox
  34.           command:
  35.            - sleep
  36.             - "3600"
  37.           imagePullPolicy: IfNotPresent
  38.           name: busybox
  39.           volumeMounts:
  40.             - name: datas-persistent-storage
  41.               mountPath: /var/lib/datas
  42.       volumes:
  43.         - name: datas-persistent-storage
  44.           persistentVolumeClaim:
  45.             claimName: busibox-pv-claim
  46.       restartPolicy: Always
Advertisement
Add Comment
Please, Sign In to add comment