-
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
kops 1.31 not reading cluster server API endpoint from local "~/.kube/config" #17262
Comments
cc @justinsb |
this is little bit same thing. We are facing issues with rolling-update with 1.31 Lines 277 to 280 in fe9f2f6
it seems that there is hardcoded 1 hour kubeconfig. Why it does not check is there existing kubeconfig and use that? We are facing issues with big cluster updates (that takes longer than one hour). Now we need run updates multiple times. This is also reported in slack by rekiri
|
Ah, so we changed this to use its own kubeconfig automatically because otherwise I think there are two issues here:
The second one is slightly surprising, in that we should be calling into the same code. Maybe there are some additional flags being passed when creating the |
Hi @justinsb Every time we perform a kops operation which "overwrites" the cluster's server endpoint in the local It's not ideal and would be good that kops would stop updating the corresponding cluster's "server" endpoint in If reading the cluster api endpoint from local file is not possible for the For a bit more context and so you know our use case:
Additionally to the use case above, but not related with this issue, the only thing that's far from ideal in kops is that, although we use private topology and DNS for api access, kops still creates the public "utility" subnets which will always be empty/unused - this becomes somewhat of an issue for our model because we have limited subnet addressing space due to "peering" across many other networks (and overlapping is not possible), but that's "another story". |
/kind bug
1. What
kops
version are you running? The commandkops version
, will displaythis information.
Client version: 1.31.0 (git-v1.31.0)
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.n/a
3. What cloud provider are you using?
AWS
4. What commands did you run? What is the simplest way to reproduce this issue?
kops rolling-update cluster
or
kops reconcile cluster --yes
5. What happened after the commands executed?
6. What did you expect to happen?
The kubernetes cluster server API endpoint used by kops to be the one configured in the local
~/.kube/config
file (under.clusters[]|select(.name=="<cluster_name>").cluster.server
) instead of the "default" value inferred by thecluster_name
(e.g.https://api.dev.public-dns.com:8443
vs).https://api.dev.private-dns.com
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
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?
This undesired behavior is only happening since kops 1.31 during the
rolling-update
phase (either viakops rolling-update cluster
orkops reconcile cluster --yes
). All earlier kops versions (includingkops 1.30.4
) are working as expected.The text was updated successfully, but these errors were encountered: