I am trying to get either my deployment manifest or a configmap approach to pass in such a set of variables:
DIRECTORY=/home/test
TOKEN=$(cat $(DIRECTORY)/token)
In both my deployment manifest, and my configmap attempts, the TOKEN=$(cat $(DIRECTORY)/token): gets set literally, and not resolved within the pod (basically it should be: TOKEN=/home/test/token)
Is it not possible to set vars this way with Kubenernetes? Is this due to the fact that the pod expects { } around the variables and not ( ) like kubenetes requires?