-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replacing kops state fails with network error #10043
Comments
What isn't clear to me is what is supposed to respond on |
I referred to the AWS credentials using Seems the AWS SDK / kops (?) didn't accept |
It is not that much information in this ticket to go on. Safe to say that on a working environment, kops client should not try to use the metadata API. As far as I know, WSL should not cause this either, although I have not any way of confirming this one way or the other. |
I am seeing similar behavior with kops 1.18.2 on Alpine 3.11.
It keeps retrying the failed metadata query but of course never succeeds I am using aws-vault to provide AWS credentials via a local EC2 metadata server, but it only provides credentials, not the full EC2 Metadata. If the metadata server fails, it should fall back to using a standard API call. |
May be related to aws/aws-sdk-go#3066 |
I get this error while trying to do a rolling-update
|
The error is manifested when getting a cluster as well. AWS cli happily queries e.g. the kops state store buckets but
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Are you using an assumed role? You might need |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@anoopwebs: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I'm trying to run kops command as part of gitlab ci pipeline like https://github.com/kubernetes/kops/blob/master/docs/continuous_integration.md and AWS calls are authenticated through Kube2IAM service. so in a way it looks like Kops version 1.17.2 Note -
|
@anoopwebs could you resolve the issue? I'm having the same issue when running kOps for a Bastion inside of my AWS account that is assuming a role with all the needed policies. |
@Silvanoc I've learned that KOPS works well with AWS environmental variables so I used a work around to get AWS tokens from the AWS metadata API and set those environmental variables and then run KOPS commands. Something like below
Hope it helps! |
@anoopwebs meanwhile I know the root-cause, a workaround and the kOps solution. This comment to an issue on eksctl explains the root-cause pretty well and also provides an easy workaround for my use-case (running from a Docker container): running on the host network stack ( The kOps solution is to enable IMDSv2 using the InstanceGroup Resource. Release 1.22 will have it enabled by default. |
Thanks for sharing! |
1. What
kops
version are you running? The commandkops version
, will displaythis information.
1.18.1
2. What Kubernetes version are you running?
kubectl version
will print theversion if a cluster is running or provide the Kubernetes version specified as
a
kops
flag.1.16.9
3. What cloud provider are you using?
AWS
4. What commands did you run? What is the simplest way to reproduce this issue?
kops -v 10 replace --force -f - --state <s3 statestore>
5. What happened after the commands executed?
Error / retry loop:
6. What did you expect to happen?
State store getting updated
7. Please provide your cluster manifest. Execute
kops get --name my.example.com -o yaml
to display your cluster manifest.You may want to remove your cluster name and other sensitive information.
n/a in this case?
8. Please run the commands with most verbose logging by adding the
-v 10
flag.Paste the logs into this report, or in a gist and provide the gist link here.
See above
9. Anything else do we need to know?
Using kops in WSL 2
The text was updated successfully, but these errors were encountered: