backup-restore
quiesce
Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.8 reaches end of support. For more information, see Upgrading from IBM Cloud Pak for Data Version 4.8 to IBM Software Hub Version 5.1.
Quiesce Kubernetes workloads such as deployments, StatefulSets, cronjobs, jobs, and pods.
Extended description
The quiesce
command
suspends write operations in application workloads to ensure that backups or other maintenance
activities can run. The backup-restore
utility can scale-down
application Kubernetes resources, or call hooks that are provided by Cloud Pak for Data services to run the quiesce. Cloud Pak for Data provided quiesce hooks might offer optimizations
or other enhancements when compared to scaling-down all namespace resources. Micro services can be
quiesced in a certain order, or services can be suspended without bringing down pods.
Syntax
cpd-cli backup-restore quiesce \
[--aux-service-image-prefix=<quiesce-hook-image-prefix>] \
[--dry-run=true|false] \
[--force] \
[--ignore-hooks] \
[--image-prefix=<image-registry-prefix>] \
[--log-level=info|debug|warn|error|panic] \
[--namespace=<namespace-name>] \
[--values=<yaml-file-name1,yaml-file-name2,...>] \
[--verbose] \
[--wait-timeout=<h,m,s>]
Arguments
The quiesce
command has no
arguments.
Options
Option | Description |
---|---|
--aux-service-image-prefix |
The quiesce hook job image prefix
(if configurable).
|
--dry-run |
Executes a dry-run without running
the command.
|
--force |
Force a scale down of
remaining, managed k8s resources.
|
|
Display command
help.
|
--ignore-hooks |
Quiesce through scale
down.
|
--image-prefix |
Specify the image registry
prefix.
|
--log-level |
The command log
level.
|
|
The namespace name in which the
utility should operate.
|
|
Specify values in one or more YAML
files.
|
--verbose |
Logs include more detailed
messages.
|
--wait-timeout |
The wait timeout setting ('h' for
hours, 'm' for minutes, 's' for seconds).
|
Table 1: Command options
Examples
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For more information, see Best practice: Setting up installation environment variables.
The quiesce
command (with
the default options) and volume-backup
(with the
--skip-quiesce
option) can be used when the application
storage provider does not enforce ReadWriteOnce volume access (such as on NFS).
For storage providers that enforce RWO (such as Portworx), quiesce
should be called with the --force
option, which
scales down resources so the backup pod can mount volumes to conduct file copying.
- Quiesce and volume-backup on NFS
- Quiesce deployments and StatefulSets for the
${PROJECT_CPD_INST_OPERANDS}
namespace (calls quiesce hooks or scales down resources).cpd-cli backup-restore quiesce \ --namespace=${PROJECT_CPD_INST_OPERANDS}
- Quiesce and volume-restore on NFS
- Quiesce deployments and StatefulSets for the
${PROJECT_CPD_INST_OPERANDS}
namespace (calls quiesce hooks or scales down resources).cpd-cli backup-restore quiesce \ --namespace=${PROJECT_CPD_INST_OPERANDS}