aboutsummaryrefslogtreecommitdiff
path: root/templates/deployment.yaml
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-09-23 09:32:46 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-09-23 09:32:46 +0200
commit258ae0c022e0c57e9e87c61e9ca5890ef0480da1 (patch)
treefb08d7d06b4bf606925da3db12f4d84b3bfbe884 /templates/deployment.yaml
Initial commit
Diffstat (limited to 'templates/deployment.yaml')
-rw-r--r--templates/deployment.yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/templates/deployment.yaml b/templates/deployment.yaml
new file mode 100644
index 0000000..ea1bab5
--- /dev/null
+++ b/templates/deployment.yaml
@@ -0,0 +1,56 @@
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ template "invidious.fullname" . }}
+ labels:
+ app: {{ template "invidious.name" . }}
+ chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+ release: {{ .Release.Name }}
+spec:
+ replicas: {{ .Values.replicaCount }}
+ selector:
+ matchLabels:
+ app: {{ template "invidious.name" . }}
+ release: {{ .Release.Name }}
+ template:
+ metadata:
+ labels:
+ app: {{ template "invidious.name" . }}
+ chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+ release: {{ .Release.Name }}
+ spec:
+ securityContext:
+ runAsUser: {{ .Values.securityContext.runAsUser }}
+ runAsGroup: {{ .Values.securityContext.runAsGroup }}
+ fsGroup: {{ .Values.securityContext.fsGroup }}
+ containers:
+ - name: {{ .Chart.Name }}
+ image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
+ ports:
+ - containerPort: 3000
+ env:
+ - name: INVIDIOUS_CONFIG
+ valueFrom:
+ configMapKeyRef:
+ key: INVIDIOUS_CONFIG
+ name: {{ template "invidious.fullname" . }}
+ securityContext:
+ allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }}
+ capabilities:
+ drop:
+ - ALL
+ resources:
+{{ toYaml .Values.resources | indent 10 }}
+ readinessProbe:
+ httpGet:
+ port: 3000
+ path: /
+ livenessProbe:
+ httpGet:
+ port: 3000
+ path: /
+ initialDelaySeconds: 15
+ restartPolicy: Always
+...