forked from projectsveltos/addon-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanager_auth_proxy_patch.yaml
More file actions
35 lines (35 loc) · 974 Bytes
/
manager_auth_proxy_patch.yaml
File metadata and controls
35 lines (35 loc) · 974 Bytes
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
# This patch inject a sidecar container which is a HTTP proxy for the
# controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews.
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller
namespace: projectsveltos
spec:
template:
spec:
initContainers:
- name: initialization
args:
- "--report-mode=0"
- --shard-key=
- "--agent-in-mgmt-cluster=false"
containers:
- name: controller
args:
- "--diagnostics-address=:8443"
- "--report-mode=0"
- --shard-key=
- --capi-onboard-annotation=
- "--v=5"
- "--version=v1.8.0"
- "--agent-in-mgmt-cluster=false"
env:
- name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
resource: limits.cpu