aboutsummaryrefslogtreecommitdiff
path: root/manifests/cgit/cgit-deploy.yaml
blob: 07bef6a2d5db06bda0a82f8bbfe9f500ba1b0fb8 (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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cgit
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: cgit
  template:
    metadata:
      labels:
        app.kubernetes.io/name: cgit
    spec:
      containers:
      - env:
        - name: CGIT_HOSTNAME
          value: git.localhost
        - name: CGIT_PORT
          value: "8080"
        - name: CGIT_CONFIG
          value: /opt/etc/cgitrc
        image: public.ecr.aws/s0f9o2k5/cgit:v0.0.6
        securityContext:
          runAsUser: 0
          runAsGroup: 1000
        imagePullPolicy: Always
        name: cgit
        ports:
        - containerPort: 8080
          name: http
          protocol: TCP
        volumeMounts:
        - mountPath: /opt/repos
          name: go-git-storage
          readOnly: false
        - mountPath: /opt/etc
          name: cgitrc
          readOnly: true
      imagePullSecrets:
      - name: regcred
      serviceAccountName: cgit
      volumes:
      - name: go-git-storage
        persistentVolumeClaim:
          claimName: go-git-storage
      - name: cgitrc
        configMap:
          defaultMode: 420
          name: cgitrc