- export the kubectl config file
export KUBECONFIG="/path/admin.conf"
- to retrieve the client and server version of helm
helm version
- retrieve client and server version of the kubectl
kubectl version
- list the helm repository in the local environment
helm repo list
- update the helm repository
helm repo update
- add the helm repository
helm repo add <<chart-name>> <<repository-url>>
- update and download the dependent charts
helm dep up <<chart-name>>
- Install the helm chart
helm install <<chart-folder-name>> --namespace <<namespace>> --name <<release-name>>
- Retrieve or get values of the installed helm chart
helm get <<release-name>> >> some-name.yaml
- list or verify the status of installed chart
helm list
helm status <<release-name>>
- list all pods in the namespace
kubectl get po(d) -n <<namespace>>
- watch all pods in the namespace
watch -d kubectl get po -n <<namespace>>
- delete all PVCs in the namespace
kubectl delete pvc --all -n <<namespace>
> - describe the pod
kubectl describe pod <<pod-name>> -n <<namespace>>
- describe the statefulset
kubectl describe statefulset <<statefulset-name>> -n <<namespace>>
- describe the configmap
kubectl describe configmap <<configmap>> -n <<namespace>>
- delete the helm release
helm delete --purge <<release-name>>
- port forward to access the rest endpoints of the pod
kubectl port-forward 7001:7001 <<pod-name>> -n <<namespace>>