Skip to content

Instantly share code, notes, and snippets.

@jbeda
Created December 22, 2017 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbeda/50ce424c318a1862e5c619ea649f7c53 to your computer and use it in GitHub Desktop.
Save jbeda/50ce424c318a1862e5c619ea649f7c53 to your computer and use it in GitHub Desktop.
Notes from TGIK 019
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'"
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