Skip to content

Instantly share code, notes, and snippets.

@jbeda

jbeda/cadvisor-fix Secret

Created Dec 22, 2017
Embed
What would you like to do?
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