apiVersion: v1
kind: Service
metadata:
name: other-node-exporter
namespace: monitoring
labels:
k8s-app: node-exporter
spec:
type: ClusterIP
clusterIP: None
ports:
- name: http
port: 9100
protocol: TCP
---
apiVersion: v1
kind: Endpoints
metadata:
name: other-node-exporter
namespace: monitoring
labels:
k8s-app: node-exporter
subsets:
- addresses:
- ip: 172.16.0.185
- ip: 172.16.1.73
ports:
- name: http
port: 9100
protocol: TCP
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: other-node-exporter
namespace: monitoring
labels:
k8s-app: node-exporter
chart: prometheus-operator-8.5.0
heritage: Helm
release: prometheus
spec:
jobLabel: k8s-app
endpoints:
- port: http
interval: 30s
scheme: http
selector:
matchLabels:
k8s-app: node-exporter
namespaceSelector:
matchNames:
- monitoring