7 lines
160 B
Bash
Executable File
7 lines
160 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
endpoint="$(sed -n 's/^endpoint:\s*//p' group_vars/all)"
|
|
|
|
ssh "$endpoint" sudo cat /etc/kubernetes/admin.conf > kubeconfig
|
|
chmod 600 kubeconfig
|