aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/default/modmail/web/deployment.yaml
blob: 1070e227b5cfe34c87ff6ef840c7f59541458c09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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