Hi, I've followed the guide https://www.elastic.co/guide/en/cloud-on-k8s/current/index.html and deployed the items described, everything seems to have been correctly created.
However when the Elasticsearch logs are inspected there is a problem connecting to it which looks like it relates to an SSL certificate. Any advice on how to resolve this?
The relevant extract from the Elasticsearch log is as follows:
{"type": "server", "timestamp": "2019-06-03T14:25:47,157+0000", "level": "WARN", "component": "o.e.h.AbstractHttpServerTransport", "cluster.name": "quickstart", "node.name": "quickstart-es-p27jq468fh", "cluster.uuid": "zu07afsqR4Su51dScM6MYw", "node.id": "vmGa6_pnRaqjagdW3v4GeA", "message": "caught exception while handling client http traffic, closing connection Netty4HttpChannel{localAddress=0.0.0.0/0.0.0.0:9200, remoteAddress=/10.244.0.100:45094}" ,
"stacktrace": ["io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate"
The filebeat log is shown below:
2019-06-03T14:27:28.643Z INFO [monitoring] log/log.go:144 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":30310,"time":{"ms":6}},"total":{"ticks":153690,"time":{"ms":47},"value":153690},"user":{"ticks":123380,"time":{"ms":41}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":16},"info":{"ephemeral_id":"bbd1dd2f-d815-4003-829b-182cc3d8ce3f","uptime":{"ms":268890029}},"memstats":{"gc_next":46221424,"memory_alloc":23183016,"memory_total":3499909608}},"filebeat":{"harvester":{"open_files":9,"running":21}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":2,"events":{"active":4117,"retry":50}}},"registrar":{"states":{"current":26}},"system":{"load":{"1":0.23,"15":0.03,"5":0.07,"norm":{"1":0.115,"15":0.015,"5":0.035}}}}}}
2019-06-03T14:27:58.037Z ERROR pipeline/output.go:100 Failed to connect to backoff(elasticsearch(https://quickstart-es.default.svc.cluster.local:9200)): Get https://quickstart-es.default.svc.cluster.local:9200: x509: certificate signed by unknown authority
2019-06-03T14:27:58.037Z INFO pipeline/output.go:93 Attempting to reconnect to backoff(elasticsearch(https://quickstart-es.default.svc.cluster.local:9200)) with 5947 reconnect attempt(s)