Installation
This guide walks you through installing the Forkspacer operator in your Kubernetes cluster using Helm (recommended).
Prerequisites
Section titled “Prerequisites”- Kubernetes cluster (v1.20 or later)
kubectlconfigured to access your clusterhelm(v3.0 or later)- Cluster admin permissions
Helm Installation
Section titled “Helm Installation”Forkspacer is installed using Helm charts for flexible and manageable deployments.
1. Install cert-manager
Section titled “1. Install cert-manager”Forkspacer requires cert-manager for managing TLS certificates used by webhooks.
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.18.2/cert-manager.yamlWait for cert-manager to be ready:
kubectl wait --for=condition=available --timeout=300s deployment/cert-manager -n cert-managerkubectl wait --for=condition=available --timeout=300s deployment/cert-manager-cainjector -n cert-managerkubectl wait --for=condition=available --timeout=300s deployment/cert-manager-webhook -n cert-manager2. Deploy Forkspacer with Helm
Section titled “2. Deploy Forkspacer with Helm”Add the Forkspacer Helm repository:
helm repo add forkspacer https://forkspacer.github.io/forkspacerhelm repo updateOperator Only (Minimal)
Install just the core operator for managing workspaces and modules:
helm install forkspacer forkspacer/forkspacer \ --namespace forkspacer-system \ --create-namespace3. Verify Installation
Section titled “3. Verify Installation”Check that the operator is running:
kubectl get pods -n forkspacer-systemYou should see the operator pod in Running state:
NAME READY STATUS RESTARTS AGEforkspacer-controller-manager-xxxxxxxxx-xxxxx 1/1 Running 0 30sVerify the CRDs are installed:
kubectl get crds | grep batch.forkspacer.comYou should see:
modules.batch.forkspacer.comworkspaces.batch.forkspacer.comWhat’s Next?
Section titled “What’s Next?”- Quick Start Guide - Create your first workspace and deploy a module
- Creating Workspaces - Learn about workspace management
- Deploying Modules - Deploy applications into workspaces
Troubleshooting
Section titled “Troubleshooting”cert-manager Installation Issues
Section titled “cert-manager Installation Issues”If cert-manager pods are not starting, check the logs:
kubectl logs -n cert-manager deployment/cert-managerEnsure your Kubernetes version is v1.19 or later:
kubectl version --shortOperator Not Starting
Section titled “Operator Not Starting”Check the operator logs:
kubectl logs -n forkspacer-system deployment/forkspacer-controller-managerEnsure all required CRDs are installed:
kubectl get crds | grep batch.forkspacer.comUninstallation
Section titled “Uninstallation”To remove Forkspacer from your cluster:
# Delete all workspaces and modules firstkubectl delete workspaces --all -Akubectl delete modules --all -A
# Remove the operator using Helmhelm uninstall forkspacer -n forkspacer-system
# Optionally remove cert-managerkubectl delete -f https://github.com/cert-manager/cert-manager/releases/download/v1.18.2/cert-manager.yaml