diff --git a/operations/helm/charts/alloy/CHANGELOG.md b/operations/helm/charts/alloy/CHANGELOG.md index 33fb59f7ce..0356d80ed4 100644 --- a/operations/helm/charts/alloy/CHANGELOG.md +++ b/operations/helm/charts/alloy/CHANGELOG.md @@ -9,6 +9,9 @@ internal API changes are not present. Unreleased ---------- +### Enhancements + +- Allow configuring of the alloy service externalTrafficPolicy (@at-blacknight) ### Bug fixes diff --git a/operations/helm/charts/alloy/README.md b/operations/helm/charts/alloy/README.md index d9a557551a..bb1670a2ac 100644 --- a/operations/helm/charts/alloy/README.md +++ b/operations/helm/charts/alloy/README.md @@ -164,6 +164,7 @@ useful if just using the default DaemonSet isn't sufficient. | service.clusterIP | string | `""` | Cluster IP, can be set to None, empty "" or an IP address | | service.enabled | bool | `true` | Creates a Service for the controller's pods. | | service.internalTrafficPolicy | string | `"Cluster"` | Value for internal traffic policy. 'Cluster' or 'Local' | +| service.externalTrafficPolicy | string | `"Cluster"` | Value for external traffic policy. 'Cluster' or 'Local' | | service.nodePort | int | `31128` | NodePort port. Only takes effect when `service.type: NodePort` | | service.type | string | `"ClusterIP"` | Service type | | serviceAccount.additionalLabels | object | `{}` | Additional labels to add to the created service account. | diff --git a/operations/helm/charts/alloy/templates/service.yaml b/operations/helm/charts/alloy/templates/service.yaml index 53f79b3c6b..ba743a07b0 100644 --- a/operations/helm/charts/alloy/templates/service.yaml +++ b/operations/helm/charts/alloy/templates/service.yaml @@ -21,6 +21,7 @@ spec: {{- include "alloy.selectorLabels" . | nindent 4 }} {{- if semverCompare ">=1.26-0" .Capabilities.KubeVersion.Version }} internalTrafficPolicy: {{.Values.service.internalTrafficPolicy}} + externalTrafficPolicy: {{.Values.service.externalTrafficPolicy}} {{- end }} ports: - name: http-metrics diff --git a/operations/helm/charts/alloy/values.yaml b/operations/helm/charts/alloy/values.yaml index fe597f7450..0915bf8f8d 100644 --- a/operations/helm/charts/alloy/values.yaml +++ b/operations/helm/charts/alloy/values.yaml @@ -415,6 +415,8 @@ service: clusterIP: '' # -- Value for internal traffic policy. 'Cluster' or 'Local' internalTrafficPolicy: Cluster + # -- Value for external traffic policy. 'Cluster' or 'Local' + externalTrafficPolicy: Cluster annotations: {} # cloud.google.com/load-balancer-type: Internal