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

How to enable master global access #579

Closed
SrikantPatil88 opened this issue Jun 25, 2020 · 4 comments · Fixed by #601
Closed

How to enable master global access #579

SrikantPatil88 opened this issue Jun 25, 2020 · 4 comments · Fixed by #601
Labels
good first issue Good for newcomers P3 medium priority issues triaged Scoped and ready for work

Comments

@SrikantPatil88
Copy link

Hi Folks,

I want to enable master global access in a cluster, I checked the code but couldn't find the input to enable master_global_access.

Can someone please help me to add this in configuration.

Thanks in advance

@morgante
Copy link
Contributor

morgante commented Jun 25, 2020 via email

@SrikantPatil88
Copy link
Author

Hi Morgante,

Sorry if i am not understanding correctly,

I can add the changes and push a new branch or you guys will push the code in the master branch?
I tried but i do not have permission to push the code.

May be below changes need to be added or please correct,

File: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/blob/v6.1.1/modules/beta-private-cluster/cluster.tf

-->
dynamic "private_cluster_config" {
for_each = var.enable_private_nodes ? [{
enable_private_nodes = var.enable_private_nodes,
enable_private_endpoint = var.enable_private_endpoint
master_ipv4_cidr_block = var.master_ipv4_cidr_block
}] : []

content {
  enable_private_endpoint = private_cluster_config.value.enable_private_endpoint
  enable_private_nodes    = private_cluster_config.value.enable_private_nodes
  master_ipv4_cidr_block  = private_cluster_config.value.master_ipv4_cidr_block
   dynamic "master_global_access_config" {
       for_each = var.master_global_access_config
         content {
           enabled   = master_global_access_config.value.enabled
    }
  }
}

}
#####################
https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/blob/v6.1.1/modules/beta-private-cluster/variables.tf

-->
variable "master_global_access_config" {
type = list(object({ enabled = bool }))
description = "enabled - Enable the cluster master globally or not."

default = [{
"enabled" = true
}]
}

Please let me know if the code is not okay and process to get access to upload the changes and raise PR.

Thanks You

@morgante
Copy link
Contributor

@SrikantPatil88 Please see the contributing guide and forking.

@SrikantPatil88
Copy link
Author

Hi Morgante,

Thanks for providing the information.

Actually i do not have testing environment now, will have to set up and follow the guide to test and raise PR.

Thanks,

@bharathkkb bharathkkb added good first issue Good for newcomers P3 medium priority issues triaged Scoped and ready for work labels Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers P3 medium priority issues triaged Scoped and ready for work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants