'InvalidIdentityToken: Couldn't retrieve verification key from your identity provider

I am new to aws and kubectl, I need to deploy one of the app to aws. After deploying to eks cluster, I edited the ingress in the kubectl but unfortunately it returned 404 not found. (i am pretty sure the new service container works fine)

after checking from kubectl describe ingress, here are some events reports:

  Warning  FailedBuildModel  40m  ingress  Failed build model due to WebIdentityErr: failed to retrieve credentials
caused by: InvalidIdentityToken: Couldn't retrieve verification key from your identity provider,  please reference AssumeRoleWithWebIdentity documentation for requirements
           status code: 400, request id: xxxxxxxx-4a93-4e27-9d6b-xxxxxxxx
  Warning  FailedBuildModel  22m  ingress  Failed build model due to WebIdentityErr: failed to retrieve credentials
caused by: InvalidIdentityToken: Couldn't retrieve verification key from your identity provider,  please reference AssumeRoleWithWebIdentity documentation for requirements
           status code: 400, request id: xxxxxxxx-5368-41e1-8a4d-xxxxxxxx
  Warning  FailedBuildModel  5m8s  ingress  Failed build model due to WebIdentityErr: failed to retrieve credentials
caused by: InvalidIdentityToken: Couldn't retrieve verification key from your identity provider,  please reference AssumeRoleWithWebIdentity documentation for requirements
  status code: 400, request id: xxxxxxxx-20ea-4bd0-b1cb-xxxxxxxx

Anyone has ideas about this issue?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source