Merge branch '2-fix-multiple-issues' into 'development'
fix: multiple See merge request nofusscomputing/projects/kubernetes_monitoring!5
This commit is contained in:
@ -143,7 +143,7 @@ spec:
|
|||||||
app.kubernetes.io/part-of: {{ $.Chart.Name }}
|
app.kubernetes.io/part-of: {{ $.Chart.Name }}
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- "ReadWriteMany"
|
- {{ .Values.nfc_monitoring.grafana.storage_accessModes | default "ReadWriteOnce" }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: "5Gi"
|
storage: "5Gi"
|
||||||
|
41
templates/Ingress-Multi.yaml
Normal file
41
templates/Ingress-Multi.yaml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{{ if .Values.nfc_monitoring.alert_manager.ingress.enabled | default "false" -}}
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: alertmanager
|
||||||
|
namespace: "{{ .Values.nfc_monitoring.alert_manager.namespace }}"
|
||||||
|
annotations:
|
||||||
|
{{ toYaml $.Values.nfc_monitoring.alert_manager.ingress.annotations | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
{{ toYaml $.Values.nfc_monitoring.alert_manager.ingress.spec | nindent 2 }}
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .Values.nfc_monitoring.grafana.ingress.enabled | default "false" -}}
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: grafana
|
||||||
|
namespace: "{{ .Values.nfc_monitoring.grafana.namespace }}"
|
||||||
|
annotations:
|
||||||
|
{{ toYaml $.Values.nfc_monitoring.grafana.ingress.annotations | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
{{ toYaml $.Values.nfc_monitoring.grafana.ingress.spec | nindent 2 }}
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .Values.nfc_monitoring.prometheus.ingress.enabled | default "false" -}}
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: prometheus
|
||||||
|
namespace: "{{ .Values.nfc_monitoring.prometheus.namespace }}"
|
||||||
|
annotations:
|
||||||
|
{{ toYaml $.Values.nfc_monitoring.prometheus.ingress.annotations | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
{{ toYaml $.Values.nfc_monitoring.prometheus.ingress.spec | nindent 2 }}
|
||||||
|
|
||||||
|
{{ end }}
|
@ -46,7 +46,7 @@ spec:
|
|||||||
serviceMonitorNamespaceSelector: {}
|
serviceMonitorNamespaceSelector: {}
|
||||||
serviceMonitorSelector: {}
|
serviceMonitorSelector: {}
|
||||||
storage:
|
storage:
|
||||||
{{- toYaml .Values.nfc_monitoring.prometheus.affinity | nindent 4 }}
|
{{- toYaml .Values.nfc_monitoring.prometheus.storage | nindent 4 }}
|
||||||
{{ if .Values.nfc_monitoring.thanos.sidecar.enabled }}
|
{{ if .Values.nfc_monitoring.thanos.sidecar.enabled }}
|
||||||
thanos:
|
thanos:
|
||||||
image: "{{ .Values.nfc_monitoring.thanos.image.name }}:{{ .Values.nfc_monitoring.thanos.image.tag }}"
|
image: "{{ .Values.nfc_monitoring.thanos.image.name }}:{{ .Values.nfc_monitoring.thanos.image.tag }}"
|
||||||
|
69
values.yaml
69
values.yaml
@ -15,6 +15,29 @@ nfc_monitoring:
|
|||||||
image:
|
image:
|
||||||
name: quay.io/prometheus/alertmanager
|
name: quay.io/prometheus/alertmanager
|
||||||
tag: 'v0.26.0'
|
tag: 'v0.26.0'
|
||||||
|
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: "selfsigned-issuer"
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
# enabled: false # Optional, boolean.
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- alert-manager.local
|
||||||
|
secretName: certificate-tls-alert-manager
|
||||||
|
rules:
|
||||||
|
- host: alert-manager.local
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: alertmanager-main
|
||||||
|
port:
|
||||||
|
name: web
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/instance: main
|
app.kubernetes.io/instance: main
|
||||||
@ -51,6 +74,28 @@ nfc_monitoring:
|
|||||||
name: grafana/grafana
|
name: grafana/grafana
|
||||||
tag: '10.1.2' # '10.0.5'
|
tag: '10.1.2' # '10.0.5'
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: "selfsigned-issuer"
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
# enabled: false # Optional, boolean.
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- grafana.local
|
||||||
|
secretName: certificate-tls-grafana
|
||||||
|
rules:
|
||||||
|
- host: grafana.local
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: grafana
|
||||||
|
port:
|
||||||
|
name: grafana-http
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: graphing
|
app.kubernetes.io/component: graphing
|
||||||
app.kubernetes.io/instance: k8s
|
app.kubernetes.io/instance: k8s
|
||||||
@ -60,6 +105,8 @@ nfc_monitoring:
|
|||||||
|
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
||||||
|
# storage_accessModes: ReadWriteMany
|
||||||
|
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
@ -204,6 +251,28 @@ nfc_monitoring:
|
|||||||
image:
|
image:
|
||||||
name: prom/prometheus
|
name: prom/prometheus
|
||||||
tag: 'v2.47.0'
|
tag: 'v2.47.0'
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: "selfsigned-issuer"
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
# enabled: false # Optional, boolean.
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- prometheus.local
|
||||||
|
secretName: certificate-tls-prometheus
|
||||||
|
rules:
|
||||||
|
- host: prometheus.local
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: prometheus-k8s
|
||||||
|
port:
|
||||||
|
name: web
|
||||||
|
|
||||||
# These labels are appended to all Prometheus items and are also the selector labels
|
# These labels are appended to all Prometheus items and are also the selector labels
|
||||||
labels:
|
labels:
|
||||||
|
Reference in New Issue
Block a user