How to load variables values from teamcity to configmap

1/24/2020

I want to pull variables from the TeamCity. the same way as we defining it in the deployment.YAML file. and need to put them into a config map resources for that application. I have tried like this

GS_HOST: "[[ .Env.gHost ]]" like name :value.but after deployemt nothing will be returned.

ConfigMap.yaml

deployment.yaml

same is working fine when [[Env.gHost]] is edited in deployment.yaml as

Env: name:gHost value:[[Env.gHost]] please find the images attached for the configMap that is not working

-- Riby Varghese
configmap
devops
gitlab
kubernetes
teamcity-7.0

0 Answers