Advertisement
Guest User

Untitled

a guest
Mar 15th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. resource "google_container_cluster" "primary" {
  2. name = "homi"
  3. zone = "${var.region}-a"
  4. initial_node_count = 1
  5.  
  6. project = "${google_project.technushi.project_id}"
  7. network = "${google_compute_network.technushi.self_link}"
  8. subnetwork = "${google_compute_subnetwork.technushi-us-central1.self_link}"
  9.  
  10. master_auth {
  11. username = "${var.k8s_username}"
  12. password = "${var.k8s_password}"
  13. }
  14.  
  15. maintenance_policy {
  16. daily_maintenance_window {
  17. start_time = "08:00"
  18. }
  19. }
  20.  
  21. node_version = "${var.k8s_version}"
  22. min_master_version = "${var.k8s_version}"
  23.  
  24. node_config {
  25. machine_type = "g1-small"
  26. disk_size_gb = 100
  27.  
  28. oauth_scopes = [
  29. "https://www.googleapis.com/auth/compute",
  30. "https://www.googleapis.com/auth/devstorage.read_only",
  31. "https://www.googleapis.com/auth/logging.write",
  32. "https://www.googleapis.com/auth/monitoring",
  33. ]
  34. }
  35. }
  36.  
  37. # The following outputs allow authentication and connectivity to the GKE Cluster.
  38. output "client_certificate" {
  39. value = "${google_container_cluster.primary.master_auth.0.client_certificate}"
  40. }
  41.  
  42. output "client_key" {
  43. value = "${google_container_cluster.primary.master_auth.0.client_key}"
  44. }
  45.  
  46. output "cluster_ca_certificate" {
  47. value = "${google_container_cluster.primary.master_auth.0.cluster_ca_certificate}"
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement