From fbfb34b60f056fc4b3ab614dacbb50be1ef04115 Mon Sep 17 00:00:00 2001 From: ansgarz Date: Wed, 8 Dec 2021 17:59:49 +0100 Subject: [PATCH] add some debugs --- .../local-integration-test/setup-docker.sh | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/src/test/resources/local-integration-test/setup-docker.sh b/src/test/resources/local-integration-test/setup-docker.sh index 0291b00..5984cdb 100755 --- a/src/test/resources/local-integration-test/setup-docker.sh +++ b/src/test/resources/local-integration-test/setup-docker.sh @@ -39,16 +39,7 @@ echo "127.0.0.1 kubernetes" >> /etc/hosts cat /etc/hosts echo ---------------------------------- cat $HOME/.kube/config -echo $KUBECONFIG -export KUBECONFIG=$HOME/.kube/config - -#swapoff -a -kubectl config view - -docker ps -a - -netstat -tlpn #cp /var/lib/docker/volumes/k3s-server/_data/server/kubeconfig.yaml $HOME/.kube/config @@ -60,7 +51,26 @@ curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.22.0/bin/l chmod +x ./kubectl mv ./kubectl /usr/local/bin/kubectl +sleep 20 #allow some time to startup k3s docker ps -a +swapoff -a +kubectl config view +echo ======================================================== +kubectl --kubeconfig "$HOME/.kube/config" config view + +echo ======================================================== + +echo $KUBECONFIG + +export KUBECONFIG=$HOME/.kube/config +kubectl config view + + +echo ======================================================== + + +netstat -tlpn + #cd /c4k-nextcloud/src/test/resources/local-integration-test && ./setup-local-s3-on-k3d.sh cd /builds/domaindrivenarchitecture/c4k-nextcloud/src/test/resources/local-integration-test && ./setup-local-s3-on-k3d.sh \ No newline at end of file