heketi is the REST API client/server to manage glusterfs volumes.
https://github.com/heketi/heketi
Before, running heketi commands you need to export three variables.
HEKETI_CLI_SERVER
HEKETI_CLI_USER
HEKETI_CLI_KEY
1.
oc get route
use the above url with http:// added in the front.
#export HEKETI_CLI_SERVER=http://url above
2.
username configured
# export HEKETI_CLI_KEY=admin
3.
Get the admin key from the command
# oc get pods heketi-cns-1-sgwwg -o yaml | grep HEKETI_ADMIN_KEY -A1
- name: HEKETI_ADMIN_KEY
value: admin
# export HEKETI_CLI_USER=admin
Note: use kubectl in case of kubernetes. example shows oc which is for openshift.
---------------------------
Now, you can verify the heketi commands as:
# heketi-cli cluster list
No comments:
Post a Comment