Skip to content

Commit

Permalink
Change default nextcloud.containerPort to 80 in values.yaml; referenc…
Browse files Browse the repository at this point in the history
…e nextcloud.containerPort in service and deployment templates
  • Loading branch information
jessebot committed Apr 29, 2023
1 parent b35eaa3 commit 142e942
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions charts/nextcloud/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ spec:
{{- if not .Values.nginx.enabled }}
ports:
- name: http
containerPort: {{ .Values.nextcloud.containerPort | default "80" }}
containerPort: {{ .Values.nextcloud.containerPort }}
protocol: TCP
{{- end }}
{{- if and .Values.livenessProbe.enabled (not .Values.nginx.enabled) }}
livenessProbe:
httpGet:
path: /status.php
port: http
port: {{ .Values.nextcloud.containerPort }}
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 }}
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 }}
httpHeaders:
- name: Host
value: {{ .Values.nextcloud.host | quote }}
Expand Down Expand Up @@ -171,7 +171,7 @@ spec:
imagePullPolicy: {{ .Values.nginx.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.nextcloud.containerPort | default "80" }}
containerPort: {{ .Values.nextcloud.containerPort }}
protocol: TCP
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
Expand All @@ -191,7 +191,7 @@ spec:
readinessProbe:
httpGet:
path: /status.php
port: http
port: {{ .Values.nextcloud.containerPort }}
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 }}
protocol: TCP
name: http
{{- if eq .Values.service.type "NodePort" }}
Expand Down
2 changes: 1 addition & 1 deletion charts/nextcloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ nextcloud:
# smtpPasswordKey: smtp-password
update: 0
# If web server is not binding default port, you can define it
# containerPort: 8080
containerPort: 80
datadir: /var/www/html/data
persistence:
subPath:
Expand Down

0 comments on commit 142e942

Please sign in to comment.