1

I am trying to create a Kubernetes Deployment out of a third party library related to my other question.

This library requires pre-pulled docker images and will temporarily launch the containers as sibling docker containers. How do I pre-pull docker images into a cloud cluster? I am using AWS and kops.

In Minikube, I read to do eval $(minikube docker-env), but I am not sure how to do translate this to non-Minikube.

  • Would a k8s job to run docker pull ... on each node fit the need ? – Tensibai Nov 8 '17 at 14:22
  • Cool, sounds hopeful! I was looking into that naively yesterday but wasn't sure if that would work. I will look into job documentation so I hope I find the answer, but since I have the question now, can a job be forced to run on all nodes and any new nodes that may get autoscaled? – rys Nov 8 '17 at 14:25
  • in this case a deployment running this job should do the work I think. You may have a specific deployment of a pod just doing this docker pull every 'n' hours maybe ? (But it sounds like your third party tool should work in isolation and not within a cluster anyway) – Tensibai Nov 8 '17 at 14:29
  • Makes sense. I may throw in the towel, too many problems + not enough knowledge + is not a good fit. I really just wanted this third party docker container to auto heal. – rys Nov 8 '17 at 14:34
  • Well a cronjob checking the tool state (pid test/docker ps/curl/whatever can tell it works) and relaunching it in case of death sounds a good fit.monit could be a simpler way to relaunch this container also. – Tensibai Nov 8 '17 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.