Skip to content

Commit

Permalink
Use containerPort in Service and probe checks
Browse files Browse the repository at this point in the history
- For non-root deployments (such as required in OpenShift), this makes
  the given containerPort be used instead of hardcoding to "http" in
  several places.

Signed-off-by: Rick Elrod <[email protected]>
  • Loading branch information
relrod committed Nov 27, 2022
1 parent da174ec commit 7e18ec1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/nextcloud/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: nextcloud
version: 3.3.3
version: 3.3.4
appVersion: 25.0.1
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
Expand Down
10 changes: 5 additions & 5 deletions charts/nextcloud/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
livenessProbe:
httpGet:
path: /status.php
port: http
port: {{ .Values.nextcloud.containerPort | default "http" }}
httpHeaders:
- name: Host
value: {{ .Values.nextcloud.host | quote }}
Expand All @@ -97,7 +97,7 @@ spec:
readinessProbe:
httpGet:
path: /status.php
port: http
port: {{ .Values.nextcloud.containerPort | default "http" }}
httpHeaders:
- name: Host
value: {{ .Values.nextcloud.host | quote }}
Expand All @@ -111,7 +111,7 @@ spec:
startupProbe:
httpGet:
path: /status.php
port: http
port: {{ .Values.nextcloud.containerPort | default "http" }}
httpHeaders:
- name: Host
value: {{ .Values.nextcloud.host | quote }}
Expand Down Expand Up @@ -165,7 +165,7 @@ spec:
livenessProbe:
httpGet:
path: /status.php
port: http
port: {{ .Values.nextcloud.containerPort | default "http" }}
httpHeaders:
- name: Host
value: {{ .Values.nextcloud.host | quote }}
Expand All @@ -179,7 +179,7 @@ spec:
readinessProbe:
httpGet:
path: /status.php
port: http
port: {{ .Values.nextcloud.containerPort | default "http" }}
httpHeaders:
- name: Host
value: {{ .Values.nextcloud.host | quote }}
Expand Down
2 changes: 1 addition & 1 deletion charts/nextcloud/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
{{- end }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
targetPort: {{ .Values.nextcloud.containerPort | default "http" }}
protocol: TCP
name: http
{{- if eq .Values.service.type "NodePort" }}
Expand Down

0 comments on commit 7e18ec1

Please sign in to comment.