Update documentation for Cluster-API and Flux
[icn.git] / deploy / baremetal-operator / base / default / manager_auth_proxy_patch.yaml
1 # This patch inject a sidecar container which is a HTTP proxy for the 
2 # controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews.
3 apiVersion: apps/v1
4 kind: Deployment
5 metadata:
6   name: controller-manager
7   namespace: system
8 spec:
9   template:
10     spec:
11       containers:
12       - name: kube-rbac-proxy
13         image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0
14         args:
15         - "--secure-listen-address=0.0.0.0:8443"
16         - "--upstream=http://127.0.0.1:8085/"
17         - "--logtostderr=true"
18         - "--v=10"
19         ports:
20         - containerPort: 8443
21           name: https
22       - name: manager
23         args:
24         - "--metrics-addr=127.0.0.1:8085"
25         - "--enable-leader-election"