Home / Companies / Octopus Deploy / Blog / Post Details
Content Deep Dive

Using local images with minikube

Blog post from Octopus Deploy

Post Details
Company
Date Published
Author
Matthew Casperson
Word Count
683
Language
English
Hacker News Points
-
Summary

Minikube enables DevOps teams to develop Kubernetes applications locally by providing a local Kubernetes cluster, and while it can download Docker images from external registries, deploying locally built images requires loading them into the minikube cluster. The process involves building Docker images, such as the sample Octopus underwater app, and pushing them to minikube using commands like `minikube image load`. Deploying these images requires a YAML configuration file that specifies deployment details, such as the image and image pull policy. It's crucial to understand the image pull policy, especially when using the "latest" tag, as the default policy may cause Kubernetes to attempt downloading a non-existent image from the Docker registry, resulting in an ImagePullBackOff error. To avoid this, the image pull policy should be set to "Never" or "IfNotPresent," or a specific image tag should be used to ensure proper deployment in the minikube environment.