Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add possibility to set extra labels and externalTrafficPolicy for service template #295

Merged
merged 3 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/zitadel/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ metadata:
{{- end }}
labels:
{{- include "zitadel.labels" . | nindent 4 }}
{{- with .Values.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if and .Values.service.clusterIP (eq .Values.service.type "ClusterIP") }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
{{- if and .Values.service.externalTrafficPolicy (eq .Values.service.type "LoadBalancer") }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
ports:
- port: {{ .Values.service.port }}
targetPort: 8080
Expand Down
3 changes: 3 additions & 0 deletions charts/zitadel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,13 @@ service:
type: ClusterIP
# If service type is "ClusterIP", this can optionally be set to a fixed IP address.
clusterIP: ""
# If service type is "LoadBalancer", this can optionally be set to either "Cluster" or "Local"
externalTrafficPolicy: ""
port: 8080
protocol: http2
appProtocol: kubernetes.io/h2c
annotations: {}
labels: {}
scheme: HTTP

ingress:
Expand Down
Loading