Skip to content

Commit

Permalink
Add support for extra volumes and mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
SiDen committed Sep 26, 2023
1 parent 766f7b1 commit 72b6aef
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/centrifugo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: centrifugo
description: Centrifugo is a scalable real-time messaging server in language-agnostic way
version: 11.0.5
version: 11.0.6
appVersion: 5.0.3
home: https://centrifugal.dev
icon: https://centrifugal.dev/img/favicon.png
Expand Down
8 changes: 7 additions & 1 deletion charts/centrifugo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ spec:
volumes:
- name: {{ include "centrifugo.fullname" . }}-config
configMap:
name: {{ include "centrifugo.fullname" . }}-config
name: {{ include "centrifugo.fullname" . }}-config
{{- with .Values.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.initContainers}}
initContainers:
{{- with .Values.initContainers }}
Expand Down Expand Up @@ -148,6 +151,9 @@ spec:
- name: "{{ include "centrifugo.fullname" . }}-config"
mountPath: "/centrifugo"
readOnly: true
{{- with .Values.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
- name: external
containerPort: {{ .Values.service.port }}
Expand Down
12 changes: 12 additions & 0 deletions charts/centrifugo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,18 @@ config:
# Array of namespaces.
namespaces: []

# Additional volumes for Centrifugo deployment.
volumes: []
# - name: volume
# secret:
# secretName: volumeSecretName

# Additional volume mounts for Centrifugo container.
volumeMounts: []
# - name: volume
# mountPath: "/volume"
# readOnly: true


# TopologySpreadConstrains, e.g. for spreading pods across nodes
# see https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
Expand Down

0 comments on commit 72b6aef

Please sign in to comment.