본문 바로가기

Data/Data Engineering

[k8s] "vingress.elbv2.k8s.aws" ... context deadline exceeded 오류 해결

반응형

ALB 테스트 앱을 설치하는 과정에서 ingress를 설치할때 다음과같은 에러문이 출력됐다

Error from server (InternalError): error when creating "externaldns-test-app.yaml": Internal error occurred: failed calling webhook "vingress.elbv2.k8s.aws": Post "https://aws-load-balancer-webhook-service.kube-system.svc:443/validate-networking-v1-ingress?timeout=10s": context deadline exceeded

 

일단 확인해야하는건, "ALB"가 정상적으로 설치가 되었는지부터 봐야한다. 만약에 설치가 잘되었는데도 불구하고 위와같은 에러문이 나왔다면 아래 github 링크를 참고하면된다.

https://github.com/kubernetes-sigs/aws-load-balancer-controller/issues/2462#issuecomment-1031624085

 

ALB Ingress is not getting created · Issue #2462 · kubernetes-sigs/aws-load-balancer-controller

Installed the ALB ingress on the EKS cluster, the chart got installed successfully, the issue is when creating the ingress of the application. I'm trying to install the sample app 2048, when do...

github.com

결론적부터 말하면, 해당 문제는 eks를 Terraform으로 설치했을때 나타나는 현상이라고하는데, eks terraform 코드에 아래와같은 부분을 추가해서 다시 재설치해주면된다.

# alb eks setting
  node_security_group_additional_rules = {
    ingress_allow_access_from_control_plane = {
      type                          = "ingress"
      protocol                      = "tcp"
      from_port                     = 9443
      to_port                       = 9443
      source_cluster_security_group = true
      description                   = "Allow access from control plane to webhook port of AWS load balancer controller"
    }
  }

 

반응형