1

I want to create similar configuration as described here: https://cloud.google.com/compute/docs/vpc/special-configurations#natgateway

with Terraform but "no-ip" instances are in Kubernetes cluster. Problem is such when you do it manually with command simmilar to:

gcloud container clusters create container-name --tags=sometag

You can set up tags for whole instances started in this cluster but i can't see such possibility when im trying to do that same with Terraform: https://www.terraform.io/docs/providers/google/r/container_cluster.html

Is there posibility to set tags with Terraform config? I was trying too to find out how to update them manually after all with "gcloud" command but i can't find such possibility too.

1

It looks like it's (mistakenly) not documented at the moment, but you should be able to use the tags field in the node_config field to achieve this.

It'd look something like this

resource "google_container_cluster" "my_cluster" {
  // other config goes here
  node_config {
    tags = [ "no-ip"]
  }
}

[EDIT]: Oops, my mistake, this is a recent feature and won't be available until the 0.10 beta releases. Good news is that should be very, very soon. And, even better, docs will be available as soon as 0.10 is released.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.