-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Unexpected "Subnet.CIDR: Ifield is immutable:" error - not trying to change CIDR #8040
Comments
Rather than running |
I get the same error with that approach as well. I ran
My cluster comes up as usual. I see the same error |
Any other suggestions? I can get this working as expected if I don't use a VPC_ID, but the use model I have in mind includes one. |
Seems the subnet cidr you provided is in fact a host address. Try to use this subnet address instead: subnets:
- - cidr: 172.31.144.0/19
+ - cidr: 172.31.128.0/19 |
Thank you! That change fixes the issue. 144 was an arithmetic error. Perhaps kops could throw a warning (or error) if I specify a subnet cidr incorrectly as above that could cause an issue. |
It happens! This is a nice tool to help you calculate networks in the terminal: https://packages.debian.org/search?keywords=ipcalc Enjoy kops! :) |
1. What
kops
version are you running? The commandkops version
, will displaythis information.
Version 1.14.1 (git-b7c25f9a9)
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.Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:18:23Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.8", GitCommit:"211047e9a1922595eaa3a1127ed365e9299a6c23", GitTreeState:"clean", BuildDate:"2019-10-15T12:02:12Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
3. What cloud provider are you using?
AWS
4. What commands did you run? What is the simplest way to reproduce this issue?
I first did
kops-cluster.yaml has a modified subnet CIDR, so that I can run on a pre-determined VPC without collisions. So far so good, everything runs well.
Now, I need to reduce the number of nodes to zero temporarily. I ran
kops edit ig
, made the change, and then rankops update cluster --yes
.5. What happened after the commands executed?
I see the following error.
I am not trying to modify the subnet CIDR, only maxSize/minSize so this error should not occur.
6. What did you expect to happen?
No error, number of nodes in the ig scales down to zero
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?
Not that I can think of
The text was updated successfully, but these errors were encountered: