where to defining environmental variable in helm-charts?Pass variable down to dependency helm chartHelm chart variable definitionsHow to pull environment variables with Helm chartsHelm How do I list or query the environment variables that are set for Helm?How to make an environment variable different across two pods of the same deployment in kubernetes?Customize helm chart from stable repositorywhere to override .Release.Name in helmSerialising the deployment of pods/ helm chartsCreate custom helm chartsDependency between pods in helm charts

If I build a custom theme, will it update?

Why do dragons like shiny stuff?

Is a switch from R to Python worth it?

How can I perform a deterministic physics simulation?

Can you take actions after being healed at 0hp?

Tile the chessboard with four-colored triominoes

Ubuntu show wrong disk sizes, how to solve it?

Write The Shortest Program To Check If A Binary Tree Is Balanced

London underground zone 1-2 train ticket

Whats the difference between <processors> and <pipelines> in Sitecore configuration?

Do some languages mention the top limit of a range first?

Why do scoped enums allow use of | operator when initializing using previously assigned values?

How many years before enough atoms of your body are replaced to survive the sudden disappearance of the original body’s atoms?

Identify Batman without getting caught

Writing computer program code for free in an interview?

How and where to get you research work assessed for PhD?

Why does capacitance not depend on the material of the plates?

Repeated! Factorials!

Premier League simulation

Is there a way to improve my grade after graduation?

Generate a random point outside a given rectangle within a map

Does a 4 bladed prop have almost twice the thrust of a 2 bladed prop?

How to switch an 80286 from protected to real mode?

Prime too close to f in Garamond Math



where to defining environmental variable in helm-charts?


Pass variable down to dependency helm chartHelm chart variable definitionsHow to pull environment variables with Helm chartsHelm How do I list or query the environment variables that are set for Helm?How to make an environment variable different across two pods of the same deployment in kubernetes?Customize helm chart from stable repositorywhere to override .Release.Name in helmSerialising the deployment of pods/ helm chartsCreate custom helm chartsDependency between pods in helm charts






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








-1















I have 2 pods in the aks and first pod is consuming services from second pod. to establish the connection, i need to set env variable. I want to know where to define those env variable in helm










