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

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현