aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2021-10-03 09:49:07 -0700
committerGitHub <noreply@github.com>2021-10-03 09:49:07 -0700
commit37999298309a03a0125aefd3272ff9c25f907e52 (patch)
tree621ee64a286b207465871ac76708d945f6a787b8
parentb297849147a570af9a5413bd668e786a5897de34 (diff)
parentca04c59ac95951b17e6081e681fa35e3ca275038 (diff)
downloadseaweedfs-37999298309a03a0125aefd3272ff9c25f907e52.tar.xz
seaweedfs-37999298309a03a0125aefd3272ff9c25f907e52.zip
Merge pull request #2353 from Janikio/chart-patch
-rw-r--r--k8s/helm_charts2/templates/filer-servicemonitor.yaml2
-rw-r--r--k8s/helm_charts2/templates/ingress.yaml2
-rw-r--r--k8s/helm_charts2/templates/s3-servicemonitor.yaml2
-rw-r--r--k8s/helm_charts2/templates/volume-servicemonitor.yaml2
4 files changed, 8 insertions, 0 deletions
diff --git a/k8s/helm_charts2/templates/filer-servicemonitor.yaml b/k8s/helm_charts2/templates/filer-servicemonitor.yaml
index f07f6ebef..ed45442dc 100644
--- a/k8s/helm_charts2/templates/filer-servicemonitor.yaml
+++ b/k8s/helm_charts2/templates/filer-servicemonitor.yaml
@@ -1,4 +1,5 @@
{{- if .Values.filer.metricsPort }}
+{{- if .Values.global.monitoring.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
@@ -15,4 +16,5 @@ spec:
selector:
app: {{ template "seaweedfs.name" . }}
component: filer
+{{- end }}
{{- end }} \ No newline at end of file
diff --git a/k8s/helm_charts2/templates/ingress.yaml b/k8s/helm_charts2/templates/ingress.yaml
index dcd52c138..4f1b4251d 100644
--- a/k8s/helm_charts2/templates/ingress.yaml
+++ b/k8s/helm_charts2/templates/ingress.yaml
@@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress-{{ template "seaweedfs.name" . }}-filer
+ namespace: {{ .Release.Namespace }}
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/auth-type: "basic"
@@ -32,6 +33,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress-{{ template "seaweedfs.name" . }}-master
+ namespace: {{ .Release.Namespace }}
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/auth-type: "basic"
diff --git a/k8s/helm_charts2/templates/s3-servicemonitor.yaml b/k8s/helm_charts2/templates/s3-servicemonitor.yaml
index 7f18f00f5..b549893c7 100644
--- a/k8s/helm_charts2/templates/s3-servicemonitor.yaml
+++ b/k8s/helm_charts2/templates/s3-servicemonitor.yaml
@@ -1,4 +1,5 @@
{{- if .Values.s3.metricsPort }}
+{{- if .Values.global.monitoring.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
@@ -15,4 +16,5 @@ spec:
selector:
app: {{ template "seaweedfs.name" . }}
component: s3
+{{- end }}
{{- end }} \ No newline at end of file
diff --git a/k8s/helm_charts2/templates/volume-servicemonitor.yaml b/k8s/helm_charts2/templates/volume-servicemonitor.yaml
index 1b286e9b6..90d70e8de 100644
--- a/k8s/helm_charts2/templates/volume-servicemonitor.yaml
+++ b/k8s/helm_charts2/templates/volume-servicemonitor.yaml
@@ -1,4 +1,5 @@
{{- if .Values.volume.metricsPort }}
+{{- if .Values.global.monitoring.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
@@ -15,4 +16,5 @@ spec:
selector:
app: {{ template "seaweedfs.name" . }}
component: volume
+{{- end }}
{{- end }} \ No newline at end of file