Андрей
Да особо рассказывать нечего, делаю по ману, единственное, что манифесты под 1.18 переделал
manakhov@akd-test1-kube-master:~/gluster-kubernetes/deploy$ ./gk-deploy -gv --admin-key admin --user-key user Welcome to the deployment tool for GlusterFS on Kubernetes and OpenShift. Before getting started, this script has some requirements of the execution environment and of the container platform that you should verify. The client machine that will run this script must have: * Administrative access to an existing Kubernetes or OpenShift cluster * Access to a python interpreter 'python' Each of the nodes that will host GlusterFS must also have appropriate firewall rules for the required GlusterFS ports: * 2222 - sshd (if running GlusterFS in a pod) * 24007 - GlusterFS Management * 24008 - GlusterFS RDMA * 49152 to 49251 - Each brick for every volume on the host requires its own port. For every new brick, one new port will be used starting at 49152. We recommend a default range of 49152-49251 on each host, though you can adjust this to fit your needs. The following kernel modules must be loaded: * dm_snapshot * dm_mirror * dm_thin_pool For systems with SELinux, the following settings need to be considered: * virt_sandbox_use_fusefs should be enabled on each node to allow writing to remote GlusterFS volumes In addition, for an OpenShift deployment you must: * Have 'cluster_admin' role on the administrative account doing the deployment * Add the 'default' and 'router' Service Accounts to the 'privileged' SCC * Have a router deployed that is configured to allow apps to access services running in the cluster Do you wish to proceed with deployment? [Y]es, [N]o? [Default: Y]: y Using Kubernetes CLI. Checking status of namespace matching 'default': default Active 5d Using namespace "default". Checking for pre-existing resources... GlusterFS pods ... Checking status of pods matching '--selector=glusterfs=pod': Timed out waiting for pods matching '--selector=glusterfs=pod'. not found. deploy-heketi pod ... Checking status of pods matching '--selector=deploy-heketi=pod': Timed out waiting for pods matching '--selector=deploy-heketi=pod'. not found. heketi pod ... Checking status of pods matching '--selector=heketi=pod': Timed out waiting for pods matching '--selector=heketi=pod'. not found. gluster-s3 pod ... Checking status of pods matching '--selector=glusterfs=s3-pod': Timed out waiting for pods matching '--selector=glusterfs=s3-pod'. not found. Creating initial resources ... /usr/bin/kubectl -n default create -f /home/manakhov/gluster-kubernetes/deploy/kube-templates/heketi-service-account.yaml 2>&1 serviceaccount/heketi-service-account created /usr/bin/kubectl -n default create clusterrolebinding heketi-sa-view --clusterrole=edit --serviceaccount=default:heketi-service-account 2>&1
clusterrolebinding.rbac.authorization.k8s.io/heketi-sa-view created /usr/bin/kubectl -n default label --overwrite clusterrolebinding heketi-sa-view glusterfs=heketi-sa-view heketi=sa-view
clusterrolebinding.rbac.authorization.k8s.io/heketi-sa-view labeled OK Marking 'akd-test1-kube-node1' as a GlusterFS node. Marking 'akd-test1-kube-node1' as a GlusterFS node. /usr/bin/kubectl -n default label nodes akd-test1-kube-node1 storagenode=glusterfs --overwrite 2>&1 node/akd-test1-kube-node1 labeled Marking 'akd-test1-kube-node2' as a GlusterFS node. Marking 'akd-test1-kube-node2' as a GlusterFS node. /usr/bin/kubectl -n default label nodes akd-test1-kube-node2 storagenode=glusterfs --overwrite 2>&1 node/akd-test1-kube-node2 labeled Marking 'akd-test1-kube-node3' as a GlusterFS node. Marking 'akd-test1-kube-node3' as a GlusterFS node. /usr/bin/kubectl -n default label nodes akd-test1-kube-node3 storagenode=glusterfs --overwrite 2>&1 node/akd-test1-kube-node3 labeled Deploying GlusterFS pods. sed -e 's/storagenode\: glusterfs/storagenode\: 'glusterfs'/g' /home/manakhov/gluster-kubernetes/deploy/kube-templates/glusterfs-daemonset.yaml | /usr/bin/kubectl -n default create -f - 2>&1 daemonset.apps/glusterfs created Waiting for GlusterFS pods to start ...