2017-10-23 02:00:41 +02:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: prometheus
|
|
|
|
namespace: monitoring
|
2018-03-03 03:47:37 +01:00
|
|
|
annotations:
|
|
|
|
prometheus.io/scrape: 'true'
|
2019-10-21 01:05:09 +02:00
|
|
|
prometheus.io/port: '9090'
|
2017-10-23 02:00:41 +02:00
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
selector:
|
|
|
|
name: prometheus
|
|
|
|
phase: prod
|
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
protocol: TCP
|
|
|
|
port: 80
|
|
|
|
targetPort: 9090
|