UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Verified Commit d3c47d65 authored by Jonathan Braswell's avatar Jonathan Braswell
Browse files

create .kube dir on first run of k3d-dev.sh

parent d18ede9e
No related branches found
No related tags found
1 merge request!3205create .kube dir on first run of k3d-dev.sh
Pipeline #2264998 passed
......@@ -648,6 +648,7 @@ run "kubectl config use-context k3d-k3s-default"
run "kubectl cluster-info && kubectl get nodes"
echo "copying kubeconfig to workstation..."
mkdir -p ~/.kube
scp -i ~/.ssh/${KeyName}.pem -o StrictHostKeyChecking=no -o IdentitiesOnly=yes ubuntu@${PublicIP}:/home/ubuntu/.kube/config ~/.kube/${AWSUSERNAME}-dev-config
if [[ "$PRIVATE_IP" == true ]]; then
$sed_gsed -i "s/0\.0\.0\.0/${PrivateIP}/g" ~/.kube/${AWSUSERNAME}-dev-config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment