diff --git a/infrastructure/longhorn/kustomization.yaml b/infrastructure/longhorn/kustomization.yaml index b4a3d7c..c454170 100644 --- a/infrastructure/longhorn/kustomization.yaml +++ b/infrastructure/longhorn/kustomization.yaml @@ -4,3 +4,4 @@ resources: - namespace.yaml - helmrepository.yaml - helmrelease.yaml + - longhorn-ingress.yaml diff --git a/infrastructure/longhorn/longhorn-ingress.yaml b/infrastructure/longhorn/longhorn-ingress.yaml new file mode 100644 index 0000000..ce7f130 --- /dev/null +++ b/infrastructure/longhorn/longhorn-ingress.yaml @@ -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 diff --git a/infrastructure/monitoring/grafana-ingress.yaml b/infrastructure/monitoring/grafana-ingress.yaml new file mode 100644 index 0000000..72b0046 --- /dev/null +++ b/infrastructure/monitoring/grafana-ingress.yaml @@ -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 diff --git a/infrastructure/monitoring/kustomization.yaml b/infrastructure/monitoring/kustomization.yaml index b4a3d7c..0243159 100644 --- a/infrastructure/monitoring/kustomization.yaml +++ b/infrastructure/monitoring/kustomization.yaml @@ -4,3 +4,5 @@ resources: - namespace.yaml - helmrepository.yaml - helmrelease.yaml + - grafana-ingress.yaml + - prometheus-ingress.yaml diff --git a/infrastructure/monitoring/prometheus-ingress.yaml b/infrastructure/monitoring/prometheus-ingress.yaml new file mode 100644 index 0000000..dcee732 --- /dev/null +++ b/infrastructure/monitoring/prometheus-ingress.yaml @@ -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