Skip to content

Latest commit

 

History

History
105 lines (80 loc) · 3.64 KB

velero-vsphere-operator-user-manual.md

File metadata and controls

105 lines (80 loc) · 3.64 KB

User Workflow

Users here are expected to be vSphere users with access to:

Installing Velero on Supervisor cluster

  1. Enable Velero vSphere Operator Supervisor Service via vSphere UI. If you do not see any of the Supervisor Services as shown below, please double check the compatibility matrix. How to enable Velero vSphere Operator supervisor service

  2. Create a supervisor namespace for Velero instance via vSphere UI. How to create a supervisor namespace

    And for user doesn't have VI Admin role, please add EDIT permission to the Supervisor namespace. Where to add edit permission in supervisor namespace

    Below is an example. What to do when adding edit permission

  3. Create Velero vSphere Plugin Config

    The config map is used to specify that the plugin is being installed on SUPERVISOR cluster.

% cat <<EOF | kubectl -n <velero-namespace> apply -f -
apiVersion: v1
kind: ConfigMap
metadata:
  name: velero-vsphere-plugin-config
data:
  cluster_flavor: SUPERVISOR
EOF
  1. Run Velero vSphere Operator CLI, velero-vsphere, to install Velero into the same namespace created in step 2 above. Assume users have logged in kubectl vSphere plugin as vSphere users. Below are some examples about velero-vsphere install for different object stores as backup storage locations of Velero.

    AWS S3

    NAMESPACE="namespace of your choice"
    BUCKET="bucket of your choice"
    REGION="region of your choice, e.g., us-west-1"
    VSPHERE_PLUGIN=vsphereveleroplugin/velero-plugin-for-vsphere:1.1.0
    
    velero-vsphere install \
       --namespace $NAMESPACE \
       --version v1.5.1 \
       --provider aws \
       --plugins velero/velero-plugin-for-aws:v1.1.0,$VSPHERE_PLUGIN \
       --bucket $BUCKET \
       --secret-file ~/.aws/credentials \
       --snapshot-location-config region=$REGION \
       --backup-location-config region=$REGION

    Minio

    NAMESPACE="namespace of your choice"
    BUCKET="bucket of your choice"
    REGION=minio
    S3URL="minio url of your choice"
    VSPHERE_PLUGIN=vsphereveleroplugin/velero-plugin-for-vsphere:1.1.0
    
    velero-vsphere install \
        --namespace $NAMESPACE \
        --version v1.5.1 \
        --provider aws \
        --plugins velero/velero-plugin-for-aws:v1.1.0,$VSPHERE_PLUGIN \
        --bucket $BUCKET \
        --secret-file ~/.minio/credentials \
        --snapshot-location-config region=$REGION \
        --backup-location-config region=$REGION,s3ForcePathStyle="true",s3Url=$S3URL

    Customized Object Store Plugin

    NAMESPACE="namespace of your choice"
    VSPHERE_PLUGIN=vsphereveleroplugin/velero-plugin-for-vsphere:1.1.0
    
    velero-vsphere install \
        --namespace $NAMESPACE \
        --version v1.5.1 \
        --plugins $VSPHERE_PLUGIN \
        --no-secret \
        --use-volume-snapshots=false \
        --no-default-backup-location

Uninstalling Velero on Supervisor cluster

  1. Run Velero vSphere Operator CLI to uninstall velero.

    velero-vsphere uninstall -n "namespace where velero is installed"
  2. Delete the supervisor namespace created for Velero instance via vSphere UI.

  3. Disable Velero vSphere Operator supervisor service via vSphere UI.