当我尝试创建 Ingress 时使用下面的模板,它正在创建但是当我点击主机 url 时它不起作用。在浏览器上出现错误“无法访问此页面”。你能建议一下吗?
apiVersion: extensions/v1beta1
metadata:
name: myservice-service
namespace: mynamespace
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/backend-protocol: HTTP
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS": 443}, {"HTTP": 80}]'
alb.ingress.kubernetes.io/scheme: internal
alb.ingress.kubernetes.io/target-type: ip
spec:
rules:
- host: myservice-service.mynamespace.eks.aws
http:
paths:
- path: /*
backend:
serviceName: myservice-service
servicePort: 8080
status:
loadBalancer: {}