Difference between revisions of "Kubernetes metadata"
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
.../... | .../... | ||
− | apiVersion: v1 | + | [[apiVersion: v1]] |
[[kind: ConfigMap]] | [[kind: ConfigMap]] | ||
[[metadata:]] | [[metadata:]] | ||
... | ... | ||
− | data: | + | [[data:]] |
... | ... | ||
[[immutable]]: true | [[immutable]]: true |
Revision as of 09:40, 16 December 2022
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
kind: Pod
See also
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: