Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kubernetes-Helm Charts pointing to a local docker image

I'm playing around wiht minikube and I have a config in my values.yaml defined like this

image:
  repository: mydocker.jfrog.io/mysql

I want it to point a to a local docker image that lives locally mysql/docker/dockerfile I'm not sure what the syntax is can't find it in the docs

like image 500
edmamerto Avatar asked Jul 01 '19 16:07

edmamerto


People also ask

Can Kubernetes use local Docker image?

Kubernetes use local docker image is nothing but create Kubernetes image locally and deploy the same on Kubernetes cluster locally; the first step is to deploy our application on Kubernetes to build the docker image. Next, we need to use minikube to run the Kubernetes in our local environment.

How do I get Kubernetes to pull a local image?

Required image pull If you would like to always force a pull, you can do one of the following: Set the imagePullPolicy of the container to Always . Omit the imagePullPolicy and use :latest as the tag for the image to use; Kubernetes will set the policy to Always when you submit the Pod.

Where are Helm charts stored locally?

Helm charts are stored in chart repositories that are hosted in container registries, either on a local system or online.

What is the difference between Docker image and Helm chart?

Helm is a package manager, it uses Docker images as part of charts. Helm charts have configs for Kubernetes and it uses Docker images which are built from Dockerfile.


1 Answers

Check the list of images on your local machine with docker image ls. Let’s say rajesh12/mysql is the image you want to use:

image:
  repository: rajesh12/mysql
like image 101
rajesh-nitc Avatar answered Sep 20 '22 05:09

rajesh-nitc