Open elliotdobson opened 3 months ago
Looks similar to kubernetes/kops#15104 but unfortunately there is no information on how the issue was resolved.
Looks like kops get assets --copy
has a helper function to translate HTTPS URLs into S3 URLs thus the difference in behaviour from kops update cluster
.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
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 display this information. Client version: 1.29.2 (git-v1.29.2)2. What Kubernetes version are you running?
kubectl version
will print the version if a cluster is running or provide the Kubernetes version specified as akops
flag. Server Version: v1.29.73. 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
?