Difference between revisions of "Terraform provider: Kubernetes"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
  
<pre>
+
provider "kubernetes" {
provider "kubernetes" {
+
  config_path    = "[[~/.kube/config]]"
  config_path    = "~/.kube/config"
+
  config_context = "my-context"
  config_context = "my-context"
+
}
}
+
 
+
resource "kubernetes_namespace" "example" {
resource "kubernetes_namespace" "example" {
+
  metadata {
  metadata {
+
    name = "my-first-namespace"
    name = "my-first-namespace"
+
  }
  }
+
}
}
 
</pre>
 
  
  

Revision as of 19:37, 1 December 2021

Advertising: