Skip to content

Commit 66a9776

Browse files
authored
Merge branch 'main' into fix_indent_valkey_subchart_values
2 parents 4fa957d + 1316a97 commit 66a9776

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
lines changed

charts/pixelfed/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ A Helm chart for deploying Pixelfed on Kubernetes
6161
| ingress.hosts[0].paths[0].path | string | `"/"` | |
6262
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
6363
| ingress.tls | list | `[]` | |
64-
| livenessProbe.httpGet.path | string | `"/"` | |
64+
| livenessProbe.httpGet.path | string | `"/api/service/health-check"` | |
6565
| livenessProbe.httpGet.port | string | `"http"` | |
6666
| nameOverride | string | `""` | This is to override the chart name. |
6767
| nodeSelector | object | `{}` | |
@@ -156,12 +156,13 @@ A Helm chart for deploying Pixelfed on Kubernetes
156156
| podSecurityContext | object | `{}` | |
157157
| postgresql.enabled | bool | `true` | enable the bundled postgresql sub chart from Bitnami. Must set to true if externalDatabase.enabled=false |
158158
| postgresql.fullnameOverride | string | `"postgresql"` | |
159-
| readinessProbe.httpGet.path | string | `"/"` | |
159+
| readinessProbe.httpGet.path | string | `"/api/service/health-check"` | |
160160
| readinessProbe.httpGet.port | string | `"http"` | |
161161
| replicaCount | int | `1` | This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ |
162162
| resources | object | `{}` | |
163163
| securityContext | object | `{}` | |
164164
| service.port | int | `80` | This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports |
165+
| service.targetPort | int | `80` | Port to attach to on the pods. Also sets what port nginx listens on inside the container. |
165166
| service.type | string | `"ClusterIP"` | This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types |
166167
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
167168
| serviceAccount.automount | bool | `true` | Automatically mount a ServiceAccount's API credentials? |

charts/pixelfed/templates/configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ data:
88
# app config vars
99
APP_NAME={{ .Values.pixelfed.app.name }}
1010
APP_ENV={{ .Values.pixelfed.app.env }}
11+
APP_PORT={{ .Values.service.targetPort }}
1112
APP_URL={{ .Values.pixelfed.app.url }}
1213
APP_LOCALE={{ .Values.pixelfed.app.locale }}
1314
{{- with .Values.pixelfed.app.domain }}

charts/pixelfed/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ spec:
3838
imagePullPolicy: {{ .Values.image.pullPolicy }}
3939
ports:
4040
- name: http
41-
containerPort: {{ .Values.service.port }}
41+
containerPort: {{ .Values.service.targetPort }}
4242
protocol: TCP
4343
env:
4444
# app data
4545
- name: APP_NAME
4646
value: {{ .Values.pixelfed.app.name }}
4747
- name: APP_ENV
4848
value: {{ .Values.pixelfed.app.env }}
49+
- name: APP_PORT
50+
value: {{ .Values.service.targetPort | quote}}
4951
- name: APP_URL
5052
value: {{ .Values.pixelfed.app.url }}
5153
- name: APP_LOCALE
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if not .Values.externalDatabase.existingSecret }}
1+
{{- if not .Values.pixelfed.mail.existingSecret }}
22
---
33
apiVersion: v1
44
kind: Secret
@@ -7,6 +7,10 @@ metadata:
77
data:
88
host: {{ .Values.pixelfed.mail.host }}
99
port: {{ .Values.pixelfed.mail.port }}
10+
{{- if .Values.pixelfed.mail.username }}
1011
username: {{ .Values.pixelfed.mail.username }}
12+
{{- end }}
13+
{{- if .Values.pixelfed.mail.password }}
1114
password: {{ .Values.pixelfed.mail.password }}
15+
{{- end }}
1216
{{- end }}

charts/pixelfed/templates/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
type: {{ .Values.service.type }}
99
ports:
1010
- port: {{ .Values.service.port }}
11-
targetPort: http
11+
targetPort: {{ .Values.service.targetPort }}
1212
protocol: TCP
1313
name: http
1414
selector:

charts/pixelfed/values.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ service:
5656
type: ClusterIP
5757
# -- This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
5858
port: 80
59+
# -- Port to attach to on the pods. Also sets what port nginx listens on inside the container.
60+
targetPort: 80
5961

6062
# This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/
6163
ingress:
@@ -87,12 +89,12 @@ resources: {}
8789
# This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
8890
livenessProbe:
8991
httpGet:
90-
path: /
92+
path: /api/service/health-check
9193
port: http
9294

9395
readinessProbe:
9496
httpGet:
95-
path: /
97+
path: /api/service/health-check
9698
port: http
9799

98100
# This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/

0 commit comments

Comments
 (0)