You cannot use variable substitution ($POSTGRES_DB
) in the IoT Edge deployment manifest, currently.
Deployong to edge using Kubernates with environmental variables for every module in deployment yaml file
Venkata Siva Kumar Sukka
46
Reputation points
For having the ENV variables for the modules , here we are deploying through the Kubernates , we need to have the variables under the container name or the create options
createOptions: |
{
"Env": [
"POSTGRES_DB=$POSTGRES_DB"
]
}
or
- name: postgres
image: "postgres:$POSTGRES_VERSION"
env:- name : POSTGRES_DB
value: $POSTGRES_DB
- name : POSTGRES_DB
Both i tried but i didnt see the enviromental variables on the module
Accepted answer
-
VenkatYalla-0009 751 Reputation points
2021-07-26T16:37:01.18+00:00