You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a simple Kubernetes cluster in `GRA7` region and read kubeconfig attributes:
41
+
> Sensitive attributes cannot be displayed using `terraform ouput`. You need to specify the output's name.
42
+
43
+
```hcl
44
+
resource "ovh_cloud_project_kube" "mycluster" {
45
+
service_name = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
46
+
name = "my_kube_cluster"
47
+
region = "GRA7"
48
+
}
49
+
50
+
output "mycluster-host" {
51
+
value = ovh_cloud_project_kube.mycluster.kubeconfig_attributes[0].host
52
+
sensitive = true
53
+
}
54
+
55
+
output "mycluster-cluster-ca-certificate" {
56
+
value = ovh_cloud_project_kube.mycluster.kubeconfig_attributes[0].cluster_ca_certificate
57
+
sensitive = true
58
+
}
59
+
60
+
output "mycluster-client-certificate" {
61
+
value = ovh_cloud_project_kube.mycluster.kubeconfig_attributes[0].client_certificate
62
+
sensitive = true
63
+
}
64
+
65
+
output "mycluster-client-key" {
66
+
value = ovh_cloud_project_kube.mycluster.kubeconfig_attributes[0].client_key
67
+
sensitive = true
68
+
}
69
+
```
70
+
71
+
```shell
72
+
# Display mycluster host
73
+
terraform output -raw mycluster-host
74
+
```
75
+
76
+
Create a simple Kubernetes cluster in `GRA7` region and use kubeconfig with [Helm provider](https://registry.terraform.io/providers/hashicorp/helm/latest/docs):
0 commit comments