Deployong to edge using Kubernates with environmental variables for every module in deployment yaml file

Venkata Siva Kumar Sukka 46 Reputation points
2021-07-14T18:27:51.77+00:00

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

Both i tried but i didnt see the enviromental variables on the module

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
598 questions
{count} votes

Accepted answer
  1. VenkatYalla-0009 836 Reputation points
    2021-07-26T16:37:01.18+00:00

    You cannot use variable substitution ($POSTGRES_DB) in the IoT Edge deployment manifest, currently.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.