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-operator
Helm chart:
-
config.pod
: These settings apply to all Backup Pods and Restore Pods. -
config.backup.pod
: These settings apply to all Backup Pods. -
config.restore.pod
: These settings apply to all Restore Pods.
To specify settings for individual pods, check the Backup Pod and Restore Pod documentation.
Default Resource Requirements
To set the default resource requirements for all pods spawned by the operator,
override the config.pod.resources
object in the kannika-operator
Helm chart:
To set the default resource requirements for backup pods,
override the backup.config.pod.resources
object:
To set the default resource requirements for restore pods,
override the restore.config.pod.resources
object:
Default Service Account Name
To set the default service account used by pods spawned by the operator,
override the config.pod.serviceAccountName
value in the kannika-operator
Helm chart.
To set the default service account used by backup pods,
override backup.config.pod.serviceAccountName
:
To set the default service account used by restore pods,
override restore.config.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 config.pod.imagePullSecrets
value in the kannika-operator
Helm chart.
To set the default image pull secrets used by backup pods,
override backup.config.pod.imagePullSecrets
:
To set the default image pull secrets used by restore pods,
override restore.config.pod.imagePullSecrets
:
Default Pod Security Context
To set the default
security context
for pods spawned by the operator,
override the config.pod.securityContext
object in the kannika-operator
Helm chart.
Example:
To set the default security context for backup pods,
override backup.config.pod.securityContext
:
To set the default security context for restore pods,
override restore.config.pod.securityContext
:
Container Security Context
To set the default security context for containers spawned by the operator,
override the config.container.pod.securityContext
object in the kannika-operator
Helm chart.
To set the default security context for backup containers,
override config.backup.pod.container.securityContext
:
To set the default security context for restore containers,
override config.restore.pod.container.securityContext
:
Default Tolerations
To set the default
tolerations
for pods spawned by the operator,
override the config.pod.tolerations
array in the kannika-operator
Helm chart.
To set the default tolerations for backup pods,
override backup.config.pod.tolerations
:
To set the default tolerations for restore pods,
override restore.config.pod.tolerations
:
Default Affinity
To set the default
affinity
for pods spawned by the operator,
override the config.pod.affinity
object in the kannika-operator
Helm chart.
Example:
To set the default affinity for backup pods,
override backup.config.pod.affinity
:
To set the default affinity for restore pods,
override restore.config.pod.affinity
:
Default Node Selector
To set the default
node selector
for pods spawned by the operator,
override the config.pod.nodeSelector
object in the kannika-operator
Helm chart.
To set the default node selector for backup pods,
override backup.config.pod.nodeSelector
:
To set the default node selector for restore pods,
override restore.config.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).