import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "@/components/ui/dialog"; import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage, } from "@/components/ui/form"; import { Input } from "@/components/ui/input"; import { Textarea } from "@/components/ui/textarea"; import { api } from "@/utils/api"; import { zodResolver } from "@hookform/resolvers/zod"; import { AlertTriangle, PlusIcon } from "lucide-react"; import { useEffect } from "react"; import { useForm } from "react-hook-form"; import { toast } from "sonner"; import { z } from "zod"; const AddWorkerSchema = z.object({ name: z.string().min(1, { message: "Name is required", }), description: z.string().optional(), }); type AddWorker = z.infer; export const AddWorker = () => { const utils = api.useUtils(); const { data, isLoading } = api.cluster.addWorker.useQuery(); return ( Add a new worker Add a new worker {/* {isError && (
{error?.message}
)} */}
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(server) to your cluster {data}
); };