Use storageClassName in preference to the annotation.
Change-Id: I60a2b607b85cd22abbd5b0d10c4571430f56d62f
This commit is contained in:
parent
78abb8218c
commit
f9252a8235
@ -119,11 +119,10 @@ spec:
|
|||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: mysql-data
|
name: mysql-data
|
||||||
annotations:
|
|
||||||
{{ .Values.volume.class_path }}: {{ .Values.volume.class_name }}
|
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.volume.size }}
|
storage: {{ .Values.volume.size }}
|
||||||
|
storageClassName: {{ .Values.volume.class_name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -35,7 +35,6 @@ images:
|
|||||||
|
|
||||||
volume:
|
volume:
|
||||||
enabled: true
|
enabled: true
|
||||||
class_path: volume.beta.kubernetes.io/storage-class
|
|
||||||
class_name: general
|
class_name: general
|
||||||
size: 2Gi
|
size: 2Gi
|
||||||
|
|
||||||
|
@ -17,11 +17,10 @@ kind: PersistentVolumeClaim
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: pvc-test
|
name: pvc-test
|
||||||
annotations:
|
|
||||||
volume.beta.kubernetes.io/storage-class: general
|
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
|
storageClassName: general
|
||||||
|
Loading…
Reference in New Issue
Block a user