How can I redirect a page from an IP address to domain name my.page.com? Everything works when I open the page via my.page.com. When I open via the IP address I get "incorrect certificate "CN = Kubernetes Ingress Controller Fake Certificate O = Acme Co".
I want only to redirect people from an IP address to a domain.
`apiVersion: extensions/v1beta1 kind: Ingress metadata: name: web-ingress annotations: kubernetes.io/ingress.allow-http: "false" nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" spec: tls:
- hosts:
- my.page.com secretName: tls-secret rules:
- host: my.page.com
http:
paths:
- path: /api backend: serviceName: api servicePort: 8090
- path: / backend: serviceName: app servicePort: 8080`
I installed Ingress from here.