/k8s

To get this branch, use:
bzr branch https://code.breezy-vcs.org/k8s
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
66
67
68
69
70
71
72
73
74
75
76
77
78
apiVersion: batch/v1
kind: CronJob
metadata:
  name: tarmac-3.2
spec:
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - args:
            - merge
            - lp:brz/3.2
            env:
            - name: BRZ_SSH
              value: openssh
            - name: TARMAC_CONFIG_HOME
              value: /config
            - name: TARMAC_CACHE_HOME
              value: /cache
            image: ghcr.io/jelmer/tarmac:latest
            imagePullPolicy: Always
            name: tarmac
            resources:
              limits:
                cpu: "2"
                memory: 4Gi
              requests:
                cpu: "1"
                memory: 1Gi
            volumeMounts:
            - mountPath: /config/credentials
              name: credentials
              subPath: credentials
            - mountPath: /config/tarmac.conf
              name: config
              subPath: tarmac.conf
            - mountPath: /logs
              name: logs
            - mountPath: /root/.ssh
              name: ssh-creds
            - mountPath: /cache
              name: cache
            - name: tmp
              mountPath: /tmp
          dnsPolicy: ClusterFirst
          imagePullSecrets:
          - name: ghcr-private
          nodeSelector:
            kubernetes.io/arch: amd64
          restartPolicy: Never
          schedulerName: default-scheduler
          securityContext: {}
          terminationGracePeriodSeconds: 30
          volumes:
          - name: credentials
            secret:
              defaultMode: 420
              secretName: tarmac-credentials
          - configMap:
              defaultMode: 420
              name: tarmac-config
            name: config
          - emptyDir: {}
            name: logs
          - emptyDir: {}
            name: cache
          - emptyDir:
              sizeLimit: 20Gi
            name: tmp
          - name: ssh-creds
            secret:
              defaultMode: 0600
              secretName: tarmac-ssh
  schedule: "1 * * * *"
  successfulJobsHistoryLimit: 3
  suspend: false