I was trying to install the
repository-s3 plugin on my Kubernetes cluster using initContainers. However, the pod seems to get stuck when trying to install the plugin. So I removed the initContainer and went inside the pod when it started, and tried to install it manually, just for debugging purposes. But it had the same result.
I'm using ECK version 1.1.2 and this is my Elastic yaml file:
apiVersion: elasticsearch.k8s.elastic.co/v1 kind: Elasticsearch metadata: name: project spec: version: 7.8.0 nodeSets: - name: default count: 1 config: discovery.type: single-node node.master: true node.data: true node.ingest: true podTemplate: spec: initContainers: - name: sysctl securityContext: privileged: true command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144'] - name: install-plugins # For backups command: ['sh', '-c', '/usr/share/elasticsearch/bin/elasticsearch-plugin install repository-s3']
This is the output from the logs of the initContainer:
-> Installing repository-s3 -> Downloading repository-s3 from elastic [=================================================] 100%??
It stays stuck there, and doesn't exit.
Anyone that has similar problems?
Thanks in advance!