Skip to content

Commit 1cdd942

Browse files
Allow to override the cluster headless service port name for Istio support (#820)
This will be needed for an Istio mesh based installation due to this issue with headless services + Istio - https://istio.io/latest/docs/ops/common-problems/network-issues/#503-error-while-accessing-headless-services
1 parent 4fb1df9 commit 1cdd942

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

operations/helm/charts/alloy/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ internal API changes are not present.
1010
Unreleased
1111
----------
1212

13+
### Bugfixes
14+
15+
- Fix clustering on instances running within Istio mesh by allowing to change the name of the clustering port
16+
1317
0.3.0 (2024-05-14)
1418
------------------
1519

operations/helm/charts/alloy/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ useful if just using the default DaemonSet isn't sufficient.
3434
| Key | Type | Default | Description |
3535
|-----|------|---------|-------------|
3636
| alloy.clustering.enabled | bool | `false` | Deploy Alloy in a cluster to allow for load distribution. |
37+
| alloy.clustering.portName | string | `"http"` | Name for the port used for clustering, useful if running inside an Istio Mesh |
3738
| alloy.configMap.content | string | `""` | Content to assign to the new ConfigMap. This is passed into `tpl` allowing for templating from values. |
3839
| alloy.configMap.create | bool | `true` | Create a new ConfigMap for the config file. |
3940
| alloy.configMap.key | string | `nil` | Key in ConfigMap to get config from. |

operations/helm/charts/alloy/templates/cluster_service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
#
2020
# This service should only be used for clustering, and not metric
2121
# collection.
22-
- name: http
22+
- name: {{ $values.clustering.portName }}
2323
port: {{ $values.listenPort }}
2424
targetPort: {{ $values.listenPort }}
2525
protocol: "TCP"

operations/helm/charts/alloy/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ alloy:
4141
# -- Deploy Alloy in a cluster to allow for load distribution.
4242
enabled: false
4343

44+
# -- Name for the port used for clustering, useful if running inside an Istio Mesh
45+
portName: http
46+
4447
# -- Minimum stability level of components and behavior to enable. Must be
4548
# one of "experimental", "public-preview", or "generally-available".
4649
stabilityLevel: "generally-available"

0 commit comments

Comments
 (0)