Path: blob/main/components/ws-manager-mk2/config/default/manager_auth_proxy_patch.yaml
2500 views
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.1# Licensed under the GNU Affero General Public License (AGPL).2# See License-AGPL.txt in the project root for license information.34# This patch inject a sidecar container which is a HTTP proxy for the5# controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews.6apiVersion: apps/v17kind: Deployment8metadata:9name: controller-manager10namespace: system11spec:12template:13spec:14containers:15- name: kube-rbac-proxy16image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.017args:18- "--secure-listen-address=0.0.0.0:8443"19- "--upstream=http://127.0.0.1:8080/"20- "--logtostderr=true"21- "--v=0"22ports:23- containerPort: 844324protocol: TCP25name: https26resources:27limits:28cpu: 500m29memory: 128Mi30requests:31cpu: 5m32memory: 64Mi33- name: manager34args:35- "--health-probe-bind-address=:8081"36- "--metrics-bind-address=127.0.0.1:8080"37- "--leader-elect"383940