Kubernetes metadata

From wikieduonline
Revision as of 15:06, 9 August 2023 by Welcome (talk | contribs) (→‎Related)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


apiVersion: batch/v1
kind: CronJob
metadata:
  name: hello
spec:
  schedule: "*/1 * * * *"
.../...
kind: PersistentVolumeClaim
metadata:
    name: YourVolumeName
.../...
.../...
metadata:
 labels:
.../...
apiVersion: v1
kind: ConfigMap
metadata:
  ...
data:
  ...
immutable: true


metadata:
  annotations:
    kubernetes.io/psp: eks.privileged


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

Related

See also

Advertising: