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
+
42
+
-> Sensitive attributes cannot be displayed using `terraform ouput` command. You need to specify the output's name: `terraform ouput mycluster-host`.
43
+
44
+
```hcl
45
+
resource "ovh_cloud_project_kube" "mycluster" {
46
+
service_name = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
47
+
name = "my_kube_cluster"
48
+
region = "GRA7"
49
+
}
50
+
51
+
output "mycluster-host" {
52
+
value = ovh_cloud_project_kube.mycluster.kubeconfig_attributes[0].host
53
+
sensitive = true
54
+
}
55
+
56
+
output "mycluster-cluster-ca-certificate" {
57
+
value = ovh_cloud_project_kube.mycluster.kubeconfig_attributes[0].cluster_ca_certificate
58
+
sensitive = true
59
+
}
60
+
61
+
output "mycluster-client-certificate" {
62
+
value = ovh_cloud_project_kube.mycluster.kubeconfig_attributes[0].client_certificate
63
+
sensitive = true
64
+
}
65
+
66
+
output "mycluster-client-key" {
67
+
value = ovh_cloud_project_kube.mycluster.kubeconfig_attributes[0].client_key
68
+
sensitive = true
69
+
}
70
+
```
71
+
72
+
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