From 2ec7034f9f29e41008225da1426e73aabfe455a3 Mon Sep 17 00:00:00 2001 From: Jamil Date: Wed, 15 May 2024 11:26:32 -0700 Subject: [PATCH] docs: Uninstall Gateway (#4966) https://discord.com/channels/1228082899023298741/1239053156965679115 --------- Signed-off-by: Jamil Co-authored-by: Brian Manifold Co-authored-by: Andrew Dryga Co-authored-by: Reactor Scram Co-authored-by: Gabi --- .../src/app/kb/administer/uninstall/_page.tsx | 6 ++ .../src/app/kb/administer/uninstall/page.tsx | 17 ++++ .../app/kb/administer/uninstall/readme.mdx | 77 +++++++++++++++++++ .../app/kb/administer/upgrading/readme.mdx | 2 +- website/src/components/KbSidebar/index.tsx | 5 +- 5 files changed, 105 insertions(+), 2 deletions(-) create mode 100644 website/src/app/kb/administer/uninstall/_page.tsx create mode 100644 website/src/app/kb/administer/uninstall/page.tsx create mode 100644 website/src/app/kb/administer/uninstall/readme.mdx diff --git a/website/src/app/kb/administer/uninstall/_page.tsx b/website/src/app/kb/administer/uninstall/_page.tsx new file mode 100644 index 000000000..8f8abd30f --- /dev/null +++ b/website/src/app/kb/administer/uninstall/_page.tsx @@ -0,0 +1,6 @@ +"use client"; +import Content from "./readme.mdx"; + +export default function _Page() { + return ; +} diff --git a/website/src/app/kb/administer/uninstall/page.tsx b/website/src/app/kb/administer/uninstall/page.tsx new file mode 100644 index 000000000..1fed4cc79 --- /dev/null +++ b/website/src/app/kb/administer/uninstall/page.tsx @@ -0,0 +1,17 @@ +import _Page from "./_page"; +import { Metadata } from "next"; +import LastUpdated from "@/components/LastUpdated"; + +export const metadata: Metadata = { + title: "Uninstall Firezone • Firezone Docs", + description: "How to uninstall Firezone", +}; + +export default function Page() { + return ( + <> + <_Page /> + + + ); +} diff --git a/website/src/app/kb/administer/uninstall/readme.mdx b/website/src/app/kb/administer/uninstall/readme.mdx new file mode 100644 index 000000000..4b0008df6 --- /dev/null +++ b/website/src/app/kb/administer/uninstall/readme.mdx @@ -0,0 +1,77 @@ +import SupportOptions from "@/components/SupportOptions"; +import { TabsGroup, TabsItem } from "@/components/DocsTabs"; +import Alert from "@/components/DocsAlert"; + +# Uninstall Firezone Gateway + +This guide covers how to uninstall the Firezone Gateway from your server(s). + +{/* TODO: add Alert and link to client uninstall docs when that's complete */} + +## Step 1: Stop the Gateway and remove relevant files + +Use the appropriate instructions below to stop and remove the Gateway depending +on how it was installed: + + + + +1. Stop the container: + + ``` + docker stop firezone-gateway + ``` + +1. Remove the container and its volumes: + + ``` + docker rm --volumes firezone-gateway + ``` + +1. Remove the image: + + ``` + docker rmi ghcr.io/firezone/gateway:1 + ``` + +1. Remove the cache directory: + + ``` + sudo rm -rf /var/lib/firezone + ``` + + + + +1. Stop the service: + + ``` + sudo systemctl stop firezone-gateway + ``` + +1. Disable the service: + + ``` + sudo systemctl disable firezone-gateway + ``` + +1. Remove all relevant files: + + ``` + sudo rm -rf /etc/systemd/system/firezone-gateway.service \ + /usr/local/bin/firezone-gateway \ + /usr/local/bin/firezone-gateway-init \ + /var/lib/firezone + ``` + + + + +## Step 2 (optional): Delete the data from the admin portal + +If you want to remove the Gateway's data from the admin portal as well, navigate +to the Site where the Gateway was running, click `(see all)` next to the +`Online Gateways` header, and then delete the offline Gateway corresponding to the +Gateway you just uninstalled. + + diff --git a/website/src/app/kb/administer/upgrading/readme.mdx b/website/src/app/kb/administer/upgrading/readme.mdx index 79dbe341b..e22223a4b 100644 --- a/website/src/app/kb/administer/upgrading/readme.mdx +++ b/website/src/app/kb/administer/upgrading/readme.mdx @@ -5,7 +5,7 @@ import Image from "next/image"; import Alert from "@/components/DocsAlert"; import SupportOptions from "@/components/SupportOptions"; -# Upgrading Gateways +# Upgrade Gateways Firezone Gateways are designed to be easily upgraded with little or no planned downtime for your organization. This guide will walk you through the steps to diff --git a/website/src/components/KbSidebar/index.tsx b/website/src/components/KbSidebar/index.tsx index 81067737b..09638f9ee 100644 --- a/website/src/components/KbSidebar/index.tsx +++ b/website/src/components/KbSidebar/index.tsx @@ -124,7 +124,7 @@ export default function KbSidebar() { Overview
  • - Upgrading Gateways + Upgrade Gateways
  • @@ -139,6 +139,9 @@ export default function KbSidebar() { Troubleshooting
  • +
  • + Uninstall Firezone +