File tree Expand file tree Collapse file tree 5 files changed +33
-7
lines changed Expand file tree Collapse file tree 5 files changed +33
-7
lines changed Original file line number Diff line number Diff line change @@ -629,6 +629,7 @@ Fast distributed SQL query engine for big data analytics that helps you explore
629
629
path: /secrets/sample.json
630
630
subPath: sample.json
631
631
` ` `
632
+ * `coordinator.service` - object, default: `{}`
632
633
* `worker.deployment.annotations` - object, default: `{}`
633
634
* `worker.deployment.progressDeadlineSeconds` - int, default: `600`
634
635
@@ -795,6 +796,7 @@ Fast distributed SQL query engine for big data analytics that helps you explore
795
796
path: /secrets/sample.json
796
797
subPath: sample.json
797
798
` ` `
799
+ * `worker.service` - object, default: `{}`
798
800
* `kafka.mountPath` - string, default: `"/etc/trino/schemas"`
799
801
* `kafka.tableDescriptions` - object, default: `{}`
800
802
Original file line number Diff line number Diff line change
1
+ {{- $svc := .Values.coordinator.service | default .Values.service }}
1
2
{{- $coordinatorJmx := merge .Values.jmx.coordinator (omit .Values.jmx "coordinator" "worker") -}}
2
3
apiVersion : v1
3
4
kind : Service
@@ -8,16 +9,16 @@ metadata:
8
9
{{- include "trino.labels" . | nindent 4 }}
9
10
app.kubernetes.io/component : coordinator
10
11
annotations :
11
- {{- toYaml .Values.service .annotations | nindent 4 }}
12
+ {{- toYaml $svc .annotations | nindent 4 }}
12
13
spec :
13
- type : {{ .Values.service .type }}
14
+ type : {{ $svc .type }}
14
15
ports :
15
- - port : {{ .Values.service .port }}
16
+ - port : {{ $svc .port }}
16
17
targetPort : http
17
18
protocol : TCP
18
19
name : http
19
- {{- if .Values.service .nodePort }}
20
- nodePort : {{ .Values.service .nodePort }}
20
+ {{- if $svc .nodePort }}
21
+ nodePort : {{ $svc .nodePort }}
21
22
{{- end }}
22
23
{{- if .Values.server.config.https.enabled }}
23
24
- port : {{ .Values.server.config.https.port }}
Original file line number Diff line number Diff line change
1
+ {{- $svc := .Values.worker.service | default .Values.service }}
1
2
{{- $workerJmx := merge .Values.jmx.worker (omit .Values.jmx "coordinator" "worker") -}}
2
3
apiVersion : v1
3
4
kind : Service
@@ -8,11 +9,11 @@ metadata:
8
9
{{- include "trino.labels" . | nindent 4 }}
9
10
app.kubernetes.io/component : worker
10
11
annotations :
11
- {{- toYaml .Values.service .annotations | nindent 4 }}
12
+ {{- toYaml $svc .annotations | nindent 4 }}
12
13
spec :
13
14
clusterIP : None
14
15
ports :
15
- - port : {{ .Values.service .port }}
16
+ - port : {{ $svc .port }}
16
17
targetPort : http
17
18
protocol : TCP
18
19
name : http
Original file line number Diff line number Diff line change @@ -734,6 +734,15 @@ coordinator:
734
734
# subPath: sample.json
735
735
# ```
736
736
737
+ service : {}
738
+ # annotations: {}
739
+ # type: ClusterIP
740
+ # port: 8080
741
+ # # service.nodePort -- The port the service listens on the host, for the `NodePort` type. If not set, Kubernetes will
742
+ # # [allocate a port
743
+ # # automatically](https://kubernetes.io/docs/concepts/services-networking/service/#nodeport-custom-port).
744
+ # nodePort: ""
745
+
737
746
worker :
738
747
deployment :
739
748
annotations : {}
@@ -961,6 +970,15 @@ worker:
961
970
# subPath: sample.json
962
971
# ```
963
972
973
+ service : {}
974
+ # annotations: {}
975
+ # type: ClusterIP
976
+ # port: 8080
977
+ # # service.nodePort -- The port the service listens on the host, for the `NodePort` type. If not set, Kubernetes will
978
+ # # [allocate a port
979
+ # # automatically](https://kubernetes.io/docs/concepts/services-networking/service/#nodeport-custom-port).
980
+ # nodePort: ""
981
+
964
982
kafka :
965
983
mountPath : " /etc/trino/schemas"
966
984
tableDescriptions : {}
Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ coordinator:
78
78
rollingUpdate :
79
79
maxSurge : 25%
80
80
maxUnavailable : 50%
81
+ service :
82
+ annotations :
83
+ custom/name : coordinator
84
+ port : 8080
81
85
82
86
jvm :
83
87
maxHeapSize : " 8G"
You can’t perform that action at this time.
0 commit comments