Skip to content

Commit dc8d4df

Browse files
authored
Remove kube-rbac-proxy (#1918)
1 parent d128f55 commit dc8d4df

8 files changed

+5
-83
lines changed

config/default/kustomization.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ resources:
2727
- credentials.yaml
2828

2929
patchesStrategicMerge:
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.
3330
- manager_credentials_patch.yaml
34-
- manager_auth_proxy_patch.yaml
3531
- manager_image_patch.yaml
3632
- manager_pull_policy.yaml
3733

config/default/manager_auth_proxy_patch.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

config/manager/manager.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ spec:
2828
args:
2929
- "--leader-elect"
3030
- "--provider-id-fmt=${PROVIDER_ID_FORMAT:=v2}"
31-
- "--metrics-bind-addr=127.0.0.1:8080"
31+
- "--diagnostics-address=${CAPIBM_DIAGNOSTICS_ADDRESS:=:8443}"
32+
- "--insecure-diagnostics=${CAPIBM_INSECURE_DIAGNOSTICS:=false}"
3233
- "--service-endpoint=${SERVICE_ENDPOINT:=none}"
3334
- "--v=${LOGLEVEL:=0}"
3435
image: controller:latest
@@ -37,6 +38,9 @@ spec:
3738
- containerPort: 9440
3839
name: healthz
3940
protocol: TCP
41+
- containerPort: 8443
42+
name: metrics
43+
protocol: TCP
4044
readinessProbe:
4145
httpGet:
4246
path: /readyz

config/rbac/auth_proxy_client_clusterrole.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

config/rbac/auth_proxy_role.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

config/rbac/auth_proxy_role_binding.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

config/rbac/auth_proxy_service.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

config/rbac/kustomization.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,4 @@ resources:
33
- role_binding.yaml
44
- leader_election_role.yaml
55
- leader_election_role_binding.yaml
6-
# Comment the following 4 lines if you want to disable
7-
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
8-
# which protects your /metrics endpoint.
9-
- auth_proxy_service.yaml
10-
- auth_proxy_role.yaml
11-
- auth_proxy_role_binding.yaml
12-
- auth_proxy_client_clusterrole.yaml
136
- service_account.yaml

0 commit comments

Comments
 (0)