Adding a way to find OCS3-Gluster parameters
Hi @brian84 ,
For providing a way to find better OCS3-Gluster parameters in section: "Customizing the cluster configuration", this could be added, not sure how to the table of the fields:
"
primarynode
IP address of one of the Gluster Pods in your cluster.
As OCS3-Gluster uses the host networking, you can use any of the node IP addresses where the Glusterfs pods are deployed in OpenShift. You can get those IP addresses with: oc get pods -n <namespace-for-gluster> -o wide
. For example:
$ oc get pods -n ocs -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE
glusterblock-storage-provisioner-dc-1-w2skq 1/1 Running 1 42d 10.131.4.4 ip-172-16-33-117.us-east-2.compute.internal <none>
glusterfs-storage-b6knn 1/1 Running 1 42d 172.16.19.52 ip-172-16-19-52.us-east-2.compute.internal <none>
glusterfs-storage-fjj58 1/1 Running 1 42d 172.16.33.117 ip-172-16-33-117.us-east-2.compute.internal <none>
glusterfs-storage-ztpkq 1/1 Running 1 42d 172.16.54.199 ip-172-16-54-199.us-east-2.compute.internal <none>
heketi-storage-1-jhqmr 1/1 Running 0 10d 10.131.4.5 ip-172-16-33-117.us-east-2.compute.internal <none>
In this example, any of the "172.16.19.52"
, "172.16.33.117"
or "172.16.54.199"
will be valid.
resturl
URL of the Heketi server RESTful management interface. You can get it with oc get route -n <namespace-for-gluster>
$ oc get route -n ocs
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
heketi-storage heketi-storage-ocs.apps.example.com heketi-storage <all> None
In this example, the value should be "http://heketi-storage-ocs.apps.example.com"
restuser
Username for logging in to Heketi. Normally the user admin
is used for that.
restuserkey
Key in base64 to use when logging in to Heketi.
You can get these two parameters from the Deployment Configuration from Heketi in the OCS3-Gluster namespace with oc get dc heketi-storage -n <namespace-for-gluster> -o yaml
, in the environment variables HEKETI_CLI_USER and HEKETI_CLI_KEY. For example:
$ oc get dc heketi-storage -n ocs -o yaml
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
[...]
spec:
containers:
- env:
- name: HEKETI_USER_KEY
value: LXKAZHy+kjjBLqc2g5+w4LoBvRVfTjMdms1h8cqMOEk=
- name: HEKETI_ADMIN_KEY
value: G2TSdAJiV0SSg8WX3+cy6yHURRUYBqfS8w2+Lm10x3M=
- name: HEKETI_CLI_USER
value: admin
- name: HEKETI_CLI_KEY
value: G2TSdAJiV0SSg8WX3+cy6yHURRUYBqfS8w2+Lm10x3M=
[...]
In this example, the value for restuser
should be "admin"
and the value for restuserkey
should be "G2TSdAJiV0SSg8WX3+cy6yHURRUYBqfS8w2+Lm10x3M="
Thanks.