Correct annotations in monitoring docs (#9976)
This commit is contained in:
parent
0cb3dcfd5c
commit
4d57ddb5fa
1 changed files with 15 additions and 16 deletions
|
@ -39,8 +39,7 @@ This tutorial will show you how to install [Prometheus](https://prometheus.io/)
|
||||||
controller:
|
controller:
|
||||||
metrics:
|
metrics:
|
||||||
enabled: true
|
enabled: true
|
||||||
service:
|
podAnnotations:
|
||||||
annotations:
|
|
||||||
prometheus.io/port: "10254"
|
prometheus.io/port: "10254"
|
||||||
prometheus.io/scrape: "true"
|
prometheus.io/scrape: "true"
|
||||||
..
|
..
|
||||||
|
@ -50,10 +49,6 @@ This tutorial will show you how to install [Prometheus](https://prometheus.io/)
|
||||||
```
|
```
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
prometheus.io/scrape: "true"
|
|
||||||
prometheus.io/port: "10254"
|
|
||||||
..
|
..
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
|
@ -67,12 +62,16 @@ This tutorial will show you how to install [Prometheus](https://prometheus.io/)
|
||||||
```
|
```
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
..
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
prometheus.io/scrape: "true"
|
prometheus.io/scrape: "true"
|
||||||
prometheus.io/port: "10254"
|
prometheus.io/port: "10254"
|
||||||
..
|
|
||||||
spec:
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: controller
|
||||||
ports:
|
ports:
|
||||||
- name: prometheus
|
- name: prometheus
|
||||||
containerPort: 10254
|
containerPort: 10254
|
||||||
|
|
Loading…
Reference in a new issue