36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: rabbitmq-management
|
|
namespace: default
|
|
annotations:
|
|
# 1. Enable cert-manager for automatic TLS
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
|
|
# 2. NGINX Annotation for the specific ingress class
|
|
kubernetes.io/ingress.class: "nginx"
|
|
|
|
# 3. CRUCIAL: RabbitMQ Management UI works best at the root path (/).
|
|
# If you use a subpath (e.g., /rabbitmq), you would need to add
|
|
# nginx.ingress.kubernetes.io/rewrite-target: /$1
|
|
# and set the management.path_prefix in the RabbitMQ config.
|
|
spec:
|
|
ingressClassName: nginx
|
|
|
|
tls:
|
|
- hosts:
|
|
- rabbitmq.ziffeldogip.de
|
|
secretName: rabbitmq-management-tls # cert-manager will create this secret
|
|
|
|
rules:
|
|
- host: rabbitmq.ziffeldogip.de
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: rabbitmq # Name of the ClusterIP Service
|
|
port:
|
|
number: 15672 # The internal Management UI port
|