#!/bin/bash

for NODE in k8s-node01 k8s-node02 k8s-node03; do
    sshpass scp -P 22 -r /etc/kubernetes/kube-proxy.kubeconfig root@$NODE:/etc/kubernetes/
    sshpass scp -P 22 -r /usr/lib/systemd/system/kube-proxy.service root@$NODE:/usr/lib/systemd/system/
    sshpass scp -P 22 -r /etc/kubernetes/kube-proxy.yaml root@$NODE:/etc/kubernetes/
done
