Skip to main content

Execute any command on any hosts

Cluster-level execution

$ sealos exec "cat /etc/hosts"

Node-level execution

$ sealos exec -c my-cluster -r master,slave,node1 "cat /etc/hosts"