summaryrefslogtreecommitdiff
path: root/f3s/goprecords/helm-chart/templates/deployment.yaml
blob: 8a2a11c827b02ca24455662501a282e04fb43524 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
apiVersion: apps/v1
kind: Deployment
metadata:
  name: goprecords
  namespace: services
spec:
  replicas: 1
  selector:
    matchLabels:
      app: goprecords
  template:
    metadata:
      labels:
        app: goprecords
    spec:
      containers:
      - name: goprecords
        image: registry.lan.buetow.org:30001/goprecords:0.4.1
        imagePullPolicy: Always
        args:
          - -daemon
          - -listen=:8080
          - -stats-dir=/data/stats
        ports:
          - containerPort: 8080
            name: http
            protocol: TCP
        readinessProbe:
          httpGet:
            path: /readyz
            port: 8080
          initialDelaySeconds: 5
          periodSeconds: 10
        livenessProbe:
          httpGet:
            path: /livez
            port: 8080
          initialDelaySeconds: 15
          periodSeconds: 20
        resources:
          requests:
            memory: "64Mi"
            cpu: "50m"
          limits:
            memory: "256Mi"
            cpu: "500m"
        securityContext:
          allowPrivilegeEscalation: false
          runAsUser: 0
          runAsGroup: 0
        volumeMounts:
          - name: goprecords-stats
            mountPath: /data/stats
      volumes:
        - name: goprecords-stats
          persistentVolumeClaim:
            claimName: goprecords-stats-pvc