Converting docker-compose to a helm chart?
The kompose tool now includes the ability to convert to Helm charts from docker-compose.yml files: kompose convert -c Check out the kompose Alternative Conversions documentation (also here).
The kompose tool now includes the ability to convert to Helm charts from docker-compose.yml files: kompose convert -c Check out the kompose Alternative Conversions documentation (also here).
How can I list, show all the charts installed by helm on a K8s? helm list –all-namespaces Where does helm keep the which repository installed etc? By default in Secret objects in the same namespace as the release, but this can be changed. Can I somehow export the helm’s repository list and history Not really. … Read more
If you change the selector label, then you will need to purge the release first before deploying: kubectl delete deploy <deployment-name>
By default, helm3 only shows releases of default namespace. Do the following to get your release and delete it. # Get all releases helm ls –all-namespaces # OR helm ls -A # Delete release helm uninstall release_name -n release_namespace
This is or has been a helm issue for a while. It only affects the situation where the first install of a chart fails and has up to helm 2.7 required a manual delete of the failed release before correcting the issue and installing again. However there is now a –force flag available to address … Read more
The Helm template syntax is based on the Go programming language’s text/template package. The braces {{ and }} are the opening and closing brackets to enter and exit template logic. The Helm documentation at https://helm.sh/docs/chart_template_guide/control_structures/ discusses why this syntax is needed in an example. YAML ascribes meaning to whitespace, so managing the whitespace becomes pretty … Read more
I’ve found that the reason of this problem was that I had some envVars duplicated. In my deployment I had: … spec: template: spec: container: env: – name: ENV_VAR_NAME value: “test” – name: ENV_VAR_NAME value: “test” … After removing the duplicated variable: … spec: template: spec: container: env: – name: ENV_VAR_NAME value: “test” … The … Read more
The helm docu has a section The Format and Limitations of –set, which contains what you are looking for. –set outer.inner=value results in: outer: inner: value Therefore your whole helm command looks like this: helm install –set annotations.foo=bar,annotations.bash=baz stable/prometheus-redis-exporter
According to the official documentation, the helm init command has been removed without replacement: The helm init command has been removed. It performed two primary functions. First, it installed Tiller. This is no longer needed. Second, it setup directories and repositories where Helm configuration lived. This is now automated. If the directory is not present … Read more
You can lint the chart by going helm lint ./mychart which should print the following if an issue is found: $ helm lint ./mychart ==> Linting ./mychart [ERROR] Chart.yaml: version is required [INFO] Chart.yaml: icon is recommended Error: 1 chart(s) linted, 1 chart(s) failed See helm lint.