Skip to content

Commit

Permalink
Update kubernetes_cluster.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zulh-civo authored and saiyam1814 committed Aug 12, 2021
1 parent e82f7ce commit c1b08c4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/resources/kubernetes_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@ resource "civo_kubernetes_cluster" "my-cluster" {
}
provider "kubernetes" {
load_config_file = false
host = civo_kubernetes_cluster.my-cluster.api_endpoint
username = yamldecode(civo_kubernetes_cluster.my-cluster.kubeconfig).users[0].user.username
password = yamldecode(civo_kubernetes_cluster.my-cluster.kubeconfig).users[0].user.password
cluster_ca_certificate = base64decode(
yamldecode(civo_kubernetes_cluster.my-cluster.kubeconfig).clusters[0].cluster.certificate-authority-data
)
client_certificate = base64decode(yamldecode(civo_kubernetes_cluster.my-cluster.kubeconfig).users[0].user.client-certificate-data)
client_key = base64decode(yamldecode(civo_kubernetes_cluster.my-cluster.kubeconfig).users[0].user.client-key-data)
cluster_ca_certificate = base64decode(yamldecode(civo_kubernetes_cluster.my-cluster.kubeconfig).clusters[0].cluster.certificate-authority-data)
}
```

Expand Down

0 comments on commit c1b08c4

Please sign in to comment.