helm enable resource for template (#5268)

enable resource for template
This commit is contained in:
cuisongliu
2024-01-31 12:54:50 +08:00
committed by GitHub
parent f8c4fb3ebd
commit 9abd3a90c3
12 changed files with 30 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
{{- if .Values.master.enabled }}
apiVersion: v1
kind: Service
metadata:
@@ -9,7 +10,7 @@ metadata:
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
clusterIP: None
publishNotReadyAddresses: true
@@ -31,3 +32,4 @@ spec:
selector:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
app.kubernetes.io/component: master
{{- end }}