mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-27 07:39:33 +01:00
33d4c2fd68
* Without the prometheus.io/port annotation, Prometheus service discovery can scrape other Prometheus ports that may be available. * For example, Prometheus sidecars (not included) may be scraped and that may be unintended
19 lines
317 B
YAML
19 lines
317 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: prometheus
|
|
namespace: monitoring
|
|
annotations:
|
|
prometheus.io/scrape: 'true'
|
|
prometheus.io/port: '9090'
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
name: prometheus
|
|
phase: prod
|
|
ports:
|
|
- name: web
|
|
protocol: TCP
|
|
port: 80
|
|
targetPort: 9090
|