Files
home-cluster-ops/kubernetes/infrastructure/prometheus/app/service.yaml
2024-06-26 17:10:07 +10:00

18 lines
344 B
YAML

apiVersion: v1
kind: Service
metadata:
name: prometheus
namespace: prometheus
annotations:
prometheus.io/scrape: 'true'
prometheus.io/path: '/data/metrics'
prometheus.io/port: '9999'
spec:
selector:
app: prometheus
type: ClusterIP
ports:
- port: 9999
targetPort: 9090
protocol: TCP
name: http