sudo wget -c https://get.helm.sh/helm-v3.12.0-linux-amd64.tar.gz -P /opt/cli/
sudo tar -xvzf /opt/cli/helm-v3.12.0-linux-amd64.tar.gz -C /opt/cli/
sudo rm -rf /opt/cli/helm-v3.12.0-linux-amd64.tar.gz
sudo mv /opt/cli/linux-amd64 /opt/cli/helm-v3.12.0-linux-amd64
sudo update-alternatives --remove-all helm
sudo update-alternatives --install /usr/local/bin/helm helm\
/opt/cli/helm-v3.12.0-linux-amd64/helm 1983
sudo update-alternatives --install /usr/bin/helm helm\
/opt/cli/helm-v3.12.0-linux-amd64/helm 1983
helm repo add stable https://charts.helm.sh/stable
helm search repo jenkins
helm version
Repository
VSCode
Ctrl + P
ext install Tim-Koehler.helm-intellisense
Debian
echo -E "$(jq '."helm-intellisense.customValueFileNames"=["prod-values.yaml","dev-values.yaml","values.yaml"]'\
${HOME}/.config/Code/User/settings.json)">\
${HOME}/.config/Code/User/settings.json
echo -E "$(jq '."helm-intellisense.lintFileOnSave"=true'\
${HOME}/.config/Code/User/settings.json)">\
${HOME}/.config/Code/User/settings.json
MacOS
echo -E "$(jq '."helm-intellisense.customValueFileNames"=["prod-values.yaml","dev-values.yaml","values.yaml"]'\
${HOME}/Library/Application Support/Code/User/settings.json)">\
${HOME}/Library/Application Support/Code/User/settings.json
echo -E "$(jq '."helm-intellisense.lintFileOnSave"=true'\
${HOME}/Library/Application Support/Code/User/settings.json)">\
${HOME}/Library/Application Support/Code/User/settings.json
Fixit
minikube stop
minikube delete
minikube delete --all
|
minikube docker-env
minikube image ls --format table
eval $(minikube -p minikube docker-env)
|
minikube start --cpus 2 --memory 8192
minikube start --cpus 4 --memory 12288
minikube start --cpus 8 --memory 16384
|
|
helm install academia ./academia
helm dependency update ./academia
helm upgrade academia ./academia
|
helm install --debug academia ./academia
helm upgrade --debug academia ./academia
helm uninstall --debug academia
|
helm dep update ./academia
helm template academia ./academia --debug
|
Nexus Helm Repo
Authentication » Auth:
helm plugin install --version master https://github.com/sonatype-nexus-community/helm-nexus-push.git
export USERNAME='academia';export PASSWORD='sadaqah!';helm nexus-push chorke login
Authentication » PUSH:
helm package ./elasticsearch
helm nexus-push chorke elasticsearch-1.0.0.tgz
Authentication » PULL:
helm repo add chorke https://cid.chorke.org/nexus/repository/helm --username academia --password sadaqah!
helm repo add chorke https://cid.chorke.org/nexus/repository/helm --username academia
helm repo update && helm pull chorke/elasticsearch --version 1.0.0
Knowledge
helm search repo -l
helm repo --help
helm repo list
|
helm search repo -l nginx-ingress
helm repo remove bitnami
helm repo update
|
helm pull nginx/nginx-ingress --untar
helm pull nginx/nginx-ingress
helm repo index .
|
|
minikube start --cpus 6 --memory 8192
minikube start
|
export KUBECONFIG=${HOME}/.kube/academia-config.yaml
unset KUBECONFIG
|
minikube stop
minikube delete
|
|
kubectl get pod -A
helm create chorke
helm create academia
|
kubectl logs pod_name
helm install academia ./academia
helm dependency update ./academia
|
kubectl exec -it pod_name -- bash
kubectl delete secret secret_name
helm history academia
helm rollback academia
|
|
ls -lah ${HOME}/.cache/helm
|
ls -lah ${HOME}/.local/share/helm
|
ls -lah ${HOME}/.cache/helm/repository
|
References