Seems like an obvious thing do. Very common in other similar systems. But I'm not seeing how to do it in kubernetes. What am I missing?
Asked
Active
Viewed 846 times
2
-
your cluster should have access to your locally managed registry – Siddique Ahmad Oct 11 '21 at 22:04
-
You create a [deployment](https://kubernetes.io/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro/) and point it to your local image / cluster. – James Oct 11 '21 at 22:06
-
Not really, no. These all seem to be taking the image from a local registry, not the local file system. AFAICT, kubernetes simply can't do this. – agapanthusblue Oct 13 '21 at 15:58
2 Answers
-1
You can try running a local secure registry, creating a pod (using a YAML
file) from a Docker image in a local registry:
See this link.

J. Scott Elblein
- 4,013
- 15
- 58
- 94
-
Again, that's from a local registry, not the local file system. – agapanthusblue Oct 13 '21 at 15:57
-1
Assuming that by a kubernetes job you refer to an app you can simply do so by creating a deployment following this tutorial.

Jakub Siemaszko
- 668
- 3
- 8
-
That appears to only take images from a local registry. I'm looking for a way to take them from the local file system. – agapanthusblue Oct 13 '21 at 15:56
-
@agapanthusblue as a general rule a container can't access the host's filesystem, but you can take advantage of one of the storage methods presented here: https://docs.docker.com/storage/. – Jakub Siemaszko Oct 19 '21 at 13:15