Skip to content

Commit 1ff5b92

Browse files
mohitkundu1213nineinchnick
authored andcommitted
Additional Exposed Ports in Trino Worker Service.yaml
Currently additionaly exposed ports are not added to trino worker service. This change will add them. added worker additional port added test-values.yaml check Update values.yaml documentation
1 parent a9bbd15 commit 1ff5b92

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

charts/trino/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ Fast distributed SQL query engine for big data analytics that helps you explore
632632
* `worker.additionalJVMConfig` - list, default: `[]`
633633
* `worker.additionalExposedPorts` - object, default: `{}`
634634

635-
Additional container ports configured in all worker pods.
635+
Additional container ports configured in all worker pods and the worker service.
636636
Example:
637637
```yaml
638638
https:

charts/trino/templates/service-worker.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ spec:
2222
protocol: TCP
2323
name: jmx-exporter
2424
{{- end }}
25+
{{- range $key, $value := .Values.worker.additionalExposedPorts }}
26+
- port: {{ $value.servicePort }}
27+
name: {{ $value.name }}
28+
targetPort: {{ $value.port }}
29+
protocol: {{ $value.protocol }}
30+
{{- if $value.nodePort }}
31+
nodePort: {{ $value.nodePort }}
32+
{{- end }}
33+
{{- end }}
2534
selector:
2635
{{- include "trino.selectorLabels" . | nindent 4 }}
2736
app.kubernetes.io/component: worker

charts/trino/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ worker:
754754
additionalJVMConfig: []
755755

756756
additionalExposedPorts: {}
757-
# worker.additionalExposedPorts -- Additional container ports configured in all worker pods.
757+
# worker.additionalExposedPorts -- Additional container ports configured in all worker pods and the worker service.
758758
# @raw
759759
# Example:
760760
# ```yaml

tests/trino/test-values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ worker:
134134
query:
135135
maxMemoryPerNode: "2GB"
136136

137+
additionalExposedPorts:
138+
extra-port:
139+
servicePort: 9483
140+
name: extra-port
141+
port: 9483
142+
protocol: TCP
143+
137144
annotations:
138145
custom/name: value
139146

0 commit comments

Comments
 (0)