Helm upgrade fails with error: expects ” or n, but found t

I ran into a similar problem and apparently it turns out Kubernetes’s Pod specification requires environment variable values to be coerced as strings, so integers need to be passed through quote.So, in your deployment.yaml file wherever you are using the numeric values try to pass them as below. value: {{ .Values.environment.TEMP | quote}} It will … Read more

Helm: Error: no available release name found

The solution given by kujenga from the GitHub issue worked without any other modifications: kubectl create serviceaccount –namespace kube-system tiller kubectl create clusterrolebinding tiller-cluster-rule –clusterrole=cluster-admin –serviceaccount=kube-system:tiller kubectl patch deploy –namespace kube-system tiller-deploy -p ‘{“spec”:{“template”:{“spec”:{“serviceAccount”:”tiller”}}}}’

How to set a different namespace for child helm charts?

Update 2: Helm 3 added support for multi namespaces https://github.com/helm/helm/issues/2060 Update 1: If a resource template specifies a metadata.namespace, then it will be installed in that namespace. For example, if I have a pod with metadata.namespace: x and I run helm install mychart –namespace y, that pod will be installed in x. I guess you … Read more

ingress.yaml template returns error in renderring –> nil pointer evaluating interface {}.service

What you’re seeing is a weird caveat in Go templating. Your conditional logic is being evaluated inside a range loop. This means . you’re using to access Values is not the one you expect it to be, as it’s overridden for each range iteration evaluation. You can use $, which references the global scope in … Read more

Helm 3 install for resouces that exist

First of all you need to make sure you’ve successfully uninstalled the helm release, before reinstalling. To list all the releases, use: $ helm list –all –all-namespaces To uninstall a release, use: $ helm uninstall <release-name> -n <namespace> You can also use –no-hooks to skip running hooks for the command: $ helm uninstall <release-name> -n … Read more

Kubernetes – How to define ConfigMap built using a file in a yaml?

Your config.json file should be inside your mychart/ directory, not inside mychart/templates Chart Template Guide configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ .Release.Name }}-configmap data: config.json: |- {{ .Files.Get “config.json” | indent 4}} config.json { “val”: “key” } helm install –dry-run –debug mychart [debug] Created tunnel using local port: ‘52091’ [debug] SERVER: “127.0.0.1:52091” … … Read more