kubesphere-sigs / ks

ks is a tool that makes it be easy to work with KubeSphere.
MIT License
22 stars 16 forks source link

Add registry mirror support #259

Closed LinuxSuRen closed 2 years ago

ks-ci-bot commented 2 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: LinuxSuRen

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kubesphere-sigs/ks/blob/master/OWNERS)~~ [LinuxSuRen] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
seanly commented 2 years ago

test

steps:

  1. checkout code
  2. build: go mod vendor; go build -o main
  3. create cluster ./main install k3d -r oes
  4. check registry and cluster configure

output:

  1. create env ok image

  2. check k3s node config image configuration conflict found, the above picture is already used as a cache repository for docker.io at position 1, so it cannot be used as a local-registry service

Proposed

Similar to the figure below, create a k3d-xxx-local as the local-registry, and create a k3d-xxx-docker as the dockerhub proxy cache service。

2c131a4cebbdbee35d8b3514837f0cf

Here is a patch file 0001-add-local-registry.zip