Files
monitoring-stack/kubernetes/prometheus/service.yaml
2026-02-27 01:18:34 +00:00

21 lines
354 B
YAML

apiVersion: v1
kind: Service
metadata:
name: prometheus
namespace: monitoring
labels:
app: prometheus
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9090"
spec:
type: NodePort
ports:
- name: http
port: 9090
targetPort: 9090
nodePort: 30090
protocol: TCP
selector:
app: prometheus