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 }}