forked from shipwright-io/build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
500-controller.yaml
55 lines (55 loc) · 1.7 KB
/
500-controller.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
44
45
46
47
48
49
50
51
52
53
54
55
apiVersion: apps/v1
kind: Deployment
metadata:
name: shipwright-build-controller
namespace: shipwright-build
spec:
replicas: 1
selector:
matchLabels:
name: shipwright-build
template:
metadata:
labels:
name: shipwright-build
spec:
serviceAccountName: shipwright-build-controller
containers:
- name: shipwright-build
image: ko://github.com/shipwright-io/build/cmd/shipwright-build-controller
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: BUILD_CONTROLLER_LEADER_ELECTION_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: CONTROLLER_NAME
value: "shipwright-build"
- name: GIT_CONTAINER_IMAGE
value: ko://github.com/shipwright-io/build/cmd/git
- name: MUTATE_IMAGE_CONTAINER_IMAGE
value: ko://github.com/shipwright-io/build/cmd/mutate-image
- name: BUNDLE_CONTAINER_IMAGE
value: ko://github.com/shipwright-io/build/cmd/bundle
ports:
- containerPort: 8383
name: metrics-port
livenessProbe:
httpGet:
path: /metrics
port: metrics-port
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /metrics
port: metrics-port
initialDelaySeconds: 5
periodSeconds: 10