Skip to content

Commit b5ad15b

Browse files
authored
Merge branch 'main' into fix_deployment_env_value_construction
2 parents 14a4cf6 + 13861f1 commit b5ad15b

File tree

7 files changed

+65
-50
lines changed

7 files changed

+65
-50
lines changed

charts/pixelfed/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.2.2
18+
version: 0.3.2
1919

2020
# This is the version number of the application being deployed.
2121
# renovate:image=ghcr.io/mattlqx/docker-pixelfed

charts/pixelfed/README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pixelfed
22

3-
![Version: 0.2.2](https://img.shields.io/badge/Version-0.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.3-nginx](https://img.shields.io/badge/AppVersion-v0.12.3--nginx-informational?style=flat-square)
3+
![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.3-nginx](https://img.shields.io/badge/AppVersion-v0.12.3--nginx-informational?style=flat-square)
44

55
A Helm chart for deploying Pixelfed on Kubernetes
66

@@ -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? |
@@ -171,21 +172,22 @@ A Helm chart for deploying Pixelfed on Kubernetes
171172
| valkey.auth.enabled | bool | `true` | |
172173
| valkey.auth.existingSecret | string | `""` | |
173174
| valkey.auth.existingSecretPasswordKey | string | `"password"` | |
174-
| valkey.auth.metrics.enabled | bool | `false` | |
175-
| valkey.auth.persistentVolumeClaimRetentionPolicy.enabled | bool | `true` | |
176-
| valkey.auth.persistentVolumeClaimRetentionPolicy.whenDeleted | string | `"Retain"` | |
177-
| valkey.auth.persistentVolumeClaimRetentionPolicy.whenScaled | string | `"Retain"` | |
178-
| valkey.auth.primary.persistence.enabled | bool | `true` | |
179-
| valkey.auth.primary.persistence.existingClaim | string | `""` | |
180-
| valkey.auth.replica.persistence.enabled | bool | `true` | |
181-
| valkey.auth.replica.persistence.existingClaim | string | `""` | |
182-
| valkey.auth.resourcesPreset | string | `"small"` | |
183-
| valkey.auth.tls.authClients | bool | `true` | |
184-
| valkey.auth.tls.autoGenerated | bool | `false` | |
185-
| valkey.auth.tls.enabled | bool | `false` | |
186175
| valkey.enabled | bool | `true` | enable the bundled valkey sub chart from Bitnami. Must set to true if externalValkey.enabled=false |
187176
| valkey.fullnameOverride | string | `"valkey"` | |
188177
| valkey.global.storageClass | string | `""` | |
178+
| valkey.metrics.enabled | bool | `false` | we use a grafana exporter that logs into valkey directly, but you can enable this if you don't use that |
179+
| valkey.persistentVolumeClaimRetentionPolicy.enabled | bool | `true` | |
180+
| valkey.persistentVolumeClaimRetentionPolicy.whenDeleted | string | `"Retain"` | |
181+
| valkey.persistentVolumeClaimRetentionPolicy.whenScaled | string | `"Retain"` | |
182+
| valkey.primary.disableCommands | list | `["FLUSHALL"]` | Laravel requires the ability to call FLUSHDB, which is disabled by default |
183+
| valkey.primary.persistence.enabled | bool | `true` | |
184+
| valkey.primary.persistence.existingClaim | string | `""` | |
185+
| valkey.replica.persistence.enabled | bool | `true` | |
186+
| valkey.replica.persistence.existingClaim | string | `""` | |
187+
| valkey.resourcesPreset | string | `"small"` | definitions: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15 Options: nano, micro, small, medium, large, xlarge, 2xlarge default: nano |
188+
| valkey.tls.authClients | bool | `true` | |
189+
| valkey.tls.autoGenerated | bool | `false` | |
190+
| valkey.tls.enabled | bool | `false` | |
189191
| volumeMounts | list | `[]` | Additional volumeMounts on the output Deployment definition. |
190192
| volumes | list | `[]` | Additional volumes on the output Deployment definition. |
191193

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: 37 additions & 31 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/
@@ -185,38 +187,42 @@ valkey:
185187
enabled: true
186188
existingSecret: ""
187189
existingSecretPasswordKey: "password"
188-
# TLS settings
189-
tls:
190-
enabled: false
191-
authClients: true
192-
autoGenerated: false
193-
194-
# primary (control plane) configuration
195-
primary:
196-
persistence:
197-
enabled: true
198-
existingClaim: ""
199-
200-
# valkey replica configuration
201-
replica:
202-
persistence:
203-
enabled: true
204-
existingClaim: ""
205-
206-
# persistnent volume retention policy for the StatefulSet
207-
persistentVolumeClaimRetentionPolicy:
190+
191+
# TLS settings
192+
tls:
193+
enabled: false
194+
authClients: true
195+
autoGenerated: false
196+
197+
# primary (control plane) configuration
198+
primary:
199+
# -- Laravel requires the ability to call FLUSHDB, which is disabled by default
200+
disableCommands:
201+
- FLUSHALL
202+
persistence:
203+
enabled: true
204+
existingClaim: ""
205+
206+
# valkey replica configuration
207+
replica:
208+
persistence:
208209
enabled: true
209-
whenScaled: Retain
210-
whenDeleted: Retain
210+
existingClaim: ""
211211

212-
metrics:
213-
# we use a grafana exporter that logs into valkey directly
214-
enabled: false
212+
# persistnent volume retention policy for the StatefulSet
213+
persistentVolumeClaimRetentionPolicy:
214+
enabled: true
215+
whenScaled: Retain
216+
whenDeleted: Retain
217+
218+
metrics:
219+
# -- we use a grafana exporter that logs into valkey directly, but you can enable this if you don't use that
220+
enabled: false
215221

216-
# definitions: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
217-
# Options: nano, micro, small, medium, large, xlarge, 2xlarge
218-
# default: nano
219-
resourcesPreset: "small"
222+
# -- definitions: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
223+
# Options: nano, micro, small, medium, large, xlarge, 2xlarge
224+
# default: nano
225+
resourcesPreset: "small"
220226

221227

222228
postgresql:

0 commit comments

Comments
 (0)