-
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
S3 file asset repository CLI unable to read file #16759
Comments
Looks similar to #15104 but unfortunately there is no information on how the issue was resolved. |
Looks like Lines 179 to 220 in 5d4d867
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/kind bug
1. What
kops
version are you running? The commandkops version
, will displaythis information.
Client version: 1.29.2 (git-v1.29.2)
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.Server Version: v1.29.7
3. What cloud provider are you using?
AWS
4. What commands did you run? What is the simplest way to reproduce this issue?
We are configuring local file asset repository however we are running into an issue when trying to update the cluster.
We have configured an AWS S3 bucket for the file assets to be stored. The S3 bucket is private and has a bucket policy to allow
GetObject
requests from a VPC Gateway Endpoint that is in the same VPC as the k8s cluster (as vaguely suggested by the docs).fileRepository
in the Cluster speckops get assets --copy
kops update cluster
5. What happened after the commands executed?
With verbose logging it shows:
6. What did you expect to happen?
kops update cluster
to use S3 aware parsing likekops get assets --copy
and read the file assets with authenticated requests.The error is not that surprising since:
kops
from our laptop which is outside the VPC that has access to the file assets S3 bucket.However since
kops get assets --copy
worked and the file assets were successfully uploaded to the S3 bucket this was unexpected.This makes me think that kOps is handling the file asset URLs differently between the two commands. In
kops get assets --copy
it is using S3 aware parsing and adding authentication to upload the assets, whereaskops update cluster
is just doing unauthenticated HTTP request.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.
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.
9. Anything else do we need to know?
--lifecycle-overrides
?kops update cluster
use the same S3 awareness askops get assets --copy
?The text was updated successfully, but these errors were encountered: