Skip to content

Commit

Permalink
Correct extraPorts hostPort property.
Browse files Browse the repository at this point in the history
  • Loading branch information
and1truong committed Apr 29, 2024
1 parent 3201389 commit 4e3a293
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Main (unreleased)
- Fix an issue on Windows where uninstalling Alloy did not remove it from the
Add/Remove programs list. (@rfratto)

- Fix wrong documentation on alloy.extraPorts.hostPort (@and1truong)

v1.0.0 (2024-04-09)
-------------------
Expand Down
2 changes: 1 addition & 1 deletion operations/helm/charts/alloy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Port numbers specified must be 0 < x < 65535.
| ChartPort | KubePort | Description |
|-----------|----------|-------------|
| targetPort | containerPort | Number of port to expose on the pod's IP address. |
| hostPort | hostPort | (Optional) Number of port to expose on the host. Daemonsets taking traffic might find this useful. |
| hosPort | hostPort | (Optional) Number of port to expose on the host. Daemonsets taking traffic might find this useful. |
| name | name | If specified, this must be an `IANA_SVC_NAME` and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.
| protocol | protocol | Must be UDP, TCP, or SCTP. Defaults to "TCP". |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
protocol: "TCP"
{{- range $portMap := $values.extraPorts }}
- name: {{ $portMap.name }}
port: {{ $portMap.port }}
port: {{ $portMap.hostPort }}
targetPort: {{ $portMap.targetPort }}
protocol: {{ coalesce $portMap.protocol "TCP" }}
{{- end }}
Expand Down

0 comments on commit 4e3a293

Please sign in to comment.