Create a developpement Kubernetes cluster and automate some service deployment
You can try it out running npm i && npm i -g .
npm run compile
easykube (-h)
node bin/index.js -h
easykube install all
Install Kind
cd /tmp && \
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64 && \
chmod +x ./kind && \
sudo ln -s ./kind /usr/local/bin/kind && \
cd -
Install Helm (version > 3.7.1)
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
To don't break your cluster if you're already connecting to one of it, kind is installed on another place. So you need to configure kubectl to interact with it by default
- Without disconnecting from you current cluster
alias keasy="kubectl --kubeconfig=$HOME/.kube/conf-files/kind-easykube"
# Usage: keasy get pod
- Soit en remplaçant le fichier de config pour une interaction permanente
alias kuse-easykube="cp -T ~/.kube/conf-files/kind-easykube ~/.kube/config"
# Usage: kuse-local && kubectl get pod