+
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
+ 2. Run the following command to add the node(manager) to your
cluster
- {data}
+
+ {data}
+
+
-
-
+
+
>
);
};
diff --git a/components/dashboard/settings/cluster/nodes/show-nodes.tsx b/components/dashboard/settings/cluster/nodes/show-nodes.tsx
index 47cbee4c..95d105ab 100644
--- a/components/dashboard/settings/cluster/nodes/show-nodes.tsx
+++ b/components/dashboard/settings/cluster/nodes/show-nodes.tsx
@@ -7,7 +7,6 @@ import {
CardTitle,
} from "@/components/ui/card";
import { api } from "@/utils/api";
-import { AddWorker } from "./workers/add-worker";
import { DateTooltip } from "@/components/shared/date-tooltip";
import { Badge } from "@/components/ui/badge";
import { DeleteWorker } from "./workers/delete-worker";
@@ -20,7 +19,7 @@ import {
TableHeader,
TableRow,
} from "@/components/ui/table";
-import { MoreHorizontal, PlusIcon } from "lucide-react";
+import { HelpCircle, LockIcon, MoreHorizontal } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
DropdownMenu,
@@ -29,10 +28,19 @@ import {
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { ShowNodeData } from "./show-node-data";
-import { AddManager } from "./manager/add-manager";
+import { AddNode } from "./add-node";
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipProvider,
+ TooltipTrigger,
+} from "@/components/ui/tooltip";
export const ShowNodes = () => {
const { data, isLoading } = api.cluster.getNodes.useQuery();
+ const { data: registry } = api.registry.all.useQuery();
+
+ const haveAtLeastOneRegistry = !!(registry && registry?.length > 0);
return (
@@ -40,91 +48,114 @@ export const ShowNodes = () => {
Cluster
Add nodes to your cluster
-