From 19d844679952ac2ee035469b6fbd397c524b54ba Mon Sep 17 00:00:00 2001 From: Thiago Nobayashi Date: Thu, 22 Jun 2023 12:19:32 +0300 Subject: [PATCH] chore: expose graphql --- charts/tce-all-in-one/Chart.yaml | 2 +- charts/tce-all-in-one/templates/00-tce-services.yaml | 8 ++++++++ charts/tce-all-in-one/templates/01-tce-deployments.yaml | 3 +++ charts/tce-all-in-one/values.yaml | 1 + 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/charts/tce-all-in-one/Chart.yaml b/charts/tce-all-in-one/Chart.yaml index 2dae875..bb47cfe 100644 --- a/charts/tce-all-in-one/Chart.yaml +++ b/charts/tce-all-in-one/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.6 +version: 0.2.7 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/tce-all-in-one/templates/00-tce-services.yaml b/charts/tce-all-in-one/templates/00-tce-services.yaml index 988d946..82f575c 100644 --- a/charts/tce-all-in-one/templates/00-tce-services.yaml +++ b/charts/tce-all-in-one/templates/00-tce-services.yaml @@ -17,6 +17,10 @@ spec: targetPort: http protocol: TCP name: http + - port: {{ $.Values.ports.graphql }} + targetPort: graphql + protocol: TCP + name: graphql selector: app: {{ $.Values.mode }}-{{ $index }} sessionAffinity: ClientIP @@ -39,6 +43,10 @@ spec: targetPort: http protocol: TCP name: http + - port: {{ $.Values.ports.graphql }} + targetPort: graphql + protocol: TCP + name: graphql selector: node: {{ $.Values.mode }} sessionAffinity: ClientIP diff --git a/charts/tce-all-in-one/templates/01-tce-deployments.yaml b/charts/tce-all-in-one/templates/01-tce-deployments.yaml index 3e6cec1..3d717e5 100644 --- a/charts/tce-all-in-one/templates/01-tce-deployments.yaml +++ b/charts/tce-all-in-one/templates/01-tce-deployments.yaml @@ -71,6 +71,9 @@ spec: - name: http containerPort: {{ $.Values.ports.http }} protocol: TCP + - name: graphql + containerPort: {{ $.Values.ports.graphql }} + protocol: TCP volumeMounts: - mountPath: /tmp/shared name: shared diff --git a/charts/tce-all-in-one/values.yaml b/charts/tce-all-in-one/values.yaml index e5bfd02..acd6171 100644 --- a/charts/tce-all-in-one/values.yaml +++ b/charts/tce-all-in-one/values.yaml @@ -21,6 +21,7 @@ acme: ports: http: 1340 p2p: 9090 + graphql: 4000 image: repository: nobody