76 lines
1.5 KiB
YAML
Executable File
76 lines
1.5 KiB
YAML
Executable File
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: registry-ingress
|
|
namespace: registry
|
|
annotations:
|
|
kubernetes.io/ingress.class: "nginx"
|
|
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
|
spec:
|
|
rules:
|
|
- host: "quay.example.com"
|
|
http:
|
|
paths:
|
|
- pathType: Prefix
|
|
path: "/"
|
|
backend:
|
|
service:
|
|
name: quay
|
|
port:
|
|
number: 5000
|
|
- host: "registryk8s.example.com"
|
|
http:
|
|
paths:
|
|
- pathType: Prefix
|
|
path: "/"
|
|
backend:
|
|
service:
|
|
name: registryk8s
|
|
port:
|
|
number: 5000
|
|
- host: "gcr.example.com"
|
|
http:
|
|
paths:
|
|
- pathType: Prefix
|
|
path: "/"
|
|
backend:
|
|
service:
|
|
name: gcr
|
|
port:
|
|
number: 5000
|
|
- host: "ghcr.example.com"
|
|
http:
|
|
paths:
|
|
- pathType: Prefix
|
|
path: "/"
|
|
backend:
|
|
service:
|
|
name: ghcr
|
|
port:
|
|
number: 5000
|
|
- host: "k8sgcr.example.com"
|
|
http:
|
|
paths:
|
|
- pathType: Prefix
|
|
path: "/"
|
|
backend:
|
|
service:
|
|
name: k8sgcr
|
|
port:
|
|
number: 5000
|
|
- host: "hub.example.com"
|
|
http:
|
|
paths:
|
|
- pathType: Prefix
|
|
path: "/"
|
|
backend:
|
|
service:
|
|
name: dockerhub
|
|
port:
|
|
number: 5000
|
|
tls:
|
|
- hosts:
|
|
- example.com
|
|
secretName: example.com-tls
|