Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 2.11 KB

File metadata and controls

61 lines (42 loc) · 2.11 KB

Single Host Kubernetes

The local provider provisions a KubeAid-managed K3D cluster on your local machine for development and testing.

Caution

The local provider does not support cluster upgrades or disaster recovery. Use for testing only.

Features

Prerequisites

Install KubeAid CLI

KUBEAID_CLI_VERSION=$(curl -s "https://api.github.com/repos/Obmondo/kubeaid-cli/releases/latest" | jq -r .tag_name)
OS=$([ "$(uname -s)" = "Linux" ] && echo "linux" || echo "darwin")
CPU_ARCHITECTURE=$([ "$(uname -m)" = "x86_64" ] && echo "amd64" || echo "arm64")

wget "https://github.com/Obmondo/kubeaid-cli/releases/download/${KUBEAID_CLI_VERSION}/kubeaid-cli-${KUBEAID_CLI_VERSION}-${OS}-${CPU_ARCHITECTURE}"
sudo mv kubeaid-cli-${KUBEAID_CLI_VERSION}-${OS}-${CPU_ARCHITECTURE} /usr/local/bin/kubeaid-cli
sudo chmod +x /usr/local/bin/kubeaid-cli

Setup

# Generate configuration (interactive prompt; select local when asked for a provider)
kubeaid-cli config generate

# Edit outputs/configs/general.yaml and secrets.yaml

# Bootstrap the cluster
kubeaid-cli cluster bootstrap

# Access the cluster
export KUBECONFIG=./outputs/kubeconfigs/clusters/main.yaml
kubectl cluster-info

Logs are saved in outputs/logs. Access the ArgoCD and Grafana dashboards.

Cleanup

kubeaid-cli cluster delete management

See Also