Default Pod Settings
This page describes how to configure the default settings for pods spawned by the operator.
There are multiple ways to configure the pods in the kannika
Helm chart:
-
operator.config.pod
: These settings apply to all Pods spawned by the operator. -
config.backup.pod
: These settings apply to all Backup Pods. -
config.restore.pod
: These settings apply to all Restore Pods. -
config.schemaRegistryBackup.pod
: These settings apply to all SchemaRegistryBackup Pods.
To specify settings for individual pods, check the Backup Pod, Restore Pod and SchemaRegistryBackup Pod pages.
Default Resource Requirements
To set the default resource requirements for all pods spawned by the operator,
override the operator.config.pod.resources
object in the kannika
Helm chart:
To set the default resource requirements for Backup Pods,
override the operator.config.backup.pod.resources
object:
To set the default resource requirements for Restore Pods,
override the operator.config.restore.pod.resources
object:
To set the default resource requirements for SchemaRegistryBackup Pods,
override the operator.config.schemaRegistryBackup.pod.resources
object:
Default Service Account Name
To set the default service account used by pods spawned by the operator,
override the operator.config.pod.serviceAccountName
value in the kannika
Helm chart.
To set the default service account used by Backup Pods,
override operator.config.backup.pod.serviceAccountName
:
To set the default service account used by Restore Pods,
override operator.config.restore.pod.serviceAccountName
:
To set the default service account used by SchemaRegistryBackup Pods,
override operator.config.schemaRegistryBackup.pod.serviceAccountName
:
Default Image Pull Secrets
Normally, image pull secrets are defined using the root imagePullSecrets
or global.imagePullSecrets
field in the Helm charts,
as documented in the Private image registry support section.
However,
if you wish to set different image pull secrets for pods spawned by the operator,
it is possible to override the operator.config.pod.imagePullSecrets
value in the kannika
Helm chart.
To set the default image pull secrets used by Backup Pods,
override operator.config.backup.pod.imagePullSecrets
:
To set the default image pull secrets used by Restore Pods,
override operator.config.restore.pod.imagePullSecrets
:
To set the default image pull secrets used by SchemaRegistryBackup Pods,
override operator.config.schemaRegistryBackup.pod.imagePullSecrets
:
Default Pod Security Context
To set the default
security context
for pods spawned by the operator,
override the operator.config.pod.securityContext
object in the kannika
Helm chart.
Example:
To set the default security context for Backup Pods,
override operator.config.backup.pod.securityContext
:
To set the default security context for Restore Pods,
override operator.config.restore.pod.securityContext
:
To set the default security context for SchemaRegistryBackup Pods,
override operator.config.schemaRegistryBackup.pod.securityContext
:
Container Security Context
To set the default security context for containers spawned by the operator,
override the operator.config.pod.container.securityContext
object in the kannika
Helm chart.
To set the default security context for backup containers,
override operator.config.backup.pod.container.securityContext
:
To set the default security context for restore containers,
override operator.config.restore.pod.container.securityContext
:
To set the default security context for SchemaRegistryBackup Containers,
override operator.config.schemaRegistryBackup.pod.container.securityContext
:
Default Tolerations
To set the default
tolerations
for pods spawned by the operator,
override the operator.config.pod.tolerations
array in the kannika
Helm chart.
To set the default tolerations for Backup Pods,
override operator.config.backup.pod.tolerations
:
To set the default tolerations for Restore Pods,
override operator.config.restore.pod.tolerations
:
To set the default tolerations for SchemaRegistryBackup Pods,
override operator.config.schemaRegistryBackup.pod.tolerations
:
Default Affinity
To set the default
affinity
for pods spawned by the operator,
override the operator.config.pod.affinity
object in the kannika
Helm chart.
Example:
To set the default affinity for Backup Pods,
override operator.config.backup.pod.affinity
:
To set the default affinity for Restore Pods,
override operator.config.restore.pod.affinity
:
To set the default affinity for SchemaRegistryBackup Pods,
override operator.config.schemaRegistryBackup.pod.affinity
:
Default Node Selector
To set the default
node selector
for pods spawned by the operator,
override the operator.config.pod.nodeSelector
object in the kannika
Helm chart.
To set the default node selector for Backup Pods,
override config.backup.pod.nodeSelector
:
To set the default node selector for Restore Pods,
override operator.config.restore.pod.nodeSelector
:
To set the default node selector for Schema Registry Backup Pods,
override operator.config.schemaRegistryBackup.pod.nodeSelector
:
Probes
It is possible to override the default
probes
for backup and restore containers.
By default,
only readiness and liveness probes are configured for the backup and restore containers,
which checks the /metrics
path on port 9000
(the metrics
port).