enable enviroment variables

This commit is contained in:
2024-03-16 04:11:46 -06:00
parent c2446ab6e2
commit 7c61825d5f
3 changed files with 11 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2
name: cops
version: 0.0.2
version: 0.0.3
description: Chart for Calibre OPDS (and HTML) PHP Server
keywords:
- calibre

View File

@@ -40,6 +40,15 @@ spec:
name: cops-books
resources:
{{- toYaml .Values.deployment.resources | nindent 12 }}
env:
{{- range $k,$v := .Values.deployment.env }}
- name: {{ $k }}
value: {{ $v | quote }}
{{- end }}
{{- with .Values.deployment.envFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
livenessProbe:
httpGet:
path: /

View File

@@ -9,6 +9,7 @@ deployment:
PGID: "1000"
PUID: "1000"
TZ: UTC
envFrom:
resources:
limits:
cpu: 500m