最近在搞 k8s来安装 ElasticSearch 集群
参加wiki一步步来
https://github.com/pires/kubernetes-elasticsearch-cluster#pre-requisites
首先碰到的坑,version不兼容
es-master.yaml
es-ingest.yaml
这两个文件已启动就报错, 需要替换
-apiVersion: apps/v1beta1
+apiVersion: extensions/v1beta1
还有就是,true 改成false
securityContext:
privileged: false
再接下来
kubernetes-elasticsearch-cluster]$ kubectl create -f es-ingest.yaml
error: error validating "es-ingest.yaml": error validating data: found invalid field initContainers for v1.PodSpec; if you choose to ignore these errors, turn validation off with --validate=false
需要将 es-ingest.yaml 里面的
initContainers 替换成 containers