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