Created
August 29, 2019 15:54
-
-
Save peerapach/d615fd26a6be7928cfc6ee208351c7c7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # This YAML file contains nginx & csi cinder driver objects, | |
| # which are necessary to run nginx with csi cinder driver. | |
| apiVersion: storage.k8s.io/v1 | |
| kind: StorageClass | |
| metadata: | |
| name: csi-sc-cinderplugin | |
| provisioner: csi-cinderplugin | |
| parameters: | |
| type: Corporate | |
| --- | |
| apiVersion: v1 | |
| kind: PersistentVolumeClaim | |
| metadata: | |
| name: csi-pvc-cinderplugin | |
| spec: | |
| accessModes: | |
| - ReadWriteOnce | |
| resources: | |
| requests: | |
| storage: 1Gi | |
| storageClassName: csi-sc-cinderplugin | |
| --- | |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: nginx | |
| spec: | |
| containers: | |
| - image: nginx | |
| imagePullPolicy: IfNotPresent | |
| name: nginx | |
| ports: | |
| - containerPort: 80 | |
| protocol: TCP | |
| volumeMounts: | |
| - mountPath: /var/lib/www/html | |
| name: csi-data-cinderplugin | |
| volumes: | |
| - name: csi-data-cinderplugin | |
| persistentVolumeClaim: | |
| claimName: csi-pvc-cinderplugin | |
| readOnly: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment