EFK搭建

EFK搭建

https://my.oschina.net/newlife111/blog/714574

http://rootsongjc.github.io/blogs/kubernetes-fluentd-elasticsearch-installation/


坑1:

Error from server: the server does not allow access to the requested resource


执行kubectl create -f xxx.yaml(例如es-controller.yaml  es-service.yaml  fluentd-es-ds.yaml

kibana-controller.yaml  kibana-service.yaml)命令时,出现Error from server: the server does not

allow access to the requested resource,

出现这个错误半分之百是网络问题,配置了大网代理(http_proxy以及https_proxy)之后,可以从外网下载

东西,但是集群之间是走小网的(master配了大网proxy,集群互不认识就会报上面这个错误),kube的

master节点只是管理节点,上面不跑任务的,即不跑Docker,kubectl create命令master节点是不需要连外

网的,各个slave节点能连到外网(设置代理)就可以了,只有slave才需要下载镜像,kubectl create只是

由master通知各个slave去下载镜像。

Solution:

如果master需要连接外网,比如wget一个yaml文件,那么就设置proxy,否则执行命令unset

http_proxy;unset https_proxy,如果需要再设置proxy。

你可能感兴趣的:(EFK搭建)