github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/test/integration/config/prow/cluster/gerrit.yaml (about) 1 2 --- 3 apiVersion: apps/v1 4 kind: Deployment 5 metadata: 6 name: gerrit 7 namespace: default 8 labels: 9 app: gerrit 10 spec: 11 replicas: 1 12 selector: 13 matchLabels: 14 app: gerrit 15 template: 16 metadata: 17 labels: 18 app: gerrit 19 spec: 20 terminationGracePeriodSeconds: 30 21 serviceAccountName: gerrit 22 containers: 23 - name: gerrit 24 image: localhost:5001/gerrit 25 args: 26 - --config-path=/etc/config/config.yaml 27 - --job-config-path=/etc/job-config 28 - --last-sync-fallback=/etc/last-sync-fallback/last-sync-fallback 29 - --moonraker-address=http://moonraker.default 30 ports: 31 - name: metrics 32 containerPort: 9090 33 volumeMounts: 34 - name: job-config 35 mountPath: /etc/job-config 36 readOnly: true 37 - name: config 38 mountPath: /etc/config 39 readOnly: true 40 - name: last-sync-fallback 41 mountPath: /etc/last-sync-fallback 42 - name: cache 43 mountPath: /etc/cache 44 resources: 45 requests: 46 cpu: "1" 47 memory: "1Gi" 48 lifecycle: 49 postStart: 50 exec: 51 command: ["bin/sh", "-c", "touch /etc/last-sync-fallback/last-sync-fallback & echo {} > /etc/last-sync-fallback/last-sync-fallback"] 52 volumes: 53 - name: config 54 configMap: 55 name: config 56 - name: job-config 57 configMap: 58 name: job-config 59 - name: last-sync-fallback 60 emptyDir: {} 61 - name: cache 62 emptyDir: {} 63 --- 64 apiVersion: v1 65 kind: ServiceAccount 66 metadata: 67 name: gerrit 68 namespace: default 69 --- 70 apiVersion: v1 71 kind: ServiceAccount 72 metadata: 73 namespace: default 74 name: "gerrit" 75 --- 76 kind: Role 77 apiVersion: rbac.authorization.k8s.io/v1 78 metadata: 79 namespace: default 80 name: "gerrit" 81 rules: 82 - apiGroups: 83 - "prow.k8s.io" 84 resources: 85 - prowjobs 86 verbs: 87 - create 88 - get 89 - list 90 - update 91 - apiGroups: 92 - "" 93 resources: 94 - configmaps 95 verbs: 96 - create 97 - get 98 - update 99 --- 100 kind: RoleBinding 101 apiVersion: rbac.authorization.k8s.io/v1 102 metadata: 103 namespace: default 104 name: "gerrit" 105 roleRef: 106 apiGroup: rbac.authorization.k8s.io 107 kind: Role 108 name: "gerrit" 109 subjects: 110 - kind: ServiceAccount 111 name: "gerrit"