How can I set my own environment variables whose scope is at cluster level?

26 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Manoj Khotele

ungelesen,
16.09.2016, 03:46:1916.09.16
an Kubernetes user discussion and Q&A
Hello,

I am aware that I can configure environment variables and their values in deployment files.
I am also aware that I can use environment variables made available by kubernetes from any of the deployments.
I am also aware that I can expand environment variables using 'command'.

But now I want to specify my own environment variables which would be available to all the deployments in the cluster. How can I achieve it?

Best Regards,
Manoj

Shun Yanaura

ungelesen,
16.09.2016, 05:38:4316.09.16
an kubernet...@googlegroups.com
Hi Manoj,

You could do what you want by ConfigMap. Follow the document: http://kubernetes.io/docs/user-guide/configmap/.

Best Regards,
Shun

--
You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Manoj Khotele

ungelesen,
16.09.2016, 06:00:3216.09.16
an kubernet...@googlegroups.com

Thanks Shun. This is what I had wanted.


On Fri, Sep 16, 2016, 3:08 PM Shun Yanaura <shun-y...@dac.co.jp> wrote:
Hi Manoj,

You could do what you want by ConfigMap. Follow the document: http://kubernetes.io/docs/user-guide/configmap/.

Best Regards,
Shun

On Fri, Sep 16, 2016 at 4:46 PM, Manoj Khotele <manojkuma...@gmail.com> wrote:
Hello,

I am aware that I can configure environment variables and their values in deployment files.
I am also aware that I can use environment variables made available by kubernetes from any of the deployments.
I am also aware that I can expand environment variables using 'command'.

But now I want to specify my own environment variables which would be available to all the deployments in the cluster. How can I achieve it?

Best Regards,
Manoj

--
You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-use...@googlegroups.com.

To post to this group, send email to kubernet...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kubernetes-users/z0k3hLA0w_8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kubernetes-use...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten