-
-
Save jbeda/50ce424c318a1862e5c619ea649f7c53 to your computer and use it in GitHub Desktop.
Notes from TGIK 019
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NODES=$(kubectl get nodes -o jsonpath="{range .items[*]}-H ubuntu@{.metadata.name} {end}") | |
parallel-ssh -i -O StrictHostKeyChecking=no $NODES \ | |
sudo "sh -c 'sed -e "/cadvisor-port=0/d" -i /etc/systemd/system/kubelet.service.d/10-kubeadm.conf; \ | |
systemctl daemon-reload; | |
systemctl restart kubelet'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SSH_KEY=~/.ssh/id_rsa | |
ssh -i $SSH_KEY -A \ | |
-L30900:localhost:30900 \ | |
-L30903:localhost:30903 \ | |
-L30902:localhost:30902 \ | |
-o ProxyCommand="ssh -i \"${SSH_KEY}\" ubuntu@x.x.x.x nc %h %p" ubuntu@x.x.x.x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment