/k8s

To get this branch, use:
bzr branch https://code.breezy-vcs.org/k8s

« back to all changes in this revision

Viewing changes to tarmac-3.2.yaml

  • Committer: Jelmer Vernooij
  • Date: 2022-10-30 18:02:39 UTC
  • Revision ID: jelmer@jelmer.uk-20221030180239-iwvmqgvr3lqi9q7x
Add tarmac config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
apiVersion: batch/v1
 
2
kind: CronJob
 
3
metadata:
 
4
  name: tarmac-3.2
 
5
spec:
 
6
  concurrencyPolicy: Forbid
 
7
  jobTemplate:
 
8
    spec:
 
9
      template:
 
10
        spec:
 
11
          containers:
 
12
          - args:
 
13
            - merge
 
14
            - lp:brz/3.2
 
15
            env:
 
16
            - name: BRZ_SSH
 
17
              value: openssh
 
18
            - name: TARMAC_CONFIG_HOME
 
19
              value: /config
 
20
            - name: TARMAC_CACHE_HOME
 
21
              value: /cache
 
22
            image: ghcr.io/jelmer/tarmac:latest
 
23
            imagePullPolicy: Always
 
24
            name: tarmac
 
25
            resources:
 
26
              limits:
 
27
                cpu: "2"
 
28
                memory: 4Gi
 
29
              requests:
 
30
                cpu: "1"
 
31
                memory: 1Gi
 
32
            volumeMounts:
 
33
            - mountPath: /config/credentials
 
34
              name: credentials
 
35
              subPath: credentials
 
36
            - mountPath: /config/tarmac.conf
 
37
              name: config
 
38
              subPath: tarmac.conf
 
39
            - mountPath: /logs
 
40
              name: logs
 
41
            - mountPath: /root/.ssh
 
42
              name: ssh-creds
 
43
            - mountPath: /cache
 
44
              name: cache
 
45
            - name: tmp
 
46
              mountPath: /tmp
 
47
          dnsPolicy: ClusterFirst
 
48
          imagePullSecrets:
 
49
          - name: ghcr-private
 
50
          nodeSelector:
 
51
            kubernetes.io/arch: amd64
 
52
          restartPolicy: Never
 
53
          schedulerName: default-scheduler
 
54
          securityContext: {}
 
55
          terminationGracePeriodSeconds: 30
 
56
          volumes:
 
57
          - name: credentials
 
58
            secret:
 
59
              defaultMode: 420
 
60
              secretName: tarmac-credentials
 
61
          - configMap:
 
62
              defaultMode: 420
 
63
              name: tarmac-config
 
64
            name: config
 
65
          - emptyDir: {}
 
66
            name: logs
 
67
          - emptyDir: {}
 
68
            name: cache
 
69
          - emptyDir:
 
70
              sizeLimit: 20Gi
 
71
            name: tmp
 
72
          - name: ssh-creds
 
73
            secret:
 
74
              defaultMode: 0600
 
75
              secretName: tarmac-ssh
 
76
  schedule: "1 * * * *"
 
77
  successfulJobsHistoryLimit: 3
 
78
  suspend: false