I am trying to deploy Elasticsearch cluster to AWS EKS. I have this spec:
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: datasource
spec:
version: 7.14.0
nodeSets:
- name: node
count: 3
config:
xpack.security.http.ssl.enabled: false
xpack.security.transport.ssl.enabled: false
xpack.security.enabled: false
podTemplate:
spec:
initContainers:
- name: sysctl
securityContext:
privileged: true
command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144']
containers:
- name: elasticsearch
readinessProbe:
exec:
command:
- bash
- -c
- /mnt/elastic-internal/scripts/readiness-probe-script.sh
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 12
successThreshold: 1
timeoutSeconds: 12
env:
- name: READINESS_PROBE_TIMEOUT
value: "30"
volumeClaimTemplates:
- metadata:
name: elasticsearch-data
spec:
accessModes:
- ReadWriteOnce
storageClassName: ebs-sc
resources:
requests:
storage: 1024Gi
But after apply this spec, I got this error message:
{"type": "server", "timestamp": "2021-10-11T05:04:50,470Z", "level": "INFO", "component": "o.e.c.r.a.AllocationService", "cluster.name": "datasource", "node.name": "datasource-es-node-0", "message": "Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).", "cluster.uuid": "pzd0YJS8RQyVlimhmN-p9A", "node.id": "vDvCWlv_SOOfecYzY8ZoAw" }
{"timestamp": "2021-10-11T05:04:52+00:00", "message": "readiness probe failed", "curl_rc": "35"}
{"timestamp": "2021-10-11T05:04:57+00:00", "message": "readiness probe failed", "curl_rc": "35"}
{"timestamp": "2021-10-11T05:05:02+00:00", "message": "readiness probe failed", "curl_rc": "35"}
{"timestamp": "2021-10-11T05:05:07+00:00", "message": "readiness probe failed", "curl_rc": "35"}
{"timestamp": "2021-10-11T05:05:12+00:00", "message": "readiness probe failed", "curl_rc": "35"}
{"timestamp": "2021-10-11T05:05:17+00:00", "message": "readiness probe failed", "curl_rc": "35"}
{"timestamp": "2021-10-11T05:05:22+00:00", "message": "readiness probe failed", "curl_rc": "35"}
You can see it shows GREEN first but show readiness probe failed
afterward. How can I solve this issue?