Skip to content
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

GKE Container Node Pool with sandbox type of gvisor missing label "sandbox.gke.io/runtime" = "gvisor" #4210

Closed
ghost opened this issue Aug 12, 2019 · 3 comments · Fixed by GoogleCloudPlatform/magic-modules#3749 or hashicorp/terraform-provider-google-beta#2320

Comments

@ghost
Copy link

ghost commented Aug 12, 2019

This issue was originally opened by @vugardzhamalov as hashicorp/terraform#22434. It was migrated here as a result of the provider split. The original body of the issue is below.


Hi there,

Terraform Version: 0.12.6
Terraform Resource: google_container_node_pool
Sandbox type: gvisor

It seems that unless explicitly declared in the labels list of container node pool this will not be declared automatically (but I suspect it is expected to be there). My current guess that this might affect node taint as well... But I am not certain.

The missing label is: "sandbox.gke.io/runtime" = "gvisor". If I don't declare it explicitly, this is what I see in my 'terraform plan' output.

`~ node_config {
~ labels = { # forces replacement
- "sandbox.gke.io/runtime" = "gvisor" -> null
}

  • taint {
    - effect = "NO_SCHEDULE" -> null
    - key = "sandbox.gke.io/runtime" -> null
    - value = "gvisor" -> null
    }`

Explicit declaration of this label fixes the issue for me!

@tysen
Copy link

tysen commented Aug 21, 2019

The labels field is optional and will take on the value returned by the API unless explicitly declared. If it's declared in your config, you'll have to supply this label, as you discovered.

@tysen tysen closed this as completed Aug 21, 2019
@vugardzhamalov
Copy link

Thanks @tysen,

I could be wrong on this one (I try to re-deploy the resource as soon as I have a moment), but as far as I can remember explicit declaration of "sandbox.gke.io/runtime" = "gvisor" label prior to 'apply' might result in terraform refusing to apply it... This is why you might be left with only one option - declare it explicitly (and apply it) afterwards.

@ghost
Copy link
Author

ghost commented Sep 21, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants