File tree 3 files changed +40
-82
lines changed
3 files changed +40
-82
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,6 @@ resources:
26
26
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
27
27
# - ../prometheus
28
28
29
- patches :
30
- # Protect the /metrics endpoint by putting it behind auth.
31
- # If you want your controller-manager to expose the /metrics
32
- # endpoint w/o any authn/z, please comment the following line.
33
- - path : manager_auth_proxy_patch.yaml
34
-
35
-
36
-
37
29
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
38
30
# crd/kustomization.yaml
39
31
# - manager_webhook_patch.yaml
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -28,26 +28,22 @@ spec:
28
28
labels :
29
29
control-plane : controller-manager
30
30
spec :
31
- # TODO(user): Uncomment the following code to configure the nodeAffinity expression
32
- # according to the platforms which are supported by your solution.
33
- # It is considered best practice to support multiple architectures. You can
34
- # build your manager image using the makefile target docker-buildx.
35
- # affinity:
36
- # nodeAffinity:
37
- # requiredDuringSchedulingIgnoredDuringExecution:
38
- # nodeSelectorTerms:
39
- # - matchExpressions:
40
- # - key: kubernetes.io/arch
41
- # operator: In
42
- # values:
43
- # - amd64
44
- # - arm64
45
- # - ppc64le
46
- # - s390x
47
- # - key: kubernetes.io/os
48
- # operator: In
49
- # values:
50
- # - linux
31
+ affinity :
32
+ nodeAffinity :
33
+ requiredDuringSchedulingIgnoredDuringExecution :
34
+ nodeSelectorTerms :
35
+ - matchExpressions :
36
+ - key : kubernetes.io/arch
37
+ operator : In
38
+ values :
39
+ - amd64
40
+ - arm64
41
+ - ppc64le
42
+ - s390x
43
+ - key : kubernetes.io/os
44
+ operator : In
45
+ values :
46
+ - linux
51
47
securityContext :
52
48
runAsNonRoot : true
53
49
seccompProfile :
56
52
- command :
57
53
- /manager
58
54
args :
59
- - --leader-elect
55
+ - " --health-probe-bind-address=:8081"
56
+ - " --metrics-bind-address=127.0.0.1:8080"
57
+ - " --leader-elect"
58
+ - " --feature-gates=ForceSemverUpgradeConstraints=true"
60
59
image : controller:latest
61
60
imagePullPolicy : IfNotPresent
62
61
name : manager
86
85
requests :
87
86
cpu : 10m
88
87
memory : 64Mi
88
+ - name : kube-rbac-proxy
89
+ securityContext :
90
+ allowPrivilegeEscalation : false
91
+ capabilities :
92
+ drop :
93
+ - " ALL"
94
+ image : gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1
95
+ args :
96
+ - " --secure-listen-address=0.0.0.0:8443"
97
+ - " --upstream=http://127.0.0.1:8080/"
98
+ - " --logtostderr=true"
99
+ - " --v=0"
100
+ ports :
101
+ - containerPort : 8443
102
+ protocol : TCP
103
+ name : https
104
+ resources :
105
+ requests :
106
+ cpu : 5m
107
+ memory : 64Mi
89
108
serviceAccountName : controller-manager
90
109
terminationGracePeriodSeconds : 10
91
110
volumes :
You can’t perform that action at this time.
0 commit comments