diff --git a/README.md b/README.md index 7b3cef5..d19b641 100644 --- a/README.md +++ b/README.md @@ -408,3 +408,45 @@ kubeadm alpha certs renew all ``` Then reboot. Check your certs again, then copy the `/etc/kubernetes/admin.conf` back down for your use. + +# Helm commands + +## Helm info + +``` +helm list +``` + +## Getting at the released templated manifests/values. + +If you want to see the helm manifest in the K8s cluster you can get at it through secrets. Helm stores the release as a k8s secret as a base64 encoded gzip archive: + +``` +kubectl get secrets -o jsonpath="{ .data.release }" | base64 -d | base64 -d | gunzip | json_pp +``` + +It's easier though to get at this info using helm + +``` +helm get manifest +``` + +``` +helm get values +``` + +## Running the Templates without releasing + +Static command to test template. Works without K8s cluster + +``` +helm template [chart] +``` + +Dynamic way is a real helm install but without a commit. + +Debug here outputs in standard error so you have to redirect + +``` +helm install [release] [chart] --debug -dry-run 2>&1 | less +```