Kubepal
is a local k3d cluster setup designed for cluster configuration development and app deployment experimentation.
Key features:
-
Disposable and Quick-to-Use: Create and delete the cluster set up with a single command
-
GitOps Ready: Replicate GitOps practices in a local environment using ArgoCD
-
Modular: Each directory is a self-contained module that can be used independently
# Clone the repo
git clone https://github.com/J0hn-B/kubepal.git
# Change to the kubepal directory
cd kubepal
# List all available tasks
task --list
Configure Kubepal to use the local kubeconfig file
# create cluster deploy helm charts using terraform
task deploy
# delete cluster
task delete
Available tasks for this project
$ task --list
* create: Create and access a k3d cluster.
If operating on WSL, the KUBECONFIG env var will point to the Windows host.
Kubeconfig path: /mnt/c/Users/devops/.kube/config
* delete: Delete cluster
* deploy: Bootstrap cluster and deploy apps
* test: Run static tests
* tf_init: Initialize terraform
* run:checkov: Checkov, find cloud infra misconfigurations
* run:diff: Git diff to return changed files
* run:kube_scape: Kubescape security platform
* run:lint: GitHub Super-Linter
* run:trivy: Trivy security scanner