Local Kubernetes (kind) install¶
Use this for lightweight local Kubernetes testing on a Docker-enabled host. For deeper configuration options, refer to the official kind site.
Docker is required to run kind. If it is not installed yet, follow the Docker install guide first.
Install kubectl + kind (Debian/Ubuntu)¶
Follow this flow:
1) Install Docker first: Docker install guide.
2) Run the bootstrap script to install kubectl + kind.
curl -fsSL https://raw.githubusercontent.com/PyPNMApps/PyPNM/main/tools/k8s/pypnm_kind_vm_bootstrap.sh \
-o /tmp/pypnm_kind_vm_bootstrap.sh
bash /tmp/pypnm_kind_vm_bootstrap.sh
Create a local cluster¶
kind create cluster --name pypnm-dev
kubectl get nodes
Script-only deploy (no repo clone)¶
TAG="v1.1.19.0"
NAMESPACE="pypnm-cmts-a"
curl -fsSL https://raw.githubusercontent.com/PyPNMApps/PyPNM/main/tools/k8s/pypnm_k8s_remote_deploy.sh \
-o /tmp/pypnm_k8s_remote_deploy.sh
bash /tmp/pypnm_k8s_remote_deploy.sh --create --tag "${TAG}" --namespace "${NAMESPACE}" --replicas 1
Next step: deploy PyPNM from GHCR using PyPNM on Kubernetes (kind).
Delete the cluster¶
kind delete cluster --name pypnm-dev