Skip to content

Commit

Permalink
Add missing policy (#1887)
Browse files Browse the repository at this point in the history
Author: Ivan (이반) Porta, Committer: GitHub

Co-authored-by: Flynn <[email protected]>
  • Loading branch information
GTRekter and kflynn authored Jan 13, 2025
1 parent 5539f8f commit 4d32ac6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions linkerd.io/content/2-edge/tasks/external-prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,25 @@ scrape interval:
evaluation_interval: 10s
```
Finally, you need to apply the following policy.
```yaml
apiVersion: policy.linkerd.io/v1alpha1
kind: AuthorizationPolicy
metadata:
name: prometheus-admin-federate
namespace: linkerd-viz
spec:
targetRef:
group: policy.linkerd.io
kind: Server
name: prometheus-admin
requiredAuthenticationRefs:
- group: policy.linkerd.io
kind: NetworkAuthentication
name: kubelet
```
The running configuration of the builtin prometheus can be used as a reference.
```bash
Expand Down

0 comments on commit 4d32ac6

Please sign in to comment.