diff options
author | Andreas Geissler <andreas-geissler@telekom.de> | 2023-07-19 14:48:39 +0200 |
---|---|---|
committer | Andreas Geissler <andreas-geissler@telekom.de> | 2023-07-19 18:20:45 +0200 |
commit | fc55fbf5e322a8ba35b93cfc9af50b2ea3f52995 (patch) | |
tree | c5f31735f56ac03a657026637563ec8796c40d76 /kubernetes/policy/components/policy-nexus | |
parent | ea924c1925e1defb454c3af53245a84ef7ec060e (diff) |
[POLICY] Correct container ports in Nexus and GUI
Use templates in deployment.yaml to fix container port settings
Issue-ID: OOM-3231
Change-Id: I4802ad318ec87fd55980483caa86a1ab7f018693
Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Diffstat (limited to 'kubernetes/policy/components/policy-nexus')
-rwxr-xr-x | kubernetes/policy/components/policy-nexus/templates/deployment.yaml | 7 |
1 files changed, 3 insertions, 4 deletions
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: |