Created
February 25, 2019 14:33
-
-
Save BugRoger/aec87be2fa820b8b9255f9f35ce25ff1 to your computer and use it in GitHub Desktop.
Storage Classes Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: nginx-default | |
spec: | |
replicas: 1 | |
selector: | |
role: nginx-default | |
template: | |
metadata: | |
labels: | |
role: nginx-default | |
spec: | |
containers: | |
- name: nginx | |
image: nginx | |
volumeMounts: | |
- mountPath: /var/lib/www/html | |
name: cinderpvc | |
volumes: | |
- name: cinderpvc | |
persistentVolumeClaim: | |
claimName: pvc-default | |
--- | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: nginx-b | |
spec: | |
replicas: 1 | |
selector: | |
role: nginx-b | |
template: | |
metadata: | |
labels: | |
role: nginx-b | |
spec: | |
containers: | |
- name: nginx | |
image: nginx | |
volumeMounts: | |
- mountPath: /var/lib/www/html | |
name: cinderpvc | |
volumes: | |
- name: cinderpvc | |
persistentVolumeClaim: | |
claimName: pvc-b | |
--- | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: nginx-d | |
spec: | |
replicas: 1 | |
selector: | |
role: nginx-d | |
template: | |
metadata: | |
labels: | |
role: nginx-d | |
spec: | |
containers: | |
- name: nginx | |
image: nginx | |
volumeMounts: | |
- mountPath: /var/lib/www/html | |
name: cinderpvc | |
volumes: | |
- name: cinderpvc | |
persistentVolumeClaim: | |
claimName: pvc-d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: pvc-b | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
volumeMode: Filesystem | |
resources: | |
requests: | |
storage: 1Gi | |
storageClassName: cinder-zone-b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: pvc-d | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
volumeMode: Filesystem | |
resources: | |
requests: | |
storage: 1Gi | |
storageClassName: cinder-zone-d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: pvc-default | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
volumeMode: Filesystem | |
resources: | |
requests: | |
storage: 1Gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment