Kubernetes/File/Yaml/registry-proxy-ingress.yaml

26 lines
594 B
YAML
Raw Permalink Normal View History

2024-08-07 10:54:39 +00:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: registry-proxy-ingress
namespace: hub
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "0"
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: "" # 指定 ingressClass
rules:
- host: #域名
http:
paths:
- pathType: Prefix
backend:
service:
name: registry-proxy-service
port:
number: 5000
path: /
tls:
- hosts:
- #域名
secretName: registry-proxy-tls