Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions charts/trino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ Fast distributed SQL query engine for big data analytics that helps you explore
path: /secrets/sample.json
subPath: sample.json
```
* `coordinator.service` - object, default: `{}`
* `worker.deployment.annotations` - object, default: `{}`
* `worker.deployment.progressDeadlineSeconds` - int, default: `600`

Expand Down Expand Up @@ -795,6 +796,7 @@ Fast distributed SQL query engine for big data analytics that helps you explore
path: /secrets/sample.json
subPath: sample.json
```
* `worker.service` - object, default: `{}`
* `kafka.mountPath` - string, default: `"/etc/trino/schemas"`
* `kafka.tableDescriptions` - object, default: `{}`

Expand Down
11 changes: 6 additions & 5 deletions charts/trino/templates/service-coordinator.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- $svc := .Values.coordinator.service | default .Values.service }}
{{- $coordinatorJmx := merge .Values.jmx.coordinator (omit .Values.jmx "coordinator" "worker") -}}
apiVersion: v1
kind: Service
Expand All @@ -8,16 +9,16 @@ metadata:
{{- include "trino.labels" . | nindent 4 }}
app.kubernetes.io/component: coordinator
annotations:
{{- toYaml .Values.service.annotations | nindent 4 }}
{{- toYaml $svc.annotations | nindent 4 }}
spec:
type: {{ .Values.service.type }}
type: {{ $svc.type }}
ports:
- port: {{ .Values.service.port }}
- port: {{ $svc.port }}
targetPort: http
protocol: TCP
name: http
{{- if .Values.service.nodePort }}
nodePort: {{ .Values.service.nodePort }}
{{- if $svc.nodePort }}
nodePort: {{ $svc.nodePort }}
{{- end }}
{{- if .Values.server.config.https.enabled }}
- port: {{ .Values.server.config.https.port }}
Expand Down
5 changes: 3 additions & 2 deletions charts/trino/templates/service-worker.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- $svc := .Values.worker.service | default .Values.service }}
{{- $workerJmx := merge .Values.jmx.worker (omit .Values.jmx "coordinator" "worker") -}}
apiVersion: v1
kind: Service
Expand All @@ -8,11 +9,11 @@ metadata:
{{- include "trino.labels" . | nindent 4 }}
app.kubernetes.io/component: worker
annotations:
{{- toYaml .Values.service.annotations | nindent 4 }}
{{- toYaml $svc.annotations | nindent 4 }}
spec:
clusterIP: None
ports:
- port: {{ .Values.service.port }}
- port: {{ $svc.port }}
targetPort: http
protocol: TCP
name: http
Expand Down
18 changes: 18 additions & 0 deletions charts/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,15 @@ coordinator:
# subPath: sample.json
# ```

service: {}
# annotations: {}
# type: ClusterIP
# port: 8080
# # service.nodePort -- The port the service listens on the host, for the `NodePort` type. If not set, Kubernetes will
# # [allocate a port
# # automatically](https://kubernetes.io/docs/concepts/services-networking/service/#nodeport-custom-port).
# nodePort: ""

worker:
deployment:
annotations: {}
Expand Down Expand Up @@ -961,6 +970,15 @@ worker:
# subPath: sample.json
# ```

service: {}
# annotations: {}
# type: ClusterIP
# port: 8080
# # service.nodePort -- The port the service listens on the host, for the `NodePort` type. If not set, Kubernetes will
# # [allocate a port
# # automatically](https://kubernetes.io/docs/concepts/services-networking/service/#nodeport-custom-port).
# nodePort: ""

kafka:
mountPath: "/etc/trino/schemas"
tableDescriptions: {}
Expand Down
4 changes: 4 additions & 0 deletions tests/trino/test-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ coordinator:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 50%
service:
annotations:
custom/name: coordinator
port: 8080

jvm:
maxHeapSize: "8G"
Expand Down