GithubHelp home page GithubHelp logo

调整 Kaniko 构建参数异常 about rainbond HOT 5 CLOSED

anhao avatar anhao commented on June 17, 2024
调整 Kaniko 构建参数异常

from rainbond.

Comments (5)

Issues-translate-bot avatar Issues-translate-bot commented on June 17, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: Adjust Kaniko build parameter exception

from rainbond.

yangkaa avatar yangkaa commented on June 17, 2024

在 5.15.2 版本中,已经弃用了 kaniko 构建,使用 buildkit 构建。如果你需要配置镜像加速。可以参考以下步骤:

  1. 找到镜像仓库的配置文件,通常在 rbd-system 命名空间下,如果你使用的内置镜像仓库,应该是一个 goodrain-me 的 configmap。如果你更换了外部镜像仓库,应该是外部镜像仓库的域名,中间以“-”分割。
kubectl get cm -nrbd-system
  1. 编辑这个 Configmap
kubectl edit cm goodrain-me -nrbd-system
  1. 修改为如下配置,其中 mirrors 是镜像加速的地址
apiVersion: v1
data:
  buildkittoml: |-
    debug = true
    [registry."goodrain.me"]
      http = false
      insecure = true
    [registry."docker.io"]
      mirrors = ["192.168.18.145"]
kind: ConfigMap
metadata:
  name: goodrain.me
  namespace: rbd-system

from rainbond.

Issues-translate-bot avatar Issues-translate-bot commented on June 17, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


In version 5.15.2, kaniko builds have been deprecated in favor of buildkit builds. If you need to configure image acceleration. You can refer to the following steps:

  1. Find the configuration file of the image repository, usually under the rbd-system namespace. If you use the built-in image repository, it should be a goodrain-me configmap. If you have changed the external mirror warehouse, it should be the domain name of the external mirror warehouse, separated by "-" in the middle.
kubectl get cm -nrbd-system
  1. Edit this Configmap
kubectl edit cm goodrain-me -nrbd-system
  1. Modify to the following configuration, where mirrors is the address of mirror acceleration
apiVersion: v1
data:
  buildkittoml: |-
    debug=true
    [registry."goodrain.me"]
      http = false
      insecure=true
    [registry."docker.io"]
      mirrors = ["192.168.18.145"]
kind: ConfigMap
metadata:
  name: goodrain.me
  namespace: rbd-system

from rainbond.

ZhangSetSail avatar ZhangSetSail commented on June 17, 2024

如果没有其他问题,该issues将在明天关闭

from rainbond.

Issues-translate-bot avatar Issues-translate-bot commented on June 17, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


If there are no other issues, the issues will be closed tomorrow

from rainbond.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.