**vim redirect.yaml** ``` apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: nginx.ingress.kubernetes.io/permanent-redirect: https://www.baidu.com name: nginx-redirect namespace: study-ingress spec: ingressClassName: nginx rules: - host: nginx.redirect.com http: paths: - backend: service: name: nginx port: number: 80 path: / pathType: ImplementationSpecific ```