Test S3 backupstore in a cluster sitting behind a HTTP proxy

Related issue: 3136

Requirement:

Steps:

  1. Create credential for Backup Target
  •  $ secret_name="aws-secret-proxy"
     $ proxy_ip=123.123.123.123
     $ no_proxy_params="localhost,127.0.0.1,0.0.0.0,10.0.0.0/8,192.168.0.0/16"
    
     $ kubectl create secret generic $secret_name \
     --from-literal=AWS_ACCESS_KEY_ID=$AWS_ID \
     --from-literal=AWS_SECRET_ACCESS_KEY=$AWS_KEY \
     --from-literal=HTTP_PROXY=$proxy_ip:3128 \
     --from-literal=HTTPS_PROXY=$proxy_ip:3128 \
     --from-literal=NO_PROXY=$no_proxy_params \
     -n longhorn-system
    
  1. Open Longhorn UI
  2. Click on Setting
  3. Scroll down to Backup Target Credential Secret
  4. Fill in $secret_name assigned in step 1. and save setting
  5. Go to Backup
  6. Restore from existing backups and watch the volume become ready
[Edit]