How to pass a value through helm?

3/2/2022

I'm currently building a deployment for Kubernetes through Helm. However, one of my values that I have to pass is an Endpoint that contain the following characters:

Endpoint=https://test.io;Id=001;Secret=test_test_test

The problem is that if I passed the following value:

test01:
- name: test
  value: Endpoint=https://test.io;Id=001;Secret=test_test_test

The pod will never get created since is not getting and passing the value. If I add the following with single quotes is telling me that the pod is not ready.

test01:
- name: test
  value: 'Endpoint=https://test.io;Id=001;Secret=test_test_test'

If I passed the value with single quotes it will tell me that the pod got created, but still the pod and namespace do not show up on in the AKS Cluster. However, if I run the same environmental variables on docker, I will see that all of these variables will be applicable to my app, and I will be able to see my app running as expected.

How can I set up the env variables inside of the Values and how can I run a command from the terminal to set & run multiple variables at the same time? & Does anyone has any other way to do this?

-- Hvaandres
azure
azure-devops
helm3
kubernetes
kubernetes-helm

0 Answers