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

20 lines
369 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
- name: grafana-port
port: 3030
targetPort: 3000