96 lines
2.1 KiB
YAML
96 lines
2.1 KiB
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: grafana
|
|
namespace: auth-proxy
|
|
labels:
|
|
app: grafana
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
|
spec:
|
|
ingressClassName: nginx
|
|
tls:
|
|
- hosts:
|
|
- grafana.cluster.fun
|
|
secretName: grafana-ingress
|
|
rules:
|
|
- host: grafana.cluster.fun
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: ImplementationSpecific
|
|
backend:
|
|
service:
|
|
name: auth-proxy
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: prometheus
|
|
namespace: auth-proxy
|
|
labels:
|
|
app: prometheus
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
|
spec:
|
|
ingressClassName: nginx
|
|
tls:
|
|
- hosts:
|
|
- prometheus.cluster.fun
|
|
secretName: prometheus-ingress
|
|
rules:
|
|
- host: prometheus.cluster.fun
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: ImplementationSpecific
|
|
backend:
|
|
service:
|
|
name: auth-proxy
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: prometheus-credentials
|
|
namespace: monitoring
|
|
annotations:
|
|
kube-1password: m7c2n5gqybiyxj6ylydju2nljm
|
|
kube-1password/vault: Kubernetes
|
|
type: Opaque
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: prometheus-cloud
|
|
namespace: monitoring
|
|
labels:
|
|
app: prometheus-cloud
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
|
ingress.kubernetes.io/auth-type: basic
|
|
ingress.kubernetes.io/auth-secret: prometheus-credentials
|
|
spec:
|
|
ingressClassName: nginx
|
|
tls:
|
|
- hosts:
|
|
- prometheus-cloud.cluster.fun
|
|
secretName: prometheus-cloud-ingress
|
|
rules:
|
|
- host: prometheus-cloud.cluster.fun
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: ImplementationSpecific
|
|
backend:
|
|
service:
|
|
name: prometheus-server
|
|
port:
|
|
number: 80
|