Which Kubernetes resource uses immutable: true boolean field?
Which Kubernetes resource uses immutable: true boolean field?
ConfigMap resource in Kubernetes includes an immutable: true field. This field, when set to true, ensures that the data within the ConfigMap cannot be modified after the resource has been created, thus providing immutability.
apiVersion: v1 kind: ConfigMap metadata: name: test-immutable labels: app.kubernetes.io/name: kubernetes-hacks-and-tricks app.kubernetes.io/created-by: ssbostan immutable: true ConfigMap
https://kubernetes.io/docs/concepts/configuration/configmap/#configmap-immutable
Kubernetes ConfigMap and Secret resources have a field called immutable which, if set to true, ensures that the data of ConfigMap/Secret cannot be updated after the resource is created.
Copilot says C giving also similiar example like Bolgarwow gave.
In Kubernetes, the immutable: true boolean field is associated with the Deployment resource. This field is used to indicate whether the Deployment is immutable, meaning that its spec, such as the template for the Pods it manages, cannot be changed.
B is correct