aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/default/modmail/web/deployment.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/namespaces/default/modmail/web/deployment.yaml')
-rw-r--r--kubernetes/namespaces/default/modmail/web/deployment.yaml36
1 files changed, 36 insertions, 0 deletions
diff --git a/kubernetes/namespaces/default/modmail/web/deployment.yaml b/kubernetes/namespaces/default/modmail/web/deployment.yaml
new file mode 100644
index 0000000..1070e22
--- /dev/null
+++ b/kubernetes/namespaces/default/modmail/web/deployment.yaml
@@ -0,0 +1,36 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: modmail-web
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: modmail-web
+ template:
+ metadata:
+ labels:
+ app: modmail-web
+ spec:
+ containers:
+ - name: modmail-web
+ image: ghcr.io/python-discord/logviewer:latest
+ imagePullPolicy: Always
+ resources:
+ requests:
+ cpu: 50m
+ memory: 100Mi
+ limits:
+ cpu: 100m
+ memory: 150Mi
+ ports:
+ - containerPort: 8000
+ envFrom:
+ - secretRef:
+ name: modmail
+ securityContext:
+ readOnlyRootFilesystem: true
+ securityContext:
+ fsGroup: 2000
+ runAsUser: 1000
+ runAsNonRoot: true