Files
home-cluster-ops/infrastructures/prometheus/env/k3s-cluster/service.yaml

20 lines
372 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: LoadBalancer
ports:
- port: 9999
targetPort: 9090
protocol: TCP
name: http
- name: grafana-port
port: 3030
targetPort: 3000