ci: add ingress for longhorn, prometheus, grafana
This commit is contained in:
parent
bff693d539
commit
9953b16d5d
5 changed files with 60 additions and 0 deletions
|
|
@ -4,3 +4,4 @@ resources:
|
|||
- namespace.yaml
|
||||
- helmrepository.yaml
|
||||
- helmrelease.yaml
|
||||
- longhorn-ingress.yaml
|
||||
|
|
|
|||
19
infrastructure/longhorn/longhorn-ingress.yaml
Normal file
19
infrastructure/longhorn/longhorn-ingress.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: longhorn-ui
|
||||
namespace: longhorn-system
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "traefik"
|
||||
spec:
|
||||
rules:
|
||||
- host: longhorn.local
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: longhorn-frontend
|
||||
port:
|
||||
number: 80
|
||||
19
infrastructure/monitoring/grafana-ingress.yaml
Normal file
19
infrastructure/monitoring/grafana-ingress.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: grafana
|
||||
namespace: monitoring
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "traefik"
|
||||
spec:
|
||||
rules:
|
||||
- host: grafana.local
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: kube-prometheus-stack-grafana
|
||||
port:
|
||||
number: 80
|
||||
|
|
@ -4,3 +4,5 @@ resources:
|
|||
- namespace.yaml
|
||||
- helmrepository.yaml
|
||||
- helmrelease.yaml
|
||||
- grafana-ingress.yaml
|
||||
- prometheus-ingress.yaml
|
||||
|
|
|
|||
19
infrastructure/monitoring/prometheus-ingress.yaml
Normal file
19
infrastructure/monitoring/prometheus-ingress.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: prometheus
|
||||
namespace: monitoring
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "traefik"
|
||||
spec:
|
||||
rules:
|
||||
- host: prometheus.local
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: prometheus-kube-prometheus-stack-prometheus
|
||||
port:
|
||||
number: 9090
|
||||
Loading…
Add table
Add a link
Reference in a new issue