mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-08 20:15:03 +10:00
67 lines
1.6 KiB
YAML
67 lines
1.6 KiB
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: prometheus-operator-ingress
|
|
namespace: prometheus
|
|
annotations:
|
|
kubernetes.io/tls-acme: "true"
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
nginx.ingress.kubernetes.io/auth-url: "https://pass.junv.cc/oauth2/auth"
|
|
nginx.ingress.kubernetes.io/auth-signin: "https://pass.junv.cc/oauth2/start?rd=https://$host$escaped_request_uri"
|
|
spec:
|
|
ingressClassName: nginx
|
|
tls:
|
|
- hosts:
|
|
- prometheus.junv.cc
|
|
- alert.junv.cc
|
|
secretName: prometheus-operator-tls
|
|
rules:
|
|
- host: prometheus.junv.cc
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: prometheus-kube-prometheus-prometheus
|
|
port:
|
|
number: 9090
|
|
path: /
|
|
pathType: Prefix
|
|
- host: alert.junv.cc
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: prometheus-kube-prometheus-alertmanager
|
|
port:
|
|
number: 9093
|
|
path: /
|
|
pathType: Prefix
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: prometheus-api-ingress
|
|
namespace: prometheus
|
|
annotations:
|
|
kubernetes.io/ingress.class: "nginx"
|
|
kubernetes.io/tls-acme: "true"
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- prometheus-api.junv.cc
|
|
secretName: prometheus-api-operator-tls
|
|
rules:
|
|
- host: prometheus-api.junv.cc
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: prometheus-operated
|
|
port:
|
|
number: 9090
|
|
path: /api
|
|
pathType: Prefix
|