import { CardContent } from "@/components/ui/card";
import {
DialogDescription,
DialogHeader,
DialogTitle,
} from "@/components/ui/dialog";
import { api } from "@/utils/api";
import copy from "copy-to-clipboard";
import { CopyIcon } from "lucide-react";
import { toast } from "sonner";
export const AddWorker = () => {
const { data } = api.cluster.addWorker.useQuery();
return (
Add a new worker
Add a new worker
1. Go to your new server and run the following command
curl https://get.docker.com | sh -s -- --version 24.0
2. Run the following command to add the node(worker) to your cluster
{data}
);
};