Skip to content

Commit

Permalink
chore(helm): Make volume/pvc optional
Browse files Browse the repository at this point in the history
* Changed helm chart to use s3 strorage image

* Removed pvc config

* Bring back pvc as option

---------

Co-authored-by: Tomasz Durka <[email protected]>
  • Loading branch information
elias-summermatter and tomaszdurka authored Mar 4, 2024
1 parent 40e7dfa commit 443e14c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion helm/charts/karma-media-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
description: Karma Media Server
name: karma-media-server

version: 1.0.3
version: 1.0.4
10 changes: 8 additions & 2 deletions helm/charts/karma-media-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,26 @@ spec:
- secretRef:
name: {{ .Values.deployment.envFromSecretRefName }}
{{- end }}
{{- if .Values.pvc.enabled }}
env:
- name: STORAGE_PATH
value: {{ .Values.deployment.storagePath }}
value: /home/node/wepublish/.media
{{- end }}
terminationMessagePath: '/dev/termination-log'
terminationMessagePolicy: 'File'
{{- if .Values.pvc.enabled }}
volumeMounts:
- name: {{ include "helm.name" . }}
mountPath: {{ .Values.deployment.storagePath }}
mountPath: /home/node/wepublish/.media
{{- end }}
{{- with .Values.deployment.properties }}
{{- toYaml . | nindent 10 }}
{{- end }}
securityContext:
fsGroup: 1000
{{- if .Values.pvc.enabled }}
volumes:
- name: {{ include "helm.name" . }}
persistentVolumeClaim:
claimName: {{ include "helm.fullname" . }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.pvc.enabled }}
---
apiVersion: v1
kind: PersistentVolumeClaim
Expand All @@ -16,6 +17,4 @@ spec:
resources:
requests:
storage: {{ .Values.pvc.storage }}



{{- end }}
4 changes: 2 additions & 2 deletions helm/charts/karma-media-server/values.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
deployment:
image: ghcr.io/wepublish/karma-media-server:latest
image: seccomch/wep-media-light:latest
imagePullPolicy: Always
imagePullSecret:
env:
TOKEN: x3qYBvmWqxVJd6wA9BZ8baiDbYZD
DEBUG: 'false'
NUM_CLUSTERS: '1'
replicaCount: 1
storagePath: /home/node/wepublish/.media

service:
type: ClusterIP
Expand All @@ -19,6 +18,7 @@ deployment:
path: /

pvc:
enabled: true
storage: 20Gi

labels: { }

0 comments on commit 443e14c

Please sign in to comment.