Difference between revisions of "Template:Kubernetes manifest official example"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
 
Line 3: Line 3:
 
     "apiVersion" = "v1"
 
     "apiVersion" = "v1"
 
     "kind"      = "ConfigMap"
 
     "kind"      = "ConfigMap"
     "[[metadata]]" = {
+
     "[[Kubernetes metadata|metadata]]" = {
 
       "name"      = "test-config"
 
       "name"      = "test-config"
 
       "namespace" = "default"
 
       "namespace" = "default"

Latest revision as of 11:31, 31 March 2023

resource "kubernetes_manifest" "test-configmap" {
 manifest = {
   "apiVersion" = "v1"
   "kind"       = "ConfigMap"
   "metadata" = {
     "name"      = "test-config"
     "namespace" = "default"
   }
   "data" = {
     "foo" = "bar"
   }
 }
}

Advertising: