fix(loki): Update ingress to match cluster configuration and add middleware
This commit is contained in:
@@ -3,26 +3,13 @@ kind: Ingress
|
|||||||
metadata:
|
metadata:
|
||||||
name: loki
|
name: loki
|
||||||
namespace: loki
|
namespace: loki
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: loki
|
||||||
annotations:
|
annotations:
|
||||||
# Traefik annotations
|
kubernetes.io/ingress.class: traefik
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
cert-manager.io/cluster-issuer: letsencrypt-http
|
||||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
|
||||||
|
|
||||||
# Let's Encrypt TLS certificate
|
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
||||||
|
|
||||||
# Basic authentication for security
|
|
||||||
# Generate password: htpasswd -nb admin your-password | base64
|
|
||||||
traefik.ingress.kubernetes.io/router.middlewares: loki-basic-auth@kubernetescrd
|
traefik.ingress.kubernetes.io/router.middlewares: loki-basic-auth@kubernetescrd
|
||||||
|
|
||||||
# Additional headers for Loki
|
|
||||||
traefik.ingress.kubernetes.io/custom-request-headers: "X-Scope-OrgID:tenant1"
|
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: traefik
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- loki.thedevops.dev
|
|
||||||
secretName: loki-tls
|
|
||||||
rules:
|
rules:
|
||||||
- host: loki.thedevops.dev
|
- host: loki.thedevops.dev
|
||||||
http:
|
http:
|
||||||
@@ -34,3 +21,7 @@ spec:
|
|||||||
name: loki
|
name: loki
|
||||||
port:
|
port:
|
||||||
number: 3100
|
number: 3100
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- loki.thedevops.dev
|
||||||
|
secretName: loki-tls
|
||||||
|
|||||||
Reference in New Issue
Block a user