Skip to content

Commit 1e1edf1

Browse files
authored
Merge pull request #154 from small-hack/fix-streaming-env-vars
Fix streaming env vars
2 parents 2282cc4 + ef3918c commit 1e1edf1

File tree

4 files changed

+22
-20
lines changed

4 files changed

+22
-20
lines changed

charts/mastodon/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type: application
99
# This is the chart version. This version number should be incremented each time you make changes
1010
# to the chart and its templates, including the app version.
1111
# Versions are expected to follow Semantic Versioning (https://semver.org/)
12-
version: 11.0.4
12+
version: 11.1.0
1313

1414
# renovate: image=ghcr.io/mastodon/mastodon
1515
appVersion: v4.4.4

charts/mastodon/README.md

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

3-
![Version: 11.0.4](https://img.shields.io/badge/Version-11.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v4.4.4](https://img.shields.io/badge/AppVersion-v4.4.4-informational?style=flat-square)
3+
![Version: 11.1.0](https://img.shields.io/badge/Version-11.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v4.4.4](https://img.shields.io/badge/AppVersion-v4.4.4-informational?style=flat-square)
44

55
Mastodon is a free, open-source social network server based on ActivityPub.
66

@@ -205,18 +205,18 @@ Mastodon is a free, open-source social network server based on ActivityPub.
205205
| mastodon.streaming.annotations | object | `{}` | These are applied in addition to deploymentAnnotations. |
206206
| mastodon.streaming.base_url | string | `nil` | The base url for streaming can be set if the streaming API is deployed to a different domain/subdomain. |
207207
| mastodon.streaming.extraCerts | object | `{}` | Self-signed certificate(s) the (Node.js) needs to trust to connect to e.g. the database |
208-
| mastodon.streaming.extraEnvVars | object | `{}` | |
208+
| mastodon.streaming.extraEnvVars | object | `{}` | Specify extra environment variables to be added to streaming pods. |
209209
| mastodon.streaming.image.repository | string | `"ghcr.io/mastodon/mastodon-streaming"` | image repo for the mastodon streaming image |
210210
| mastodon.streaming.image.tag | string | `""` | set a specific tag for mastodon-streaming image, defaults to appVersion in Chart.yaml |
211211
| mastodon.streaming.labels | object | `{}` | These are applied in addition to mastodon.labels. |
212212
| mastodon.streaming.nodeSelector | object | `{}` | Node(s) on which we will deploy the streaming pods |
213-
| mastodon.streaming.pdb | object | `{"enable":false}` | PodDisruptionBudget configuration - See https://kubernetes.io/docs/tasks/run-application/configure-pdb/ |
213+
| mastodon.streaming.pdb | object | `{"enable":false,"maxUnavailable":1,"minAvailable":1}` | PodDisruptionBudget configuration - See https://kubernetes.io/docs/tasks/run-application/configure-pdb/ |
214214
| mastodon.streaming.podAnnotations | object | `{}` | These are applied in addition to the global podAnnotations. |
215215
| mastodon.streaming.podLabels | object | `{}` | These are applied in addition to mastodon.labels. |
216216
| mastodon.streaming.podSecurityContext | object | `{}` | Pod Security Context for Streaming Pods, overwrites .Values.podSecurityContext |
217217
| mastodon.streaming.port | int | `4000` | |
218218
| mastodon.streaming.replicas | int | `1` | Number of Streaming Pods running |
219-
| mastodon.streaming.resources | Streaming Container | `{}` | Resources for Streaming Pods, overwrites .Values.resources |
219+
| mastodon.streaming.resources | Streaming Container | `{"limits":{"cpu":"1000m","memory":"1Gi"},"requests":{"cpu":"250m","memory":"128Mi"}}` | Resources for Streaming Pods, overwrites .Values.resources |
220220
| mastodon.streaming.securityContext | Streaming Container | `{}` | Security Context for Streaming Pods, overwrites .Values.securityContext |
221221
| mastodon.streaming.topologySpreadConstraints | object | `{}` | Topology spread constraints for Streaming Pods, overwrites .Values.topologySpreadConstraints |
222222
| mastodon.streaming.updateStrategy.rollingUpdate.maxSurge | string | `"10%"` | |

charts/mastodon/templates/deployment-streaming.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ spec:
121121
{{- end }}
122122
- name: "PORT"
123123
value: {{ .Values.mastodon.streaming.port | quote }}
124-
{{- with .Values.mastodon.extraEnvVars }}
125-
{{- toYaml . | nindent 12 }}
124+
{{- range $name, $value := .Values.mastodon.streaming.extraEnvVars }}
125+
- name: {{ $name }}
126+
value: {{ quote $value }}
126127
{{- end }}
127128
volumeMounts:
128129
{{- with .Values.mastodon.extraVolumeMounts }}

charts/mastodon/values.yaml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -440,31 +440,32 @@ mastodon:
440440
# -- (Streaming Container) Security Context for Streaming Pods, overwrites .Values.securityContext
441441
securityContext: {}
442442
# -- (Streaming Container) Resources for Streaming Pods, overwrites .Values.resources
443-
resources: {}
444-
# limits:
445-
# cpu: "500m"
446-
# memory: 512Mi
447-
# requests:
448-
# cpu: 250m
449-
# memory: 128Mi
443+
resources:
444+
limits:
445+
cpu: "1000m"
446+
memory: 1Gi
447+
requests:
448+
cpu: 250m
449+
memory: 128Mi
450450
# -- PodDisruptionBudget configuration - See https://kubernetes.io/docs/tasks/run-application/configure-pdb/
451451
pdb:
452452
enable: false
453-
# minAvailable: 1
454-
# maxUnavailable: 1
453+
minAvailable: 1
454+
maxUnavailable: 1
455455
# -- Puma-specific options. Below values are based on default behavior in
456456
# config/puma.rb when no custom values are provided.
457457
# -- Self-signed certificate(s) the (Node.js) needs to trust to connect to e.g. the database
458458
extraCerts: {}
459-
# -- Secret containing a key "ca.crt" holding one or more root certificates in PEM format
459+
## Secret containing a key "ca.crt" holding one or more root certificates in PEM format
460460
# existingSecret:
461-
# -- Optional volume name for mounting the .crt file, defaults to "extra-certs"
461+
## Optional volume name for mounting the .crt file, defaults to "extra-certs"
462462
# name:
463-
# -- Optional sslMode setting. See nodejs's SSL_MODE. Consider "no-verify"
463+
## Optional sslMode setting. See nodejs's SSL_MODE. Consider "no-verify"
464464
# sslMode:
465465

466-
# Specify extra environment variables to be added to streaming pods.
466+
# -- Specify extra environment variables to be added to streaming pods.
467467
extraEnvVars: {}
468+
468469
web:
469470
port: 3000
470471
# -- Number of Web Pods running

0 commit comments

Comments
 (0)