core-deployments/prometheus/ingress.yaml

53 lines
1.2 KiB
YAML
Raw Normal View History

2023-03-25 16:39:04 +01:00
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: prometheus-ingress
namespace: prometheus
annotations:
nginx.org/basic-auth-secret: prometheus-basic-auth-secret
spec:
ingressClassName: nginx
2023-03-25 16:39:04 +01:00
rules:
2023-06-19 07:01:14 +02:00
- host: "prometheus.services.yolokube.de"
2023-03-25 16:39:04 +01:00
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: prometheus-server
port:
number: 80
---
2023-04-06 18:04:04 +02:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: alertmanager-ingress
namespace: prometheus
annotations:
nginx.org/basic-auth-secret: prometheus-basic-auth-secret
spec:
ingressClassName: nginx
2023-04-06 18:04:04 +02:00
rules:
2023-06-19 07:01:14 +02:00
- host: "alertmanager.services.yolokube.de"
2023-04-06 18:04:04 +02:00
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: prometheus-alertmanager
port:
number: 9093
---
2023-03-25 16:39:04 +01:00
kind: Secret
metadata:
name: prometheus-basic-auth-secret
namespace: prometheus
apiVersion: v1
type: nginx.org/htpasswd
stringData:
htpasswd: |
2023-04-06 20:04:05 +02:00
aaron:$2y$05$B2.Q.9/e4VEXsnoe.ypjYOkiykmrF2hpApE7CYc2DPIr0pFIdDO1O
tom:$2y$05$BsM7fvmf3Gpuznak5OSgre0x81K4.vxUQO/aKW5cY4gmQOzvssPLO