Config

The kubernetes_config resource allows Kubernetes configuraton to be applied to a kubernetes_cluster.

You can specify a list of paths or individual files and health checks for the resources. A kubernetes_config only completes once the configuration has been successfully applied and any health checks have passed. This allows you to create complex dependencies for your applications.

Examples

resource "k8s_config" "app" {
  cluster = resource.k8s_cluster.k3s

  paths = [
    "./k8s_config/app",
    "./k8s_config/dashboard",
  ]

  wait_until_ready = true
}

Last updated