2022-03-16 17:54:10 +01:00
|
|
|
# Kubernetes Provider
|
2022-03-04 17:45:04 +01:00
|
|
|
# ---
|
2022-03-16 17:54:10 +01:00
|
|
|
# Initial Provider Configuration for Kubernetes
|
2022-03-04 17:45:04 +01:00
|
|
|
|
|
|
|
terraform {
|
|
|
|
|
2022-03-11 14:56:55 +01:00
|
|
|
required_version = ">= 0.13.0"
|
|
|
|
|
|
|
|
required_providers {
|
2022-03-16 17:54:10 +01:00
|
|
|
kubernetes = {
|
|
|
|
source = "hashicorp/kubernetes"
|
2024-03-18 16:42:54 +01:00
|
|
|
version = "2.27.0"
|
2022-03-11 14:56:55 +01:00
|
|
|
}
|
2022-03-04 17:45:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Dynamic Configuration from CIVO Kubernetes deployment
|
2022-03-16 17:54:10 +01:00
|
|
|
# provider "kubernetes" {
|
2022-03-11 14:56:55 +01:00
|
|
|
# host = "${yamldecode(civo_kubernetes_cluster.your-kubernetes-cluster.kubeconfig).clusters.0.cluster.server}"
|
|
|
|
# client_certificate = "${base64decode(yamldecode(civo_kubernetes_cluster.your-kubernetes-cluster.kubeconfig).users.0.user.client-certificate-data)}"
|
|
|
|
# client_key = "${base64decode(yamldecode(civo_kubernetes_cluster.your-kubernetes-cluster.kubeconfig).users.0.user.client-key-data)}"
|
|
|
|
# cluster_ca_certificate = "${base64decode(yamldecode(civo_kubernetes_cluster.your-kubernetes-cluster.kubeconfig).clusters.0.cluster.certificate-authority-data)}"
|
|
|
|
# }
|