18 lines
328 B
YAML
18 lines
328 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: node-exporter
|
|
namespace: monitoring
|
|
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
|