本文介绍了在GCE(kubernetes)上设置环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉出现noob问题,但来自 https://github.com/kubernetes/kubernetes/blob/release-1.1/docs/getting-started-guides/logging-elasticsearch.md 它说:

Sorry for the noob question but from https://github.com/kubernetes/kubernetes/blob/release-1.1/docs/getting-started-guides/logging-elasticsearch.mdit says:

KUBE_LOGGING_DESTINATION=elasticsearch

在哪里以及如何设置此Env Var?我以为我应该使用

Where and how do I set this Env Var ? I was thinking that I should use

gcloud container clusters create

并在此处传递选项,但没有选项...

and pass the options there but there is no options...

推荐答案

该文档适用于通过GCE的开源Shell脚本启动集群的用户.当前不支持Elasticsearch作为Google Container Engine集群创建命令的一部分.创建集群后,可以将其手动添加到集群中.

That documentation is for users that are turning up clusters via the open source shell scripts for GCE. Elasticsearch isn't currently supported as part of the cluster creation commands for Google Container Engine. You can manually add it to your cluster after the cluster has been created.

这篇关于在GCE(kubernetes)上设置环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 12:57