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;
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
add a comment |
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
add a comment |
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
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
kubernetes kubernetes-helm
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
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
In deployment.yaml
at the pathspec.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 dokubectl 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.
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
In deployment.yaml
at the pathspec.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 dokubectl 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.
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
add a comment |
In deployment.yaml
at the pathspec.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 dokubectl 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.
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
add a comment |
In deployment.yaml
at the pathspec.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 dokubectl 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.
In deployment.yaml
at the pathspec.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 dokubectl 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.
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
add a comment |
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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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