Difference between revisions of "Kubernetes metadata"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 36: | Line 36: | ||
{{kubernetes manifest official example}} | {{kubernetes manifest official example}} | ||
− | == | + | == Related == |
* <code>[[kind: Pod]]</code> | * <code>[[kind: Pod]]</code> | ||
* [[template.metadata]] | * [[template.metadata]] | ||
+ | * <code>[[kubectl apply]]</code>, <code>[[creationTimestamp]]</code> | ||
== See also == | == See also == |
Latest revision as of 15:06, 9 August 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" } } }
Related[edit]
See also[edit]
kind:
[Pod | Ingress | ClusterConfiguration
|Config | ConfigMap | ServiceAccount | Deployment | List | Secret | Status ], spec: metadata: data:
kubectl label [ pods | nodes | --help ]
- Kubernetes labels, selectors, recommended labels
,
kubectl label, kubectl annotate
, Common,kubernetes.io, app.kubernetes.io, MatchLabels:
,labels:
Advertising: