diff options
author | Andreas Geissler <andreas-geissler@telekom.de> | 2023-07-20 06:36:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-07-20 06:36:08 +0000 |
commit | 74ef268ceb0d9cb3361c5ed252a86ed9d30a7f0d (patch) | |
tree | 5a4bffd0aed15f59ea0da797d6f9c3936d76b31f | |
parent | 85a5a340a542ebc30b70f5489a04705037cbe9ab (diff) | |
parent | fc55fbf5e322a8ba35b93cfc9af50b2ea3f52995 (diff) |
Merge "[POLICY] Correct container ports in Nexus and GUI"
-rw-r--r-- | kubernetes/policy/components/policy-gui/templates/deployment.yaml | 3 | ||||
-rwxr-xr-x | kubernetes/policy/components/policy-nexus/templates/deployment.yaml | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/kubernetes/policy/components/policy-gui/templates/deployment.yaml b/kubernetes/policy/components/policy-gui/templates/deployment.yaml index 7a573d0356..69b5e37ed4 100644 --- a/kubernetes/policy/components/policy-gui/templates/deployment.yaml +++ b/kubernetes/policy/components/policy-gui/templates/deployment.yaml @@ -69,8 +69,7 @@ spec: env: - name: CLAMP_URL value: http://policy-clamp-runtime-acm:6969 - ports: - - containerPort: {{ .Values.service.internalPort }} + ports: {{ include "common.containerPorts" . | nindent 12 }} # disable liveness probe when breakpoints set in debugger # so K8s doesn't restart unresponsive container {{- if eq .Values.liveness.enabled true }} diff --git a/kubernetes/policy/components/policy-nexus/templates/deployment.yaml b/kubernetes/policy/components/policy-nexus/templates/deployment.yaml index b18be93805..ec579d8088 100755 --- a/kubernetes/policy/components/policy-nexus/templates/deployment.yaml +++ b/kubernetes/policy/components/policy-nexus/templates/deployment.yaml @@ -36,19 +36,18 @@ spec: - name: {{ include "common.name" . }} image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image }} imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} - ports: - - containerPort: {{ .Values.service.externalPort }} + ports: {{ include "common.containerPorts" . | nindent 12 }} {{- if eq .Values.liveness.enabled true }} livenessProbe: tcpSocket: - port: {{ .Values.service.externalPort }} + port: {{ .Values.service.internalPort }} initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} periodSeconds: {{ .Values.liveness.periodSeconds }} {{ end -}} readinessProbe: httpGet: path: {{ .Values.readiness.path }} - port: {{ .Values.service.externalPort }} + port: {{ .Values.service.internalPort }} initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} periodSeconds: {{ .Values.readiness.periodSeconds }} volumeMounts: |