Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Merge branch 'integration' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
john-a-fletcher committed Nov 2, 2021
2 parents 1dfb586 + 4f4d8ad commit 89c7afa
Show file tree
Hide file tree
Showing 16 changed files with 1,509 additions and 1,468 deletions.
37 changes: 28 additions & 9 deletions k8_cortx_cloud/README.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@

###############################################
# Install helm #
###############################################
1. Install helm on the master node:

curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh

###############################################
# Local block storage requirements #
###############################################
Expand All @@ -15,20 +25,26 @@ cluster
###############################################
# Run prerequisite deployment script #
###############################################
1. Install the entire content of "k8_cortx_cloud" on both master node and all worker
nodes. The directory structure must be maintained.
1. Copy "prereq-deploy-cortx-cloud.sh" script, and the solution yaml file to all worker nodes:

scp prereq-deploy-cortx-cloud.sh <user>@<worker-node-IP-address>:<path-to-prereq-script>
scp <solution_yaml_file> <user>@<worker-node-IP-address>:<path-to-prereq-script>

Example:
scp prereq-deploy-cortx-cloud.sh root@192.168.1.1:/home/
scp solution.yaml root@192.168.1.1:/home/

2. Run prerequisite script on all worker nodes in the cluster, and untainted master node
that allows scheduling. "<disk>" is a required input to run this script. This disk
should NOT be any of the devices listed in "solution.storage.cvg*" in the "solution.yaml"
file:

./prereq-deploy-cortx-cloud.sh <disk> [<solution-file>]
sudo ./prereq-deploy-cortx-cloud.sh <disk> [<solution-file>]

Example:
./prereq-deploy-cortx-cloud.sh /dev/sdb
sudo ./prereq-deploy-cortx-cloud.sh /dev/sdb
or
./prereq-deploy-cortx-cloud.sh /dev/sdb solution_dummy.yaml
sudo ./prereq-deploy-cortx-cloud.sh /dev/sdb solution_dummy.yaml

NOTE:
<solution-file> is an optional input to run "prereq-deploy-cortx-cloud.sh" script. Make sure to use
Expand All @@ -39,13 +55,13 @@ the same solution file for pre-req, deploy and destroy scripts (in the below sec
# Deploy and destroy CORTX cloud #
###############################################
1. Deploy CORTX cloud:
./deploy-cortx-cloud.sh [<solution-file>]
sudo ./deploy-cortx-cloud.sh [<solution-file>]

2. Destroy CORTX cloud:
./destroy-cortx-cloud.sh [<solution-file>] [--force|-f]
sudo ./destroy-cortx-cloud.sh [<solution-file>] [--force|-f]

Example:
./destroy-cortx-cloud.sh solution.yaml --force
sudo ./destroy-cortx-cloud.sh solution.yaml --force

NOTE:
<solution-file> is an optional input to run deploy and destroy scripts. Make sure to use the same
Expand Down Expand Up @@ -127,4 +143,7 @@ solution:
kafka: bitnami/kafka:3.0.0-debian-10-r7
zookeeper: bitnami/zookeeper:3.7.0-debian-10-r182
gluster: docker.io/gluster/gluster-centos:latest
rancher: rancher/local-path-provisioner:v0.0.20
rancher: rancher/local-path-provisioner:v0.0.20

NOTE: These images can be pre-downloaded on all worker nodes and untainted master node that
allows scheduling to avoid deployment failure due to docker pull rate limits.
40 changes: 0 additions & 40 deletions k8_cortx_cloud/README_for3rdPartyOnly.txt

This file was deleted.

2 changes: 1 addition & 1 deletion k8_cortx_cloud/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION v0.0.11
VERSION v0.0.12
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ done
for i in "${pod_arr[@]}"
do
retry_count=1
while [ ! -z "$(kubectl exec -it $i -- ldapsearch -w $ROOTDN_PASSWORD -x -D cn=admin,cn=config -b cn=config -h localhost 2>/dev/null | grep -o "Can't contact LDAP server (-1)")" ]
while [ ! -z "$(kubectl exec -it $i -- ldapsearch -w $ROOTDN_PASSWORD -x -D cn=admin,cn=config -b cn=config -h localhost 2>/dev/null | grep -o "Can't contact LDAP server (-1)")" ] || [[ "$(kubectl exec -it $i -- ldapsearch -w $ROOTDN_PASSWORD -x -D cn=admin,cn=config -b olcOverlay={1}ppolicy,olcDatabase={2}mdb,cn=config -h localhost 2>/dev/null | grep numEntries:* | awk '{print $3}' | tr -d '\r')" != "1" ]]
do
if [ $retry_count -eq 11 ]
then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ cortx:
- http://<<.Values.cortx.io.svc>>:28049
service_instances: <<.Values.cortx.num_s3_inst>>
io_max_units: 8
max_start_timeout: <<.Values.cortx.max_start_timeout>>
auth_admin: sgiamadmin
auth_secret: s3_auth_admin_secret
motr:
Expand Down
156 changes: 0 additions & 156 deletions k8_cortx_cloud/deploy-cortx-cloud-3rd-party.sh

This file was deleted.

Loading

0 comments on commit 89c7afa

Please sign in to comment.