aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/default/h-asgi/deployment.yaml
blob: d195201a4e66cbd6cf404101d70debce62db13bb (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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: h-asgi
spec:
  replicas: 1
  selector:
    matchLabels:
      app: h-asgi
  template:
    metadata:
      labels:
        app: h-asgi
    spec:
      containers:
      - name: h-asgi
        image: ghcr.io/vcokltfre/h:latest
        imagePullPolicy: Always
        resources:
          requests:
            cpu: 30m
            memory: 25Mi
          limits:
            cpu: 30m
            memory: 25Mi
        securityContext:
          readOnlyRootFilesystem: true
      securityContext:
        fsGroup: 2000
        runAsUser: 1000
        runAsNonRoot: true