stacksimplify / aws-eks-kubernetes-masterclass

AWS EKS Kubernetes - Masterclass | DevOps, Microservices
https://www.stacksimplify.com
1.38k stars 6.31k forks source link

ALB controller is not working with public subnets #5

Open cloudman1978 opened 3 years ago

cloudman1978 commented 3 years ago

I followed your instruction on public subnets but at the last step I got this error

E0204 16:11:40.613347 1 controller.go:217] kubebuilder/controller "msg"="Reconciler error" "error"="failed to build LoadBalancer configuration due to failed to resolve 2 qualified subnet with at least 8 free IP Addresses for ALB. Subnets must contains these tags: 'kubernetes.io/cluster/cluster-in-existing-vpc': ['shared' or 'owned'] and 'kubernetes.io/role/elb': ['' or '1']. See https://kubernetes-sigs.github.io/aws-alb-ingress-controller/guide/controller/config/#subnet-auto-discovery for more details. Resolved qualified subnets: '[]'" "controller"="alb-ingress-controller" "request"={"Namespace":"default","Name":"ingress-usermgmt-restapp-service"}

sandeep318 commented 3 years ago

how can we add host based routing along with this rule? Also instead of a separate rule to force the ssl how can we add the force ssl redirect as the default rule on port 80