From 9ed0dc93a472260758e879e5b032eafa1e548e13 Mon Sep 17 00:00:00 2001 From: Rub21 Date: Tue, 12 Sep 2023 15:11:40 -0500 Subject: [PATCH] Open port 81 for cgimap --- osm-seed/templates/web/web-deployment.yaml | 3 +++ osm-seed/templates/web/web-service.yaml | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/osm-seed/templates/web/web-deployment.yaml b/osm-seed/templates/web/web-deployment.yaml index 7f07f511..a0dec729 100644 --- a/osm-seed/templates/web/web-deployment.yaml +++ b/osm-seed/templates/web/web-deployment.yaml @@ -29,6 +29,9 @@ spec: - name: http containerPort: 80 protocol: TCP + - name: cgimap + containerPort: 81 + protocol: TCP livenessProbe: httpGet: path: /api/0.6/capabilities diff --git a/osm-seed/templates/web/web-service.yaml b/osm-seed/templates/web/web-service.yaml index 341eae06..d3c3ce61 100644 --- a/osm-seed/templates/web/web-service.yaml +++ b/osm-seed/templates/web/web-service.yaml @@ -1,4 +1,3 @@ -{{- if .Values.web.enabled -}} apiVersion: v1 kind: Service metadata: @@ -26,7 +25,6 @@ metadata: {{- with .Values.web.serviceAnnotations }} {{- toYaml . | nindent 4 }} {{- end }} - spec: type: {{ .Values.serviceType }} ports: @@ -34,6 +32,10 @@ spec: targetPort: http protocol: TCP name: http + - port: 81 + targetPort: 81 + protocol: TCP + name: cgimap {{- if and (eq .Values.serviceType "LoadBalancer") .Values.AWS_SSL_ARN }} - port: 443 targetPort: http @@ -44,4 +46,4 @@ spec: app: {{ template "osm-seed.name" . }} release: {{ .Release.Name }} run: {{ .Release.Name }}-web -{{- end }} \ No newline at end of file +{{- end }}