I am trying to install java on my splunk search head in kubernetes. As indicated in previous forums, I tried adding the JAVA_VERSION environment variable and set it to openjdk:8 but that does not seem to install java on my kubernetes pod. Can someone guide me to the steps to install java on my pod with the splunk:latest image?
I saw a few ansible scripts which installs java but not in the search head yaml found under https://github.com/splunk/docker-splunk/blob/develop/test_scenarios/kubernetes/3idx1sh1cm-pvc/splunk... which is what I have deployed in my cluster.
You don't "install" java to a Docker container, you build it into the base OS image. If the image you're using does not contain java, then you'll need to update the Makefile and rebuild your image.
Thanks @codebuilder for your response. I am trying to set it up on kubernetes using the splunk/splunk:latest image and I tried setting the JAVA_VERSION env variable to "openjdk:11" but that does not seem to bake java into the image via ansible scripts. Any thoughts on what might be up there?