Skip to content

Instantly share code, notes, and snippets.

@ams0
Created November 8, 2018 12:29
Show Gist options
  • Save ams0/255cbb7e3eaf6e9129bd54b5ed8f532c to your computer and use it in GitHub Desktop.
Save ams0/255cbb7e3eaf6e9129bd54b5ed8f532c to your computer and use it in GitHub Desktop.
wget -qO- https://github.com/heketi/heketi/releases/download/v8.0.0/heketi-client-v8.0.0.linux.amd64.tar.gz| tar xvz ; chmod +x heketi-client/bin/heketi-cli ; sudo mv heketi-client/bin/heketi-cli /usr/local/bin
export HEKETI_CLI_SERVER="http://`oc get route -n glusterfs -o=jsonpath="{.items[*].status.ingress[*].host}"`"
export HEKETI_CLI_KEY=`oc get secret -n glusterfs heketi-storage-admin-secret -o template --template={{.data.key}}|base64 -d`
export HEKETI_CLI_USER=admin
heketi-cli cluster info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment