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:
It is hard to tell from the data you have shared what is going wrong with the plugin installation. Did you manage to solve the issue? I assume you have verified that network access works and the output from the init container does indicate that it had made some progress.
Because installing plugins via init containers has downsides like the one you have experienced (there are others like the fact that we have to repeat the process on every Pod and everytime we recreate a Pod due to configuration changes) we generally recommend to use custom Docker images for production use. We have documented this approach here: https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-custom-images.html
Thanks for your response.
I've deleted the ECK cluster, because I had to change some other things. After trying it again, but adding the --batch option, it seemed to work. I have no idea why and if it's related to the new cluster or to the --batch option. But it works!
And yeah, I've read about the custom images. I'll take a look at that. The only main advantage about the initContainers is that everything is done in the same yaml file instead of creating custom images and pulling them. But I'll definitely look into them!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.