aboutsummaryrefslogtreecommitdiff
path: root/grumpy/cgit/cgit-deploy.yaml
blob: 3b123944e9c38f8923f049a026f922ce9db3b534 (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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cgit
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/instance: cgit
      app.kubernetes.io/name: cgit
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: cgit
        app.kubernetes.io/name: cgit
    spec:
      containers:
      - env:
        - name: CGIT_HOSTNAME
          value: git.ofmax.li
        - name: CGIT_PORT
          value: "8080"
        image: registry.gitlab.com/grumps/grumpy-containers/cgit:v0.0.5
        imagePullPolicy: Always
        name: cgit
        ports:
        - containerPort: 8080
          name: http
          protocol: TCP
        volumeMounts:
        - mountPath: /var/lib/git
          name: gitolite-storage
          readOnly: false
      imagePullSecrets:
      - name: regcred
      serviceAccountName: cgit
      volumes:
      - name: gitolite-storage
        persistentVolumeClaim:
          claimName: gitolite-storage