apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: sinceai-shop namespace: apps annotations: nginx.ingress.kubernetes.io/configuration-snippet: | rewrite ^/(.*)$ https://sinceai.taobao.com/$1? permanent; spec: ingressClassName: nginx rules: - host: shop.sinceai.com http: paths: - path: / pathType: Prefix backend: service: name: halo port: number: 80 tls: - hosts: - shop.sinceai.com secretName: sinceai-com-crt