airshipctl/manifests/function/cabpk/v0.3.3/manager/manager_auth_proxy_patch.yaml
Sirajudeen 00dcad041e Image override for cluster components
* Used images tag to inject image override to clustetctl object,
  the same way the image override is done for cert-manager.
* Using this way, the upstream manifests for cluster components does
  not need any customization (IMAGE URL as variable) and can be consumed as is.
* If this approach is approved, then will update the same for other proviers
  ( CAPO, CAPD, CAPZ, cAPG ) and will get tested.

Change-Id: If920f544d111d94e5b7075d5406ed2f87a5e6929
Closes: #431
2020-12-14 15:27:35 +00:00

26 lines
746 B
YAML

# 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-manager
namespace: system
spec:
template:
spec:
containers:
- name: kube-rbac-proxy
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.4.1
args:
- "--secure-listen-address=0.0.0.0:8443"
- "--upstream=http://127.0.0.1:8080/"
- "--logtostderr=true"
- "--v=10"
ports:
- containerPort: 8443
name: https
- name: manager
args:
- "--metrics-addr=127.0.0.1:8080"
- "--enable-leader-election"