share|improve this question
































    -1















    I have 2 pods in the aks and first pod is consuming services from second pod. to establish the connection, i need to set env variable. I want to know where to define those env variable in helm










    share|improve this question




























      -1












      -1








      -1








      I have 2 pods in the aks and first pod is consuming services from second pod. to establish the connection, i need to set env variable. I want to know where to define those env variable in helm










      share|improve this question
















      I have 2 pods in the aks and first pod is consuming services from second pod. to establish the connection, i need to set env variable. I want to know where to define those env variable in helm







      kubernetes kubernetes-helm






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 27 at 5:37









      Anthon

      36k17 gold badges103 silver badges161 bronze badges




      36k17 gold badges103 silver badges161 bronze badges










      asked Mar 27 at 3:42









      sushant kumarsushant kumar

      213 bronze badges




      213 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          2














          In deployment.yaml
          at the path
          spec.template.spec.containers



          It goes something like this



          ...
          spec:
          containers:
          - name: .Chart.Name
          image: " .Values.image.repository : .Values.image.tag "
          imagePullPolicy: .Values.image.pullPolicy
          env:
          - name: JPDA_ADDRESS
          value: '*:8000'
          ...


          So, once you run the above, if you do
          kubectl exec my-pod -c my-container -- "echo $JPDA_ADDRESS", it will print *:8000



          It is important to understand, that Helm simply manages templates for Kubernetes objects. Helm's deployment.yaml produces a YAML spec for Kube object of kind: Deployment. So, if you want to know every possible field you can specify in deployment.yaml, you can run kubectl explain deployment --recursive anywhere you have kubectl running.






          share|improve this answer



























          • Will this method application when my pods are running in azure dev spaces and not in default namespace

            – sushant kumar
            Mar 27 at 4:00











          • @sushantkumar while I personally have no experience with Azure, the whole purpose of Kubernetes / Helm is to behave the same everywhere, otherwise it has failed its mission. This method definitely works in Google's GCP and in AWS and in barebone Kube and in docker-for-desktop on developer's machines. I am sure Azure will follow suit.

            – Alex Pakka
            Mar 27 at 4:10






          • 1





            Also, pleas don't forget to upvote if it works for you (when it does, and if you find it helpful, no rush).

            – Alex Pakka
            Mar 27 at 4:10










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55369448%2fwhere-to-defining-environmental-variable-in-helm-charts%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          In deployment.yaml
          at the path
          spec.template.spec.containers



          It goes something like this



          ...
          spec:
          containers:
          - name: .Chart.Name
          image: " .Values.image.repository : .Values.image.tag "
          imagePullPolicy: .Values.image.pullPolicy
          env:
          - name: JPDA_ADDRESS
          value: '*:8000'
          ...


          So, once you run the above, if you do
          kubectl exec my-pod -c my-container -- "echo $JPDA_ADDRESS", it will print *:8000



          It is important to understand, that Helm simply manages templates for Kubernetes objects. Helm's deployment.yaml produces a YAML spec for Kube object of kind: Deployment. So, if you want to know every possible field you can specify in deployment.yaml, you can run kubectl explain deployment --recursive anywhere you have kubectl running.






          share|improve this answer



























          • Will this method application when my pods are running in azure dev spaces and not in default namespace

            – sushant kumar
            Mar 27 at 4:00











          • @sushantkumar while I personally have no experience with Azure, the whole purpose of Kubernetes / Helm is to behave the same everywhere, otherwise it has failed its mission. This method definitely works in Google's GCP and in AWS and in barebone Kube and in docker-for-desktop on developer's machines. I am sure Azure will follow suit.

            – Alex Pakka
            Mar 27 at 4:10






          • 1





            Also, pleas don't forget to upvote if it works for you (when it does, and if you find it helpful, no rush).

            – Alex Pakka
            Mar 27 at 4:10















          2














          In deployment.yaml
          at the path
          spec.template.spec.containers



          It goes something like this



          ...
          spec:
          containers:
          - name: .Chart.Name
          image: " .Values.image.repository : .Values.image.tag "
          imagePullPolicy: .Values.image.pullPolicy
          env:
          - name: JPDA_ADDRESS
          value: '*:8000'
          ...


          So, once you run the above, if you do
          kubectl exec my-pod -c my-container -- "echo $JPDA_ADDRESS", it will print *:8000



          It is important to understand, that Helm simply manages templates for Kubernetes objects. Helm's deployment.yaml produces a YAML spec for Kube object of kind: Deployment. So, if you want to know every possible field you can specify in deployment.yaml, you can run kubectl explain deployment --recursive anywhere you have kubectl running.






          share|improve this answer



























          • Will this method application when my pods are running in azure dev spaces and not in default namespace

            – sushant kumar
            Mar 27 at 4:00











          • @sushantkumar while I personally have no experience with Azure, the whole purpose of Kubernetes / Helm is to behave the same everywhere, otherwise it has failed its mission. This method definitely works in Google's GCP and in AWS and in barebone Kube and in docker-for-desktop on developer's machines. I am sure Azure will follow suit.

            – Alex Pakka
            Mar 27 at 4:10






          • 1





            Also, pleas don't forget to upvote if it works for you (when it does, and if you find it helpful, no rush).

            – Alex Pakka
            Mar 27 at 4:10













          2












          2








          2







          In deployment.yaml
          at the path
          spec.template.spec.containers



          It goes something like this



          ...
          spec:
          containers:
          - name: .Chart.Name
          image: " .Values.image.repository : .Values.image.tag "
          imagePullPolicy: .Values.image.pullPolicy
          env:
          - name: JPDA_ADDRESS
          value: '*:8000'
          ...


          So, once you run the above, if you do
          kubectl exec my-pod -c my-container -- "echo $JPDA_ADDRESS", it will print *:8000



          It is important to understand, that Helm simply manages templates for Kubernetes objects. Helm's deployment.yaml produces a YAML spec for Kube object of kind: Deployment. So, if you want to know every possible field you can specify in deployment.yaml, you can run kubectl explain deployment --recursive anywhere you have kubectl running.






          share|improve this answer















          In deployment.yaml
          at the path
          spec.template.spec.containers



          It goes something like this



          ...
          spec:
          containers:
          - name: .Chart.Name
          image: " .Values.image.repository : .Values.image.tag "
          imagePullPolicy: .Values.image.pullPolicy
          env:
          - name: JPDA_ADDRESS
          value: '*:8000'
          ...


          So, once you run the above, if you do
          kubectl exec my-pod -c my-container -- "echo $JPDA_ADDRESS", it will print *:8000



          It is important to understand, that Helm simply manages templates for Kubernetes objects. Helm's deployment.yaml produces a YAML spec for Kube object of kind: Deployment. So, if you want to know every possible field you can specify in deployment.yaml, you can run kubectl explain deployment --recursive anywhere you have kubectl running.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 27 at 4:32

























          answered Mar 27 at 3:49









          Alex PakkaAlex Pakka

          6,9452 gold badges34 silver badges61 bronze badges




          6,9452 gold badges34 silver badges61 bronze badges















          • Will this method application when my pods are running in azure dev spaces and not in default namespace

            – sushant kumar
            Mar 27 at 4:00











          • @sushantkumar while I personally have no experience with Azure, the whole purpose of Kubernetes / Helm is to behave the same everywhere, otherwise it has failed its mission. This method definitely works in Google's GCP and in AWS and in barebone Kube and in docker-for-desktop on developer's machines. I am sure Azure will follow suit.

            – Alex Pakka
            Mar 27 at 4:10






          • 1





            Also, pleas don't forget to upvote if it works for you (when it does, and if you find it helpful, no rush).

            – Alex Pakka
            Mar 27 at 4:10

















          • Will this method application when my pods are running in azure dev spaces and not in default namespace

            – sushant kumar
            Mar 27 at 4:00











          • @sushantkumar while I personally have no experience with Azure, the whole purpose of Kubernetes / Helm is to behave the same everywhere, otherwise it has failed its mission. This method definitely works in Google's GCP and in AWS and in barebone Kube and in docker-for-desktop on developer's machines. I am sure Azure will follow suit.

            – Alex Pakka
            Mar 27 at 4:10






          • 1





            Also, pleas don't forget to upvote if it works for you (when it does, and if you find it helpful, no rush).

            – Alex Pakka
            Mar 27 at 4:10
















          Will this method application when my pods are running in azure dev spaces and not in default namespace

          – sushant kumar
          Mar 27 at 4:00





          Will this method application when my pods are running in azure dev spaces and not in default namespace

          – sushant kumar
          Mar 27 at 4:00













          @sushantkumar while I personally have no experience with Azure, the whole purpose of Kubernetes / Helm is to behave the same everywhere, otherwise it has failed its mission. This method definitely works in Google's GCP and in AWS and in barebone Kube and in docker-for-desktop on developer's machines. I am sure Azure will follow suit.

          – Alex Pakka
          Mar 27 at 4:10





          @sushantkumar while I personally have no experience with Azure, the whole purpose of Kubernetes / Helm is to behave the same everywhere, otherwise it has failed its mission. This method definitely works in Google's GCP and in AWS and in barebone Kube and in docker-for-desktop on developer's machines. I am sure Azure will follow suit.

          – Alex Pakka
          Mar 27 at 4:10




          1




          1





          Also, pleas don't forget to upvote if it works for you (when it does, and if you find it helpful, no rush).

          – Alex Pakka
          Mar 27 at 4:10





          Also, pleas don't forget to upvote if it works for you (when it does, and if you find it helpful, no rush).

          – Alex Pakka
          Mar 27 at 4:10






          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55369448%2fwhere-to-defining-environmental-variable-in-helm-charts%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript