Currently, overriding default configuration settings is supported for the
nodeSelector fields, as well as for the
liveness fields for probes.
In the following example, a
KnativeServing CR overrides the
webhook deployment so that:
readiness probe timeout for
net-kourier-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.
KnativeServing CR label and annotation settings override the deployment’s labels and annotations for both the deployment itself and the resulting pods.
KnativeServing CR example
- name: net-kourier-controller
- container: controller
- name: webhook
- container: webhook
||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: