Difference between revisions of "Kubernetes metadata"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 32: Line 32:
 
   [[annotations:]]
 
   [[annotations:]]
 
     [[kubernetes.io/psp]]: [[eks.privileged]]
 
     [[kubernetes.io/psp]]: [[eks.privileged]]
 +
 +
 +
{{kubernetes manifest official example}}
  
 
== See also ==
 
== See also ==

Revision as of 11:30, 31 March 2023


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"
   }
 }
}

See also

See also

Advertising: