From 9bb0f1d2f04170015fa0a40df6e7c368afc5856d Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Mon, 29 Jul 2024 04:27:12 -0400 Subject: [PATCH] graphql-engine: add nodePort configuration (#22) --- charts/graphql-engine/templates/service.yaml | 3 +++ charts/graphql-engine/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/charts/graphql-engine/templates/service.yaml b/charts/graphql-engine/templates/service.yaml index dbebae6..055548d 100644 --- a/charts/graphql-engine/templates/service.yaml +++ b/charts/graphql-engine/templates/service.yaml @@ -24,5 +24,8 @@ spec: - name: http port: {{ coalesce .Values.config.port 8080 }} targetPort: {{ coalesce .Values.config.port 8080 }} + {{- if .Values.service.nodePort }} + nodePort: {{ .Values.service.nodePort }} + {{- end }} type: {{ coalesce (.Values.service).type "ClusterIP" }} diff --git a/charts/graphql-engine/values.yaml b/charts/graphql-engine/values.yaml index 6bd99dc..b4cec78 100644 --- a/charts/graphql-engine/values.yaml +++ b/charts/graphql-engine/values.yaml @@ -220,6 +220,7 @@ service: annotations: {} labels: {} type: ClusterIP + ## nodePort: 30020 ## Ingress configuration for graphql-engine service ## ref https://kubernetes.io/docs/concepts/services-networking/ingress