diff --git a/admin/README.md b/admin/README.md index f4c2b86ca0f468dfe26a73ef7b9b17c73189e8eb..b893027a9dfa87268fc95ed0dc82b02b999718cc 100644 --- a/admin/README.md +++ b/admin/README.md @@ -133,7 +133,7 @@ it can't make all of the replicas (only one replica per node). At the time of writing, kubekorner has had its longhorn instance installed with: ```bash -helm install longhorn ./chart/ --namespace longhorn-system --set defaultSettings.defaultReplicaCount=1 --set persistence.defaultClassReplicaCount=1 --set ingress.enabled=true --set ingress.host="kubekorner.ssec.wisc.edu" --set defaultSettings.defaultDataPath="/data" +helm install longhorn ./chart/ --namespace longhorn-system --set persistence.defaultClass=false --set defaultSettings.defaultReplicaCount=1 --set persistence.defaultClassReplicaCount=1 --set ingress.enabled=true --set ingress.host="kubekorner.ssec.wisc.edu" --set defaultSettings.defaultDataPath="/data" ``` From the webUI or following longhorn's current instructions we can change most diff --git a/helpers/deploy_rabbitmq.sh b/helpers/deploy_rabbitmq.sh index 3dcda61ad6711d7cf27f19304bd09c68cfb7dc8b..286e47097e607827bf84060f4d6f9f755273ed38 100755 --- a/helpers/deploy_rabbitmq.sh +++ b/helpers/deploy_rabbitmq.sh @@ -16,7 +16,7 @@ cp $kubekorner_k3s_config . kubeconfig=$(basename $kubekorner_k3s_config) # get password from any previous installation # if we don't do this the password will get out of sync -sec_info=$(kubectl --kubeconfig $kubeconfig get secret --namespace geosphere-test geosphere-rabbit-rabbitmq || echo "") +sec_info=$(kubectl --kubeconfig $kubeconfig get secret --namespace $ns geosphere-rabbit-rabbitmq || echo "") echo $sec_info auth_sec="geosphere-rabbit-rabbitmq" if [[ "$sec_info" != "" ]]; then @@ -31,7 +31,7 @@ helm upgrade -v 2 --install --kubeconfig $kubeconfig -f ${values_base}/values-ge # do a little waiting for the rabbitmq pod to be ready so future stages # don't fail to communicate with it echo "Start waiting for rabbitmq: $(date +%Y%m%dT%H%M%S)" -kubectl2 wait --kubeconfig $kubeconfig -n $ns pod/geosphere-rabbit-rabbitmq-0 --timeout 120s --for=condition=Ready +kubectl wait --kubeconfig $kubeconfig -n $ns pod/geosphere-rabbit-rabbitmq-0 --timeout 120s --for=condition=Ready status=$? echo "Done waiting for rabbitmq: $(date +%Y%m%dT%H%M%S) : $status" exit $status diff --git a/helpers/shell_aliases.sh b/helpers/shell_aliases.sh index 0079eb493ab558f7b568e1341fd4a528d3411b4e..70fabf3072159b8184cca9108c710836400d3195 100644 --- a/helpers/shell_aliases.sh +++ b/helpers/shell_aliases.sh @@ -11,8 +11,3 @@ kubectl() { docker run -a stdout --rm -v $(pwd):/apps -w /apps alpine/k8s:1.18.2 kubectl "$@" } export -f kubectl - -kubectl2() { - docker run --rm -v $(pwd):/apps -w /apps alpine/k8s:1.18.2 kubectl "$@" -} -export -f kubectl2