Skip to content

Commit b049c1c

Browse files
authored
removing kube-rbac-proxy from website docs (#6864)
Signed-off-by: Adam D. Cornett <[email protected]>
1 parent c6fef29 commit b049c1c

File tree

4 files changed

+11
-31
lines changed

4 files changed

+11
-31
lines changed

website/content/en/docs/building-operators/ansible/development-tips.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ check the full Ansible result in the logs in order to be able to debug it.
337337

338338
**Example**
339339

340-
In `config/manager/manager.yaml` and `config/default/manager_auth_proxy_patch.yaml`:
340+
In `config/manager/manager.yaml` and `config/default/manager_metrics_patch.yaml`:
341341

342342
```yaml
343343
...

website/content/en/docs/building-operators/golang/operator-scope.md

-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ If the operator can watch multiple namespaces, set the following in your `spec.i
315315
[ctrl-manager]: https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/manager#Manager
316316
[ctrl-options]: https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/manager#Options
317317
[k8s-rbac]: https://kubernetes.io/docs/reference/access-authn-authz/rbac/
318-
[kube-rbac-proxy]: https://github.com/brancz/kube-rbac-proxy
319318
[rbac-clusterrole]: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#role-and-clusterrole
320319
[crd-scope-doc]: /docs/building-operators/golang/crds-scope/
321320
[rbac-markers]: https://book.kubebuilder.io/reference/markers/rbac.html

website/content/en/docs/building-operators/golang/references/logging.md

+7-26
Original file line numberDiff line numberDiff line change
@@ -151,34 +151,15 @@ run: manifests generate fmt vet
151151

152152
### Setting flags when deploying to a cluster
153153

154-
When deploying your operator to a cluster you can set additional flags using an `args` array in your operator's `container` spec in the file `config/default/manager_auth_proxy_patch.yaml` For example:
154+
When deploying your operator to a cluster you can set additional flags using an `args` array in your operator's `container` spec in the file `config/default/manager_metrics_patch.yaml` For example:
155155

156156
```yaml
157-
apiVersion: apps/v1
158-
kind: Deployment
159-
metadata:
160-
name: controller-manager
161-
namespace: system
162-
spec:
163-
template:
164-
spec:
165-
containers:
166-
- name: kube-rbac-proxy
167-
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0
168-
args:
169-
- "--secure-listen-address=0.0.0.0:8443"
170-
- "--upstream=http://127.0.0.1:8080/"
171-
- "--logtostderr=true"
172-
- "--v=10"
173-
ports:
174-
- containerPort: 8443
175-
name: https
176-
- name: manager
177-
args:
178-
- "--metrics-bind-address=127.0.0.1:8080"
179-
- "--leader-elect"
180-
- "--zap-encoder=console"
181-
- "--zap-log-level=debug"
157+
- op: add
158+
path: /spec/template/spec/containers/0/args/0
159+
value: --zap-log-level=debug
160+
- op: add
161+
path: /spec/template/spec/containers/0/args/0
162+
value: --zap-encoder=console
182163
```
183164

184165
## Creating a structured log statement

website/content/en/docs/building-operators/helm/reference/advanced_features/max_concurrent_reconciles.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ While running locally, this flag can also be added to the helm binary. For examp
2323
helm-operator --max-concurrent-reconciles=10
2424
```
2525

26-
**NOTE**: If you're using the default scaffolding, it is necessary to also apply this change to the `config/default/manager_auth_proxy_patch.yaml` file. This file is a `kustomize` patch to the operator deployment that configures [kube-rbac-proxy][kube-rbac-proxy] to require authorization for accessing your operator metrics. When `kustomize` applies this patch, it overrides the args defined in `config/manager/manager.yaml`
27-
28-
[kube-rbac-proxy]: https://github.com/brancz/kube-rbac-proxy
26+
**NOTE**: If you're using the default scaffolding, it is necessary to also apply this change to the `config/default/manager_metrics_patch.yaml` file.
27+
This file is a `kustomize` patch to the operator deployment that configures metrics to require authorization for accessing
28+
your operator metrics. When `kustomize` applies this patch, it overrides the args defined in `config/manager/manager.yaml`

0 commit comments

Comments
 (0)