在GCE(kubernetes)上设置环境变量 [英] Setting Environment Variables on GCE (kubernetes)

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

问题描述

很抱歉出现noob问题,但来自

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

要使用Elasticsearch和Kibana进行集群日志记录,您应该设置 以下环境变量,如下所示:

To use Elasticsearch and Kibana for cluster logging you should set the following environment variable as shown below:

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)上设置环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