aboutsummaryrefslogtreecommitdiff
path: root/grumpy/gitolite/gitolite-gitolite-deploy.yaml
blob: d1a45f4556c1ced293d70bcc3de4b4b88ae2841c (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
58
59
60
61
62
63
64
65
apiVersion: apps/v1
kind: Deployment
metadata:
  name: gitolite-gitolite
spec:
  replicas: 1
  selector:
    matchLabels:
      component: gitolite-gitolite
  strategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: gitolite-gitolite
        component: gitolite-gitolite
    spec:
      containers:
      - args:
        - sshd
        env:
        - name: SSH_KEY
          value: ""
        - name: SSH_KEY_NAME
          value: admin
        - name: UMASK
          value: "0027"
        image: git
        imagePullPolicy: Always
        name: gitolite-gitolite
        ports:
        - containerPort: 22
          name: ssh
        resources:
          requests:
            cpu: 200m
            memory: 256Mi
        volumeMounts:
        - mountPath: /etc/ssh/keys
          name: gitolite-ssh-keys
          readOnly: false
        - mountPath: /var/lib/git
          name: gitolite-git
          readOnly: false
      imagePullSecrets:
      - name: regcred
      initContainers:
      - command:
        - chmod
        - "755"
        - /var/lib/git
        image: git
        imagePullPolicy: Always
        name: setup
        volumeMounts:
        - mountPath: /var/lib/git
          name: gitolite-git
          readOnly: false
      volumes:
      - name: gitolite-ssh-keys
        persistentVolumeClaim:
          claimName: gitolite-storage-ssh
      - name: gitolite-git
        persistentVolumeClaim:
          claimName: gitolite-storage