This repository has been archived by the owner on Mar 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
notizen
46 lines (30 loc) · 1.7 KB
/
notizen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
ansible -i inventory masters -a 'oc adm policy add-cluster-role-to-user cluster-admin admin'
ansible -i inventory nodes -a 'yum -y install glusterfs glusterfs-client-xlators glusterfs-libs glusterfs-fuse'
git checkout openshift-ansible-3.11.192-1 && sudo pip install -r requirements.txt
git checkout openshift-ansible-3.11.192-1;
sudo pip install -r requirements.txt;
cd ..;
nano inventory;
ansible -i inventory nodes -a 'setsebool -P virt_sandbox_use_fusefs on';
ansible -i inventory nodes -a 'setsebool -P virt_use_fusefs on';
ansible -i inventory nodes -a 'yum -y install centos-release-gluster41';
ansible -i inventory nodes -a 'yum -y install glusterfs glusterfs-client-xlators glusterfs-libs glusterfs-fuse';
ansible-playbook -i inventory openshift-ansible/playbooks/prerequisites.yml
ansible-playbook -i inventory openshift-ansible/playbooks/deploy_cluster.yml
heketi-cli topology info
heketi-cli device add --name=/dev/nvme2n1 --node=$NODE
heketi-cli device disable $DEVICE_ID
heketi-cli device remove $DEVICE_ID
heketi-cli node list
export HEKETI_POD=$(oc get pods -l glusterfs=heketi- registry-pod -o jsonpath='{.items[0].metadata.name}' -n infra-storage)
export HEKETI_CLI_SERVER=http://$(oc get route -l glusterfs=heketi-registry-route -o jsonpath='{.items[0].spec.host}' -n infra-storage)
export HEKETI_CLI_USER=admin
export HEKETI_CLI_KEY=$(oc get pod/$HEKETI_POD -o jsonpath='{.spec.containers[0].env[?(@.name=="HEKETI_ADMIN_KEY")].value}' -n infra-storage)
expanding:
master-config
kubernetesMasterConfig:
apiServerArguments:
feature-gates:
- ExpandPersistentVolumes=true
sed '/volumeBindingMode: Immediate/a allowVolumeExpansion: true' glusterfs-storage.yaml > glusterfs-storage-new.yaml
# increase pv size