Step: volsync-csi-conf-aws

Volume snapshot and clone capabilities are required for some VolSync functionality. Default CSI storage is configured along with a VolumeSnapshotClass. The VolSync operator is also installed.

Container image used for this step: src-oc

src-oc resolves to an image built or imported by the ci-operator configuration (documentation).

Environment

In addition to the default environment, the step exposes the following:

Variable Name Type Variable Content
VOLSYNC_OPERATOR Dependency[?] Pull specification for volsync image
MOVER_RSYNC Dependency[?] Pull specification for volsync-mover-rsync image
MOVER_RCLONE Dependency[?] Pull specification for volsync-mover-rclone image
MOVER_RESTIC Dependency[?] Pull specification for volsync-mover-restic image

Source Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail

# 'oc' , 'kubectl', and 'helm' must be installed in the container running this script
set -x

echo "${KUBECONFIG}"

helm upgrade --install --create-namespace -n volsync-system \
    --set image.image=${VOLSYNC_OPERATOR} \
    --set rclone.image=${MOVER_RCLONE} \
    --set restic.image=${MOVER_RESTIC} \
    --set rsync.image=${MOVER_RSYNC} \
    --set metrics.disableAuth=true \
    volsync ./helm/volsync

oc annotate sc/gp2 storageclass.kubernetes.io/is-default-class="false" --overwrite
oc annotate sc/gp2-csi storageclass.kubernetes.io/is-default-class="true" --overwrite

# check to make sure volumesnapshotclass exists
oc get volumesnapshotclass

oc wait --for=condition=available deployment/volsync -n volsync-system --timeout=300s
oc get replicationdestination --all-namespaces

Properties

Property Value Description
Resource requests (cpu) 1000m Used in .resources.requests of the pod running this step.
Resource requests (memory) 500Mi Used in .resources.requests of the pod running this step.

GitHub Link:

https://github.com/openshift/release/blob/master/ci-operator/step-registry/volsync-csi/conf/aws/volsync-csi-conf-aws-ref.yaml

Owners:

Approvers:

Reviewers:

Source code for this page located on GitHub