Files
Kubernetes/DockerRegistry/UI/registry-ui-ingress.yaml

31 lines
890 B
YAML

# ingress-cilium.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: docker-registry
namespace: registry
annotations:
# Forces Cilium to assign a unique IP from your 10.1.0.x pool
ingress.cilium.io/loadbalancer-mode: "dedicated"
spec:
ingressClassName: cilium # use Cilium as the Ingress controller
rules:
- host: "rg.mariushome.lt"
http:
paths:
# Route registry API (must be before the UI catch-all)
- path: /v2
pathType: Prefix
backend:
service:
name: docker-registry
port:
number: 5000
# Route everything else to the UI
- path: /
pathType: Prefix
backend:
service:
name: registry-ui
port:
number: 80