import-app-data-to-pvcs
Prerequisites
Import an application and its data onto PVCs
Additional options
When using custom docker registry
In cases where a custom Docker registry is employed, Stork needs to use such a registry while initiating the job which runs the rsync
process. To customize the rsync
image name, you can update the following environment variable in the StorageCluster specification:
stork:
enabled: true
env:
- name: KDMP_RSYNC_IMAGE
value: <custom-registry>/eeacms/rsync:<tag>
This allows you to specify a unique image location from your custom Docker registry.
When using Image Pull Secrets
The rsync
operation runs inside the container eeacms/rsync
. If you require the use of Image Pull Secrets to pull this image, you can provide the Kubernetes secret name as an environment variable. You should establish these image pull secrets within the same namespaces where Stork is deployed. You can manage this configuration as an environment variable in the StorageCluster specification, which you defined during Step 1 of the Import an application and its data onto PVCs section above.
stork:
enabled: true
env:
- name: KDMP_RSYNC_IMAGE_SECRET
value: <image-secret-name>
This allows for secure retrieval of the rsync image using the specified image pull secret.
Customizing the rsync flags
Customizing the rsync
flags is possible, as the default configuration employs the following flags for the rsync command within the rsync
job pod: -avz
. To specify your own set of rsync
flags, you can introduce an environment variable in the StorageCluster specification as follows:
stork:
enabled: true
env:
- name: KDMP_RSYNC_FLAGS
value: "-<custom-flags>"
Ensure to include a hyphen at the beginning of your custom flags within the specified value field. This enables you to fine-tune the rsync
operation according to your specific requirements.
Supported environment variables
You should provide all the following environment variables within the env
section for Stork in the StorageCluster specification:
Environment variable | Description |
---|---|
KDMP_RSYNC_IMAGE | Custom image name for the rsync pod deployed by Stork’s KDMP controller |
KDMP_RSYNC_IMAGE_SECRET | Image pull secret for the rsync pod deployed by Stork’s KDMP controller |
KDMP_RSYNC_OPENSHIFT_SCC | Openshift SCC to be used with the rsync pod deployed by Stork’s KDMP controller |
KDMP_RSYNC_FLAGS | Custom rsync flags that will be used by the rsync command that runs inside the rsync pod deployed by Stork’s KDMP controller |
KDMP_RSYNC_REQUEST_CPU | Request CPU for the rsync pod deployed by Stork’s KDMP controller |
KDMP_RSYNC_REQUEST_MEMORY | Request Memory for the rsync pod deployed by Stork’s KDMP controller |
KDMP_RSYNC_LIMIT_CPU | CPU Limit for the rsync pod deployed by Stork’s KDMP controller |
KDMP_RSYNC_LIMIT_MEMORY | Memory Limit for the rsync pod deployed by Stork’s KDMP controller |