mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 01:38:10 +00:00
[docs] Minor walkthough fixes
This fixes a typo in the walkthrough with a missing `</details>` closing tag, and clarifies that you'll need RBAC set up for delegation.
This commit is contained in:
parent
f9a9893093
commit
109ad80627
1 changed files with 9 additions and 3 deletions
|
|
@ -210,14 +210,20 @@ Then, store your serving certificates in a secret:
|
||||||
$ kubectl -n prom create secret tls serving-cm-adapter --cert=/path/to/cm-adapter/serving.crt --key=/path/to/cm-adapter/serving.key
|
$ kubectl -n prom create secret tls serving-cm-adapter --cert=/path/to/cm-adapter/serving.crt --key=/path/to/cm-adapter/serving.key
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally, you'll need to make sure that the default service account for
|
Next, you'll need to make sure that the service account used to launch the
|
||||||
your namespace has permission to list resources in the cluster:
|
Deployment has permission to list resources in the cluster:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ kubectl create clusterrole resource-lister --verb=list --resource="*"
|
$ kubectl create clusterrole resource-lister --verb=list --resource="*"
|
||||||
$ kubectl create clusterrolebinding cm-adapter-resource-lister --clusterrole=resource-lister -- serviceaccount=prom:prom-cm-adapter
|
$ kubectl create clusterrolebinding cm-adapter-resource-lister --clusterrole=resource-lister -- serviceaccount=prom:prom-cm-adapter
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Finally, ensure the deployment has all the necessary permissions to
|
||||||
|
delegate authentication and authorization decisions to the main API
|
||||||
|
server. See [Concepts: Auth and
|
||||||
|
Certificates](https://github.com/kubernetes-incubator/apiserver-builder/blob/master/docs/concepts/auth.md)
|
||||||
|
for more information.
|
||||||
|
|
||||||
Next, amend the file above to run the adapter as well. You may need to
|
Next, amend the file above to run the adapter as well. You may need to
|
||||||
modify this part if you wish to inject the needed certificates a different
|
modify this part if you wish to inject the needed certificates a different
|
||||||
way.
|
way.
|
||||||
|
|
@ -328,7 +334,7 @@ spec:
|
||||||
namespace: prom
|
namespace: prom
|
||||||
```
|
```
|
||||||
|
|
||||||
<details>
|
</details>
|
||||||
|
|
||||||
Register that registration object with the aggregator:
|
Register that registration object with the aggregator:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue