forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline_deployment.yaml
43 lines (43 loc) · 1.05 KB
/
pipeline_deployment.yaml
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
kind: Deployment
apiVersion: apps/v1
metadata:
name: prow-pipeline
namespace: default
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: prow-pipeline
template:
metadata:
labels:
app: prow-pipeline
spec:
serviceAccountName: prow-pipeline
containers:
- name: pipeline
image: gcr.io/k8s-prow/pipeline:v20211210-dfd4c4dd7d
args:
- --all-contexts
- --config=/etc/prow-config/config.yaml
env:
# Use KUBECONFIG envvar rather than --kubeconfig flag in order to provide multiple configs to merge.
- name: KUBECONFIG
value: "/etc/kubeconfig/config"
volumeMounts:
- mountPath: /etc/kubeconfig
name: kubeconfig
readOnly: true
- mountPath: /etc/prow-config
name: prow-config
readOnly: true
volumes:
- name: kubeconfig
secret:
defaultMode: 420
secretName: kubeconfig
- name: prow-config
configMap:
name: config