Currently, overriding default configuration settings is supported for the
imc-controller fields, as well as for the
liveness fields for probes.
replicas spec cannot override the number of replicas for deployments that use the Horizontal Pod Autoscaler (HPA), and does not work for the
In the following example, a
KnativeEventing CR overrides the
eventing-controller deployment so that:
readiness probe timeout
eventing-controller is set to be 10 seconds.
The deployment has specified CPU and memory resource limits.
The deployment has 3 replicas.
example-label: label label is added.
example-annotation: annotation annotation is added.
nodeSelector field is set to select nodes with the
disktype: hdd label.
KnativeEventing CR example
- name: eventing-controller
- container: controller
- container: eventing-controller
||You can use the
liveness probe overrides to override all fields of a probe in a container of a deployment as specified in the Kubernetes API except for the fields related to the probe handler:
KnativeEventing CR label and annotation settings override the deployment’s labels and annotations for both the deployment itself and the resulting pods.