简体   繁体   English

Kubernetes-Helm Charts 指向本地 docker 镜像

[英]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我玩弄室内用minikube和我在一个配置values.yaml这样定义

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我希望它指向一个本地mysql/docker/dockerfile映像,该映像位于本地mysql/docker/dockerfile我不确定语法是什么在文档中找不到它

Check the list of images on your local machine with docker image ls .使用docker image ls检查本地机器上的图像列表。 Let's say rajesh12/mysql is the image you want to use:假设rajesh12/mysql是您要使用的图像:

image:
  repository: rajesh12/mysql

This is a late reply.这是一个迟到的回复。 But I solved it by this way...但是我是这样解决的...

image:
  registry: <docker_username>
  name: <docker_image_name>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 kubernetes-helm:使用xfs格式格式化do-block-storage - kubernetes-helm: formating do-block-storage with xfs format 使用Windows的docker在本地持久卷上掌舵的Kubernetes - Kubernetes with helm on local persistent volume with docker for Windows 在 kubernetes 集群上安装 helm chart - Installing helm charts on kubernetes cluster Helm(或Kubernetes)是否缓存图表? - Does Helm (or Kubernetes) caches charts? Kubernetes无法识别本地docker映像 - Local docker image not recognized by Kubernetes 如何将独立的mysql容器作为依赖项传递给kubernetes-helm中的服务? - How do i pass a standalone mysql container as a dependency to a service in kubernetes-helm? 如何将抓取目标添加到安装了 Kubernetes-Helm 的 Prometheus 服务器? - How do you add scrape targets to a Prometheus server that was installed with Kubernetes-Helm? 由 Kubernetes-Helm 创建的自定义 JSON 文件在卷曲/浏览时被切断 - Custom JSON file created by Kubernetes-Helm gets cut off when curling/browsing to it Kubernetes / Helm-通过部署获取Docker映像版本 - Kubernetes/Helm - Obtaining Docker image version from deployment 与 Docker 映像相比,使用 Helm 图表部署到 Kubernetes 集群有哪些优势? - What are the advantages of deploying with Helm chart over Docker image to a Kubernetes cluster?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM