-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes.tf
66 lines (52 loc) · 1.93 KB
/
kubernetes.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# data "kubernetes_secret" "vcluster_kubeconfig_prod" {
# metadata {
# name = "vc-${helm_release.virtual_cluster_prod.name}"
# namespace = helm_release.virtual_cluster_prod.namespace
# }
# }
# data "kubernetes_secret" "vcluster_kubeconfig_qa" {
# metadata {
# name = "vc-${helm_release.virtual_cluster_qa.name}"
# namespace = helm_release.virtual_cluster_qa.namespace
# }
# }
# data "kubernetes_secret" "vcluster_kubeconfig_dev" {
# metadata {
# name = "vc-${helm_release.virtual_cluster_dev.name}"
# namespace = helm_release.virtual_cluster_dev.namespace
# }
# }
# data "kubernetes_secret" "vcluster_kubeconfig_staging" {
# metadata {
# name = "vc-${helm_release.virtual_cluster_staging.name}"
# namespace = helm_release.virtual_cluster_staging.namespace
# }
# }
# output "kube_config_client_authority" {
# value = data.kubernetes_secret.vcluster_kubeconfig.data.certificate-authority
# sensitive = true
# }
# output "kube_config_client_cert" {
# value = data.kubernetes_secret.vcluster_kubeconfig.data.client-certificate
# sensitive = true
# }
# output "kube_config_client_key" {
# value = data.kubernetes_secret.vcluster_kubeconfig.data.client-key
# sensitive = true
# }
# resource "local_sensitive_file" "prod_kube_config_file" {
# content = data.kubernetes_secret.vcluster_kubeconfig_prod.data.config
# filename = "kubeconfig_prod.yaml"
# }
# resource "local_sensitive_file" "qa_kube_config_file" {
# content = data.kubernetes_secret.vcluster_kubeconfig_qa.data.config
# filename = "kubeconfig_qa.yaml"
# }
# resource "local_sensitive_file" "dev_kube_config_file" {
# content = data.kubernetes_secret.vcluster_kubeconfig_dev.data.config
# filename = "kubeconfig_dev.yaml"
# }
# resource "local_sensitive_file" "staging_kube_config_file" {
# content = data.kubernetes_secret.vcluster_kubeconfig_staging.data.config
# filename = "kubeconfig_staging.yaml"
# }