File tree 3 files changed +46
-4
lines changed
3 files changed +46
-4
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ spec:
108
108
containers :
109
109
- args :
110
110
- client
111
+ - " -port={{ .Values.webhookPort }}"
111
112
env :
112
113
- name : __CS_POD_NAMESPACE
113
114
valueFrom :
@@ -171,6 +172,7 @@ spec:
171
172
- args :
172
173
- " client"
173
174
- " -app=watcher"
175
+ - " -http-port={{ .Values.watcherPort }}"
174
176
env :
175
177
- name : __CS_POD_NAMESPACE
176
178
valueFrom :
@@ -197,14 +199,14 @@ spec:
197
199
failureThreshold : 3
198
200
httpGet :
199
201
path : /livez
200
- port : 4080
202
+ port : {{ .Values.watcherPort }}
201
203
scheme : HTTP
202
204
periodSeconds : 10
203
205
successThreshold : 1
204
206
timeoutSeconds : 1
205
207
name : falcon-watcher
206
208
ports :
207
- - containerPort : 4080
209
+ - containerPort : {{ .Values.watcherPort }}
208
210
name : healthcheck
209
211
resources :
210
212
{{- toYaml .Values.falconWatcherResources | nindent 10 }}
@@ -219,7 +221,7 @@ spec:
219
221
failureThreshold : 30
220
222
httpGet :
221
223
path : /startz
222
- port : 4080
224
+ port : {{ .Values.watcherPort }}
223
225
scheme : HTTP
224
226
periodSeconds : 2
225
227
successThreshold : 1
@@ -287,6 +289,12 @@ spec:
287
289
tolerations :
288
290
{{- toYaml . | nindent 8 }}
289
291
{{- end }}
292
+ {{- if .Values.hostNetwork }}
293
+ hostNetwork : true
294
+ dnsPolicy : {{ default "ClusterFirstWithHostNet" .Values.dnsPolicy }}
295
+ {{- else if .Values.dnsPolicy}}
296
+ dnsPolicy : {{ .Values.dnsPolicy }}
297
+ {{- end }}
290
298
volumes :
291
299
- name : {{ include "falcon-kac.name" . }}-tls-certs
292
300
secret :
Original file line number Diff line number Diff line change 48
48
"default" : 1 ,
49
49
"minimum" : 1
50
50
},
51
+ "watcherPort" : {
52
+ "type" : " integer" ,
53
+ "default" : " 4080" ,
54
+ "minimum" : 1024 ,
55
+ "maximum" : 65535
56
+ },
51
57
"webhookPort" : {
52
58
"type" : " integer" ,
53
59
"default" : " 4433" ,
54
60
"minimum" : 1024 ,
55
- "maximum" : 32767
61
+ "maximum" : 65535
56
62
},
57
63
"autoCertificateUpdate" : {
58
64
"type" : " boolean" ,
320
326
" string"
321
327
]
322
328
},
329
+ "hostNetwork" : {
330
+ "type" : " boolean" ,
331
+ "default" : " false"
332
+ },
333
+ "dnsPolicy" : {
334
+ "type" : [
335
+ " null" ,
336
+ " string"
337
+ ],
338
+ "default" : null ,
339
+ "enum" : [
340
+ null ,
341
+ " ClusterFirst" ,
342
+ " ClusterFirstWithHostNet" ,
343
+ " Default" ,
344
+ " None"
345
+ ]
346
+ },
323
347
"webhook" : {
324
348
"type" : " object" ,
325
349
"properties" : {
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ replicas: 1
29
29
# Configure the webhook Port
30
30
webhookPort : 4443
31
31
32
+ # Configure the watcher Port
33
+ watcherPort : 4080
34
+
32
35
# Auto update the certificates every time there is an update
33
36
autoCertificateUpdate : true
34
37
@@ -147,6 +150,13 @@ webhook:
147
150
# Comma sparated list of namespaces in which we need to disable validation e.g test1,test2
148
151
disableNamespaces :
149
152
153
+ # Specifies if Falcon KAC should use hostNetwork mode. This is required in some scenarios such as when a
154
+ # custom CNI is in use where control plane nodes cannot establish network communication with pods.
155
+ hostNetwork : false
156
+
157
+ # Define Falcon KAC POD DNS Policy, follows cluster default when not set and sets "ClusterFirstWithHostNet" when hostNetwork = true unless overriden
158
+ dnsPolicy :
159
+
150
160
# Number of pods for resourceQuota object
151
161
resourceQuota :
152
162
pods : 2
You can’t perform that action at this time.
0 commit comments