diff --git a/charts/gxf/config/tomcat/server.xml b/charts/gxf/config/tomcat/server.xml index 8b4b9ed..85ba561 100644 --- a/charts/gxf/config/tomcat/server.xml +++ b/charts/gxf/config/tomcat/server.xml @@ -47,7 +47,7 @@ SPDX-License-Identifier: Apache-2.0 secretRequired="false" /> {{- end }} {{- if .Values.httpsConnector.enabled }} - diff --git a/charts/gxf/templates/deployment.yaml b/charts/gxf/templates/deployment.yaml index e03b4bf..d586a5e 100644 --- a/charts/gxf/templates/deployment.yaml +++ b/charts/gxf/templates/deployment.yaml @@ -92,6 +92,11 @@ spec: name: http protocol: TCP {{- end }} + {{- if .Values.httpsConnector.enabled }} + - containerPort: 8443 + name: https + protocol: TCP + {{- end }} {{- range .Values.extraPorts }} - containerPort: {{ .port }} name: {{ .name }} @@ -112,7 +117,7 @@ spec: mountPath: /usr/local/bin {{- if .Values.httpsConnector.enabled }} - name: server-certs - mountPath: /certs + mountPath: /etc/ssl/certs {{- end }} {{- if .Values.extraVolumeMounts }} {{- toYaml .Values.extraVolumeMounts | nindent 8 }} diff --git a/charts/gxf/templates/service.yaml b/charts/gxf/templates/service.yaml index 3738e5a..c504fd7 100644 --- a/charts/gxf/templates/service.yaml +++ b/charts/gxf/templates/service.yaml @@ -7,7 +7,7 @@ spec: - name: http port: 80 targetPort: http - {{- if .Values.httpdSidecar.enabled }} + {{- if or .Values.httpdSidecar.enabled .Values.httpsConnector.enabled }} - name: https port: 443 targetPort: https