Execute any command on any hosts
Cluster-level execution
- Default
- Specify cluster
$ sealos exec "cat /etc/hosts"
$ sealos exec -c my-cluster "cat /etc/hosts"
Node-level execution
- Role label
- IPs
$ sealos exec -c my-cluster -r master,slave,node1 "cat /etc/hosts"
$ sealos exec -c my-cluster --ips 172.16.1.38 "cat /etc/hosts"