Skip to content

Commit

Permalink
add option to set external traffic policy for Load Balancer
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir.k authored and AndrewChubatiuk committed Jan 26, 2024
1 parent 4cc5be5 commit e4183f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.server.httpPort }}
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ service:
loadBalancerIP:
# service.type -- Kubernetes Service type
type: ClusterIP
# service.externalTraffucPolicy -- external traffic policy for Load Balancer
externalTrafficPolicy: ""
# service.port -- Service external port
port: 80

Expand Down

0 comments on commit e4183f5

Please sign in to comment.