-
Notifications
You must be signed in to change notification settings - Fork 162
/
controller.yaml
154 lines (153 loc) · 3.57 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#@ load("@ytt:data", "data")
---
apiVersion: v1
kind: ConfigMap
metadata:
name: build-init-image
namespace: kpack
data:
image: #@ data.values.build_init.image
---
apiVersion: v1
kind: ConfigMap
metadata:
name: build-init-windows-image
namespace: kpack
data:
image: #@ data.values.build_init_windows.image
---
apiVersion: v1
kind: ConfigMap
metadata:
name: build-waiter-image
namespace: kpack
data:
image: #@ data.values.build_waiter.image
---
apiVersion: v1
kind: ConfigMap
metadata:
name: rebase-image
namespace: kpack
data:
image: #@ data.values.rebase.image
---
apiVersion: v1
kind: ConfigMap
metadata:
name: lifecycle-image
namespace: kpack
data:
image: #@ data.values.lifecycle.image
---
apiVersion: v1
kind: ConfigMap
metadata:
name: completion-image
namespace: kpack
data:
image: #@ data.values.completion.image
---
apiVersion: v1
kind: ConfigMap
metadata:
name: completion-windows-image
namespace: kpack
data:
image: #@ data.values.completion_windows.image
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kpack-controller
namespace: kpack
spec:
replicas: 1
selector:
matchLabels:
app: kpack-controller
template:
metadata:
labels:
app: kpack-controller
version: #@ data.values.kpack_version
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: "RuntimeDefault"
priorityClassName: kpack-control-plane
serviceAccountName: controller
nodeSelector:
kubernetes.io/os: linux
containers:
- name: controller
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
privileged: false
seccompProfile:
type: "RuntimeDefault"
capabilities:
drop:
- ALL
image: #@ data.values.controller.image
env:
- name: ENABLE_PRIORITY_CLASSES
value: "false"
- name: INJECTED_SIDECAR_SUPPORT
value: "false"
- name: EXPERIMENTAL_GENERATE_SLSA_ATTESTATION
value: "false"
- name: INSECURE_SSH_TRUST_UNKNOWN_HOSTS
value: "true"
- name: CONFIG_LOGGING_NAME
value: config-logging
- name: CONFIG_OBSERVABILITY_NAME
value: config-observability
- name: METRICS_DOMAIN
value: kpack.io
- name: SCALING_FACTOR
value: '1'
- name: SYSTEM_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: SYSTEM_SERVICE_ACCOUNT
value: controller
- name: BUILD_INIT_IMAGE
valueFrom:
configMapKeyRef:
name: build-init-image
key: image
- name: BUILD_INIT_WINDOWS_IMAGE
valueFrom:
configMapKeyRef:
name: build-init-windows-image
key: image
- name: BUILD_WAITER_IMAGE
valueFrom:
configMapKeyRef:
name: build-waiter-image
key: image
- name: REBASE_IMAGE
valueFrom:
configMapKeyRef:
name: rebase-image
key: image
- name: COMPLETION_IMAGE
valueFrom:
configMapKeyRef:
name: completion-image
key: image
- name: COMPLETION_WINDOWS_IMAGE
valueFrom:
configMapKeyRef:
name: completion-windows-image
key: image
resources:
requests:
cpu: 20m
memory: 1Gi
limits:
memory: 1Gi