Files
home-cluster-ops/kubernetes/infrastructure/prometheus/app/service.yaml

17 lines
304 B
YAML

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