From 4c533d1ac7df75bd6fabc86b746e3eef0a5c7cbb Mon Sep 17 00:00:00 2001 From: "Gregg B. Jensen" Date: Fri, 16 Aug 2024 17:14:20 -0600 Subject: [PATCH] Add missing services and set webhooks port to 3000 --- charts/prdeploy-api/templates/service.yaml | 15 +++++++++++++++ charts/prdeploy-app/templates/service.yaml | 15 +++++++++++++++ charts/prdeploy-webhooks/templates/service.yaml | 15 +++++++++++++++ prdeploy-webhooks/Dockerfile | 2 +- 4 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 charts/prdeploy-api/templates/service.yaml create mode 100644 charts/prdeploy-app/templates/service.yaml create mode 100644 charts/prdeploy-webhooks/templates/service.yaml diff --git a/charts/prdeploy-api/templates/service.yaml b/charts/prdeploy-api/templates/service.yaml new file mode 100644 index 0000000..dc164ab --- /dev/null +++ b/charts/prdeploy-api/templates/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "prdeploy-api.fullname" . }} + labels: + {{- include "prdeploy-api.labels" . | nindent 4 }} +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: http + protocol: TCP + name: http + selector: + {{- include "prdeploy-api.selectorLabels" . | nindent 4 }} diff --git a/charts/prdeploy-app/templates/service.yaml b/charts/prdeploy-app/templates/service.yaml new file mode 100644 index 0000000..4c1ffb4 --- /dev/null +++ b/charts/prdeploy-app/templates/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "prdeploy-app.fullname" . }} + labels: + {{- include "prdeploy-app.labels" . | nindent 4 }} +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: http + protocol: TCP + name: http + selector: + {{- include "prdeploy-app.selectorLabels" . | nindent 4 }} diff --git a/charts/prdeploy-webhooks/templates/service.yaml b/charts/prdeploy-webhooks/templates/service.yaml new file mode 100644 index 0000000..922de5f --- /dev/null +++ b/charts/prdeploy-webhooks/templates/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "prdeploy-webhooks.fullname" . }} + labels: + {{- include "prdeploy-webhooks.labels" . | nindent 4 }} +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: 3000 + protocol: TCP + name: http + selector: + {{- include "prdeploy-webhooks.selectorLabels" . | nindent 4 }} diff --git a/prdeploy-webhooks/Dockerfile b/prdeploy-webhooks/Dockerfile index ce9d103..8de312e 100644 --- a/prdeploy-webhooks/Dockerfile +++ b/prdeploy-webhooks/Dockerfile @@ -1,7 +1,7 @@ FROM node:20 as base ENV NODE_ENV production USER node -EXPOSE 80 +EXPOSE 3000 FROM node:20 as build WORKDIR /src