apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ingress namespace: app annotations: kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/rewrite-target: / nginx.ingress.kubernetes.io/use-regex: "true" spec: rules: - host: p-lao.tk http: paths: - path: / pathType: Prefix backend: service: name: app-svc port: number: 8080 - host: www.p-lao.tk http: paths: - path: / pathType: Prefix backend: service: name: app-svc port: number: 8080