Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resource "google_container_cluster" "primary" {
- name = "homi"
- zone = "${var.region}-a"
- initial_node_count = 1
- project = "${google_project.technushi.project_id}"
- network = "${google_compute_network.technushi.self_link}"
- subnetwork = "${google_compute_subnetwork.technushi-us-central1.self_link}"
- master_auth {
- username = "${var.k8s_username}"
- password = "${var.k8s_password}"
- }
- maintenance_policy {
- daily_maintenance_window {
- start_time = "08:00"
- }
- }
- node_version = "${var.k8s_version}"
- min_master_version = "${var.k8s_version}"
- node_config {
- machine_type = "g1-small"
- disk_size_gb = 100
- oauth_scopes = [
- "https://www.googleapis.com/auth/compute",
- "https://www.googleapis.com/auth/devstorage.read_only",
- "https://www.googleapis.com/auth/logging.write",
- "https://www.googleapis.com/auth/monitoring",
- ]
- }
- }
- # The following outputs allow authentication and connectivity to the GKE Cluster.
- output "client_certificate" {
- value = "${google_container_cluster.primary.master_auth.0.client_certificate}"
- }
- output "client_key" {
- value = "${google_container_cluster.primary.master_auth.0.client_key}"
- }
- output "cluster_ca_certificate" {
- value = "${google_container_cluster.primary.master_auth.0.cluster_ca_certificate}"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement