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

add support for externalTrafficPolicy on service #220

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ Parameters related to Kubernetes.
| `service.type` | Service type can be ClusterIP, NodePort, LoadBalancer | `ClusterIP` |
| `service.sslLdapPortNodePort` | Nodeport of External service port for SSL if service.type is NodePort | `nil` |
| `service.ipFamilyPolicy` | Represents the dual-stack-ness requested or required by this Service. | `SingleStack` |
| `service.externalTrafficPolicy` | Sets the externalTrafficPolicy for this Service. | `Cluster` |
| `serviceReadOnly.annotations` | Annotations to add to the service | `{}` |
| `serviceReadOnly.externalIPs` | Service external IP addresses | `[]` |
| `serviceReadOnly.enableLdapPort` | Enable LDAP port on the service and headless service | `true` |
Expand All @@ -149,6 +150,7 @@ Parameters related to Kubernetes.
| `serviceReadOnly.sslLdapPortNodePort` | Nodeport of External service port for SSL if service.type is NodePort | `nil` |
| `serviceReadOnly.type` | Service type can be ClusterIP, NodePort, LoadBalancer | `ClusterIP` |
| `serviceReadOnly.ipFamilyPolicy` | Represents the dual-stack-ness requested or required by this Service. | `SingleStack` |
| `serviceReadOnly.externalTrafficPolicy` | Sets the externalTrafficPolicy for this Service. | `Cluster` |
| `persistence.enabled` | Whether to use PersistentVolumes or not | `false` |
| `persistence.storageClass` | Storage class for PersistentVolumes. | `<unset>` |
| `persistence.existingClaim` | Add existing Volumes Claim. | `<unset>` |
Expand Down
1 change: 1 addition & 0 deletions templates/service-readonly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ spec:
{{- end }}
{{- end }}
sessionAffinity: {{ .Values.service.sessionAffinity }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
selector:
app.kubernetes.io/component: {{ template "openldap.fullname" . }}-readonly
release: {{ .Release.Name }}
Expand Down
1 change: 1 addition & 0 deletions templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ spec:
{{- end }}
{{- end }}
sessionAffinity: {{ .Values.service.sessionAffinity }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
selector:
app.kubernetes.io/component: {{ template "openldap.fullname" . }}
release: {{ .Release.Name }}
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ service:
#loadBalancerSourceRanges: []
type: ClusterIP
sessionAffinity: None
externalTrafficPolicy: Cluster

## Represents the dual-stack-ness requested or required by this Service. Possible values are
## SingleStack, PreferDualStack or RequireDualStack.
Expand Down Expand Up @@ -130,6 +131,7 @@ serviceReadOnly:
#loadBalancerSourceRanges: []
type: ClusterIP
sessionAffinity: None
externalTrafficPolicy: Cluster

## Represents the dual-stack-ness requested or required by this Service. Possible values are
## SingleStack, PreferDualStack or RequireDualStack.
Expand Down
Loading