mvk/src/content/docs/guides/dev-env.md

2 KiB

title description
Local Development Environment A guide to checking a local environment.

Run dev-pre-flight-checks.sh command line tool with

curl -L https://codeberg.org/headshed/infctl-cli/raw/branch/main/scripts/dev-pre-flight-checks.sh | bash

Alternatively, download https://codeberg.org/headshed/infctl-cli/raw/branch/main/scripts/dev-pre-flight-checks.sh locally, check over what it does, chmod +x dev-pre-flight-checks.sh and run ./dev-pre-flight-checks.

the following executables are checked to be in your $PATH:

"infctl" "pwgen" "kubectl" "k3d" "helm" "jq" "docker"

if any of these are missing, a development environment cannot be created.

infctl - see quick start

pwgen, jq are typically available in package managers

To install pwgen or jq:

On macOS (using Homebrew):

brew install pwgen jq

On Linux (Debian/Ubuntu):

sudo apt-get update
sudo apt-get install pwgen jq

On Linux (Fedora):

sudo dnf install pwgen jq

To download kubectl, visit the official Kubernetes documentation: Install and Set Up kubectl. Follow the instructions for your operating system.

To install k3d go to k3d installation and follow their guide

To install helm got to helm install and follow their guide

Docker can be installed in a variety of ways but for most Windows and Mac users docker desktop can be an easy option

For Linux users, docker engine install is more often than not the better option.

Which ever path you take to install Docker, any of the above will work but if you are interesting in really getting to know Kubernetes, it is would be really good to go for a Linux based solution as this is typically what Kubernetes is likely to be running on in any production grade environment.