-
Notifications
You must be signed in to change notification settings - Fork 1
/
kubemon-ingress.yaml
80 lines (80 loc) · 1.91 KB
/
kubemon-ingress.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: oauth-proxy-monitoring
namespace: auth-system
annotations:
kubernetes.io/tls-acme: "true"
ingress.kubernetes.io/force-ssl-redirect: "true"
spec:
ingressClassName: nginx
tls:
- secretName: k8s-dashboard-external-tls
hosts:
- prom.172.30.1.2.nip.io
- alert.172.30.1.2.nip.io
rules:
- host: prom.172.30.1.2.nip.io
http:
paths:
- path: /oauth2
pathType: Prefix
backend:
service:
name: oauth2-proxy
port:
number: 4180
- host: alert.172.30.1.2.nip.io
http:
paths:
- path: /oauth2
pathType: Prefix
backend:
service:
name: oauth2-proxy
port:
number: 4180
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/auth-url: "https://$host/oauth2/auth"
nginx.ingress.kubernetes.io/auth-signin: "https://$host/oauth2/start?rd=$escaped_request_uri"
name: prometheus-external-auth2
namespace: monitoring
spec:
ingressClassName: nginx
rules:
- host: prom.172.30.1.2.nip.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: kubemon-prometheus
port:
number: 9090
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/auth-url: "https://$host/oauth2/auth"
nginx.ingress.kubernetes.io/auth-signin: "https://$host/oauth2/start?rd=$escaped_request_uri"
name: alertmanager-external-auth2
namespace: monitoring
spec:
ingressClassName: nginx
rules:
- host: alert.172.30.1.2.nip.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: kubemon-alertmanager
port:
number: 9093