added ingress and pvc class
This commit is contained in:
1 parent
0449d1a4c3
commit
121a3c1a44
3 files changed
+43
-2
No files matched your search
@@ -18,7 +18,7 @@ spec:
|
||||
- name: nfs.path
|
||||
value: "{{ .Values.nfs.share }}"
|
||||
- name: storageClass.name
|
||||
value: "nfs-generic"
|
||||
value: "{{ .Values.global.nfsStorageClass }}"
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: "nfs-subdir-external-provisioner"
|
||||
|
||||
@@ -1,3 +1,21 @@
|
||||
{{- $prometheusHost := "monitor.core" -}}
|
||||
{{ if .Values.global.tls.enabled }}
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: "tls-{{$prometheusHost}}.{{.Values.global.domain}}"
|
||||
namespace: {{ .namespace }}
|
||||
spec:
|
||||
secretName: "tls-{{$prometheusHost}}.{{.Values.global.domain}}"
|
||||
issuerRef:
|
||||
kind: ClusterIssuer
|
||||
name: "{{ .Values.global.tls.issuer }}"
|
||||
commonName: "{{$prometheusHost}}.{{.Values.global.domain}}"
|
||||
dnsNames:
|
||||
- "{{$prometheusHost}}.{{.Values.global.domain}}"
|
||||
{{ end }}
|
||||
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
@@ -12,6 +30,27 @@ spec:
|
||||
targetRevision: "{{ .Values.chartVersions.prometheus }}"
|
||||
helm:
|
||||
releaseName: prometheus
|
||||
values: |-
|
||||
server:
|
||||
baseURL: "{{$prometheusHost}}.{{ .Values.global.domain }}"
|
||||
persistentVolume:
|
||||
enabled: true
|
||||
size: 8Gi
|
||||
storageClass: "{{ .Values.global.nfsStorageClass }}"
|
||||
ingress:
|
||||
enabled: true
|
||||
ingressClassName: traefik
|
||||
annotations: {}
|
||||
hosts:
|
||||
- "{{$prometheusHost}}.{{ .Values.global.domain }}"
|
||||
path: /
|
||||
pathType: Prefix
|
||||
{{ if .Values.global.tls.enabled }}
|
||||
tls:
|
||||
- secretName: "tls-{{$prometheusHost}}.{{.Values.global.domain}}"
|
||||
hosts:
|
||||
- "{{$prometheusHost}}.{{ .Values.global.domain }}"
|
||||
{{ end }}
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: "monitoring"
|
||||
|
||||
@@ -5,4 +5,6 @@ chartVersions:
|
||||
kubernetesSecretGenerator: "v3.4.0"
|
||||
nfs: "v4.0.2"
|
||||
externalSecrets: "0.7.2"
|
||||
certManager: "1.10.2"
|
||||
certManager: "1.10.2"
|
||||
global:
|
||||
nfsStorageClass: "nfs-generic"
|
||||
Reference in new issue
Block a user