K8S上部署ES集群报错
[root@k8s-master01 ~]# kubectl logs -f elasticsearch-logging-1 -n kube-system
Exception in thread "main" java.lang.RuntimeException: starting java failed with [137]
output:
error:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
提示错误说OpenJDK 64位服务器VM警告:选项useConMarkSweepGC在9.0版本中已被弃用,并可能在将来的版本中被删除。
# 解决
更改JDK版本也无效
后面是把虚拟机的内存增加到4g,PUC增加到4个得以正常启动es集群
[root@k8s-master01 ~]# kubectl get pod -n kube-system elasticsearch-logging-0
NAME READY STATUS RESTARTS AGE
elasticsearch-logging-0 1/1 Running 0 9m7s