|
| 1 | +/** |
| 2 | + * Copyright 2018 Google LLC |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +output "project_id" { |
| 18 | + value = local.project_id |
| 19 | +} |
| 20 | + |
| 21 | +output "region" { |
| 22 | + value = module.this.region |
| 23 | +} |
| 24 | + |
| 25 | +output "cluster_name" { |
| 26 | + description = "Cluster name" |
| 27 | + value = module.this.cluster_name |
| 28 | +} |
| 29 | + |
| 30 | +output "network" { |
| 31 | + value = google_compute_network.main.name |
| 32 | +} |
| 33 | + |
| 34 | +output "subnetwork" { |
| 35 | + value = google_compute_subnetwork.main.name |
| 36 | +} |
| 37 | + |
| 38 | +output "location" { |
| 39 | + value = module.this.location |
| 40 | +} |
| 41 | + |
| 42 | +output "ip_range_pods" { |
| 43 | + description = "The secondary IP range used for pods" |
| 44 | + value = google_compute_subnetwork.main.secondary_ip_range[0].range_name |
| 45 | +} |
| 46 | + |
| 47 | +output "ip_range_services" { |
| 48 | + description = "The secondary IP range used for services" |
| 49 | + value = google_compute_subnetwork.main.secondary_ip_range[1].range_name |
| 50 | +} |
| 51 | + |
| 52 | +output "zones" { |
| 53 | + description = "List of zones in which the cluster resides" |
| 54 | + value = module.this.zones |
| 55 | +} |
| 56 | + |
| 57 | +output "master_kubernetes_version" { |
| 58 | + description = "The master Kubernetes version" |
| 59 | + value = module.this.master_kubernetes_version |
| 60 | +} |
| 61 | + |
| 62 | +output "kubernetes_endpoint" { |
| 63 | + sensitive = true |
| 64 | + value = module.this.kubernetes_endpoint |
| 65 | +} |
| 66 | + |
| 67 | +output "client_token" { |
| 68 | + sensitive = true |
| 69 | + value = base64encode(data.google_client_config.default.access_token) |
| 70 | +} |
| 71 | + |
| 72 | +output "ca_certificate" { |
| 73 | + description = "The cluster CA certificate" |
| 74 | + value = module.this.ca_certificate |
| 75 | +} |
| 76 | + |
| 77 | +output "service_account" { |
| 78 | + description = "The service account to default running nodes as if not overridden in `node_pools`." |
| 79 | + value = module.this.service_account |
| 80 | +} |
| 81 | + |
| 82 | +output "database_encryption_key_name" { |
| 83 | + value = google_kms_crypto_key.db.self_link |
| 84 | +} |
0 commit comments