{"id":18293108,"url":"https://github.com/kubesphere/image-sync-config","last_synced_at":"2025-04-09T08:14:11.511Z","repository":{"id":37886901,"uuid":"320489994","full_name":"kubesphere/image-sync-config","owner":"kubesphere","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-15T09:35:16.000Z","size":50,"stargazers_count":8,"open_issues_count":1,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-13T21:43:03.100Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kubesphere.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-12-11T06:42:24.000Z","updated_at":"2023-01-21T12:52:35.000Z","dependencies_parsed_at":"2024-03-27T17:31:25.035Z","dependency_job_id":null,"html_url":"https://github.com/kubesphere/image-sync-config","commit_stats":{"total_commits":52,"total_committers":19,"mean_commits":2.736842105263158,"dds":0.7884615384615384,"last_synced_commit":"9ee830b6ccaa377191230f38efeed11622e6c42e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubesphere%2Fimage-sync-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubesphere%2Fimage-sync-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubesphere%2Fimage-sync-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubesphere%2Fimage-sync-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kubesphere","download_url":"https://codeload.github.com/kubesphere/image-sync-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247999864,"owners_count":21031046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T14:22:06.205Z","updated_at":"2025-04-09T08:14:11.485Z","avatar_url":"https://github.com/kubesphere.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# image-sync-config\n\nThis repository persists `image-syncer` configuration files that cover all the docker images used by KubeSphere.\n\n## Synchrizition Directions\n\n### From other registries to Kubesphere\n\nWe prefer to push third part images to the KubeSphere namespace on Docker Hub. with less namespace, we can import/export them to a private registry easier. \n\n### From Kubesphere to Aliyun CR\n\nAliyun CR is an alternate way for china users to accelerate image download speed.\n\n## Example\n\n#### Image sync configuration file\n\nImage sync configuration file defines all the image synchronization rules, the following is an example of `images.json`\n\n```yaml\n# Rules of image synchronization, each rule is a kv pair of source(key) and destination(value). \n\n# The source of each rule should not be empty string.\n\n# If you need to synchronize images from one source to multi destinations, add more rules.\n\n# Both source and destination are docker image url (registry/namespace/repository:tag), \n# with or without tags.\n\n# For both source and destination, if destination is not an empty string, \"registry/namespace/repository\" \n# is needed at least.\n\n# You cannot synchronize a whole namespace or a registry but a repository for one rule at most.\n\n# The repository name and tag of destination can be deferent from source, which works like \n# \"docker pull + docker tag + docker push\"\n\n\"quay.io/coreos/kube-rbac-proxy\": \"quay.io/ruohe/kube-rbac-proxy\",\n\"xxxx\":\"xxxxx\",\n\"xxx/xxx/xx:tag1,tag2,tag3\":\"xxx/xxx/xx\"\n\n# If a source doesn't include tags, it means all the tags of this repository need to be synchronized,\n# destination should not include tags at this moment.\n\n# Each source can include more than one tags, which is split by comma (e.g., \"a/b/c:1\", \"a/b/c:1,2,3\").\n\n# If a source includes just one tag (e.g., \"a/b/c:1\"), it means only one tag need to be synchronized;\n# at this moment, if the destination doesn't include a tag, synchronized image will keep the same tag.\n\n# When a source includes more than one tag (e.g., \"a/b/c:1,2,3\"), at this moment,\n# the destination should not include tags, synchronized images will keep the original tags.\n# e.g., \"a/b/c:1,2,3\":\"x/y/z\".\n\n# When a destination is an empty string, source will be synchronized to \"default-registry/default-namespace\"\n# with the same repository name and tags, default-registry and default-namespace can be set by both parameters\n# and environment variable.\n```\n\n#### Authentication file\n\nAuthentication file holds all the authentication information for each registry, the following is an example of `auth.json`\n\n```java\n{               \n    // Authentication fields, each object has a URL as key and a username/password pair as value, \n    // if authentication object is not provided for a registry, access to the registry will be anonymous.\n        \n    \"quay.io\": {        // This \"registry\" or \"registry/namespace\" string should be the same as registry or registry/namespace used below in \"images\" field.  \n                            // The format of \"registry/namespace\" will be more prior matched than \"registry\"\n        \"username\": \"xxx\",             \n        \"password\": \"xxxxxxxxx\",\n        \"insecure\": true         // \"insecure\" field needs to be true if this registry is a http service, default value is false, version of image-syncer need to be later than v1.0.1 to support this field\n    },\n    \"registry.cn-beijing.aliyuncs.com\": {\n        \"username\": \"xxx\",\n        \"password\": \"xxxxxxxxx\"\n    },\n    \"registry.hub.docker.com\": {\n        \"username\": \"xxx\",\n        \"password\": \"xxxxxxxxxx\"\n    },\n    \"quay.io/coreos\": {     // \"registry/namespace\" format is supported after v1.0.3 of image-syncer     \n        \"username\": \"abc\",              \n        \"password\": \"xxxxxxxxx\",\n        \"insecure\": true  \n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubesphere%2Fimage-sync-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkubesphere%2Fimage-sync-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubesphere%2Fimage-sync-config/lists"}