Making k3d-dev.sh more readable and maintainable, using function to run over ssh
All threads resolved!
All threads resolved!
Compare changes
- Danny Gershman authored
+ 27
− 23
@@ -320,7 +324,7 @@ ssh-keygen -f "${HOME}/.ssh/known_hosts" -R "${PublicIP}"
@@ -333,43 +337,43 @@ echo
ssh -i ~/.ssh/${KeyName}.pem -o StrictHostKeyChecking=no -o IdentitiesOnly=yes ubuntu@${PublicIP} 'echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null'
@@ -388,7 +392,7 @@ k3d_command+=" --port 80:80@loadbalancer --port 443:443@loadbalancer --api-port
@@ -402,19 +406,19 @@ else
@@ -437,7 +441,7 @@ if [[ "$METAL_LB" == true ]]; then
@@ -449,7 +453,7 @@ else # default is to use public ip