I need some guidance on how to set up the ingress for the kubernetes dashboard. I have a wildcard acm cert that is valid. The setup is on a VPC that is not publically available. my yaml is:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: kubernetes-dashboard
namespace: kubernetes-dashboard
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/scheme: internal
alb.ingress.kubernetes.io/tags: Environment=dev
alb.ingress.kubernetes.io/load-balancer-attributes: idle_timeout.timeout_seconds=600
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:-CENSORED-
alb.ingress.kubernetes.io/actions.ssl-redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}'
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
labels:
app: kubernetes-dashboard
spec:
rules:
- host: k8s.dashboard.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: kubernetes-dashboard
port:
number: 443
Getting the description from the ingress using kubectl shows that it was successfully reconciled. I don't see any errors in aws alb controller logs. When i enter the ip address of the ingress, i just get 404 error. Any clues as to why this is happening? Am I missing any steps?
I tried following this guide: link1 and this SO post: link2; link3 but still couldn't get it to work.