SHARE
TWEET

Untitled

a guest Feb 18th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Error: release prometheus failed: PersistentVolume "prometheus-alertmanager" is invalid: spec: Required value: must specify a volume type
  2.    
  3. persistentVolume:
  4.     enabled: true
  5.     accessModes:
  6.       - ReadWriteOnce
  7.     annotations: {}
  8.     existingClaim: ""
  9.     mountPath: /data
  10.     subPath: "alertmanager/"
  11.     size: 4Gi
  12.     ReclaimPolicy: "Recycle"
  13.     storageClass: "aws"
  14.     volumeID: "vol-xxx"
  15.     fs_mounts:
  16.       path: /data/alertmanager
  17.       server: 127.0.0.1
  18.    
  19. {{- if not .Values.alertmanager.statefulSet.enabled -}}
  20. {{- if and .Values.alertmanager.enabled .Values.alertmanager.persistentVolume.enabled -}}
  21. apiVersion: v1
  22. kind: PersistentVolume
  23. metadata:
  24.   name: prometheus-alertmanager
  25. spec:
  26.   capacity:
  27.     storage: {{ .Values.alertmanager.persistentVolume.size }}
  28.   accessModes:
  29. {{ toYaml .Values.alertmanager.persistentVolume.accessModes | indent 4 }}
  30.   persistentVolumeReclaimPolicy: "{{ .Values.alertmanager.persistentVolume.ReclaimPolicy }}"
  31. {{- if (eq "aws" .Values.alertmanager.persistentVolume.storageClass) }}
  32.   storageClassName: "gp2"
  33.   awsElasticBlockStore:
  34.     fsType: "ext4"
  35.     volumeID: {{ .Values.alertmanager.persistentVolume.volumeID }}
  36. {{- if (eq "nfs" .Values.alertmanager.persistentVolume.storageClass) }}
  37.   StorageClassName: "nfs"
  38.     mountOptions:
  39.       - hard
  40.       - nfsvers=4.1
  41.       - timeo=600
  42.       - retrans=2
  43.     nfs:
  44.       server: {{ .Values.alertmanager.persistentVolume.fs_mounts.server }}
  45.       path: {{ .Values.alertmanager.persistentVolume.fs_mounts.path }}
  46. {{- end }}
  47. {{- end }}
  48. {{- end -}}
  49. {{- end -}}
  50.    
  51. {{- if not .Values.alertmanager.statefulSet.enabled -}}
  52. {{- if and .Values.alertmanager.enabled .Values.alertmanager.persistentVolume.enabled -}}
  53. {{- if not .Values.alertmanager.persistentVolume.existingClaim -}}
  54. apiVersion: v1
  55. kind: PersistentVolumeClaim
  56. metadata:
  57.   labels:
  58.   name: prometheus-alertmanager
  59. spec:
  60.   accessModes:
  61. {{ toYaml .Values.alertmanager.persistentVolume.accessModes | indent 4 }}
  62. {{- if (eq "aws" .Values.alertmanager.persistentVolume.storageClass) }}
  63.   storageClassName: "gp2"
  64.   resources:
  65.     requests:
  66.       storage: {{ .Values.alertmanager.persistentVolume.size }}
  67. {{- if (eq "nfs" .Values.alertmanager.persistentVolume.storageClass) }}
  68.   storageClassName: "nfs"
  69.   resources:
  70.     requests:
  71.       storage: {{ .Values.alertmanager.persistentVolume.size }}
  72. {{- end }}
  73. {{- end }}
  74. {{- end -}}
  75. {{- end -}}
  76. {{- end -}}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top