adding ingress

This commit is contained in:
2025-06-04 21:21:44 +02:00
parent fa8e929c91
commit 4ad6867d50
2 changed files with 25 additions and 1 deletions

24
monitoring/ingress.yaml Normal file
View File

@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: prometheus-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- host: prometheus.ingenkansemig.dk
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: prometheus-server
port:
number: 9090
tls:
- hosts:
- prometheus.ingenkansemig.dk
secretName: prometheus-tls

View File

@@ -8,6 +8,6 @@ spec:
app: prometheus-server
ports:
- protocol: TCP
port: 80
port: 9090
targetPort: 9090
type: LoadBalancer