From e9d9b79c13d7a1b29a6b2e2ec59931b71a81f2fe Mon Sep 17 00:00:00 2001 From: zmailloux Date: Tue, 19 Feb 2019 15:02:08 -0600 Subject: [PATCH] Ports man, not even once --- Dockerfile | 2 ++ charts/meta-project/templates/deployment.yaml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3e6bb3e..b1e09f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ FROM openjdk:8-jdk-slim +ENV PORT 9001 +EXPOSE 9001 ENV PORT 9000 EXPOSE 9000 COPY build/libs/*.jar /opt/app.jar diff --git a/charts/meta-project/templates/deployment.yaml b/charts/meta-project/templates/deployment.yaml index a1e87b4..9f9c1fa 100644 --- a/charts/meta-project/templates/deployment.yaml +++ b/charts/meta-project/templates/deployment.yaml @@ -28,8 +28,10 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - - name: http + - name: external containerPort: 9001 + - name: http + containerPort: 9000 resources: {{ toYaml .Values.resources | indent 12 }} {{- with .Values.nodeSelector }}