ansible-role-k8s-monitoring/templates/exporters/node-exporter/service.yaml
2020-01-28 09:11:29 +01:00

19 lines
376 B
YAML

apiVersion: v1
kind: Service
metadata:
name: node-exporter
namespace: monitoring
annotations:
prometheus.io/scrape: 'true'
spec:
type: ClusterIP
# service is created to allow prometheus to scape endpoints
clusterIP: None
selector:
name: node-exporter
phase: prod
ports:
- name: metrics
protocol: TCP
port: 80
targetPort: 9100