-
Notifications
You must be signed in to change notification settings - Fork 20
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
Error: kops upgrade is required #193
Comments
Hello @kthompson, thanks for raising the issue. Are you showing the real config here ? Regarding your error, it looks like you created the cluster first with a newer version of kOps and enabled terraform management afterwards. If it's the case, kOps detects that the kOps version used by the provider is lower than the kOps cli version used to create the cluster. Please confirm your use case and i'll see how i can help with it. |
For the most part I just coped the example from Basic as I was researching whether this terraform provider would be an option for us. I now realize the Basic example also does not have an instance group with a Node role. Let me try to wipe everything and add the node instance group. |
Ok so I made a new test repo. again I am just looking to test out the provider. Now I am getting a different error that I am unable to figure out. The Test repo is here: new error is:
I am trying to look through the code and I imagine its failing in here somewhere but I cant really tell where:
|
From the error, it looks like the files in the state store already exist. provider "kops" {
# Configuration options
state_store = "kevin-test-k8s-cluster"
} Your state store should be something like |
Ok I updated the state store. it was empty. Now the cluster resource is created as well as the instance groups. however now the
|
Yeah, kops abstracts the subnets concept. resource "kops_cluster" "cluster" {
...
# cluster subnets
subnet {
name = "test-private-0"
provider_id = aws_subnet.k8s-1.id
type = "Private"
zone = "us-west-1b"
region = "us-west-1"
}
...
}
resource "kops_instance_group" "master-0" {
...
# use the name of the subnet you used when defining the cluster, not the aws subnet id below
subnets = ["test-private-0"]
...
} |
Making that change seemed to help. Feel free to copy my test case as an example for AWS if you would like. Feel free to close this issue. Thanks for the help 👍 |
Glad it helped ! I will take time to improve the examples with a fully working sample tomorrow. |
When creating a new terraform config with the kops plugin enabled I get the error
Error: kops upgrade is required
. I have the latest version of kops, I am not sure where this error is coming from.Example config:
The text was updated successfully, but these errors were encountered: