mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-22 08:13:18 +01:00
24 lines
932 B
HCL
24 lines
932 B
HCL
# Kubernetes Provider
|
|
# ---
|
|
# Initial Provider Configuration for Kubernetes
|
|
|
|
terraform {
|
|
|
|
required_version = ">= 0.13.0"
|
|
|
|
required_providers {
|
|
kubernetes = {
|
|
source = "hashicorp/kubernetes"
|
|
version = "2.8.0"
|
|
}
|
|
}
|
|
}
|
|
|
|
# Dynamic Configuration from CIVO Kubernetes deployment
|
|
# provider "kubernetes" {
|
|
# 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)}"
|
|
# }
|