New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating container images registry is supported #955
Conversation
cmd/ctl/init/init_registry.go
Outdated
@@ -0,0 +1,67 @@ | |||
/* | |||
Copyright 2020 The KubeSphere Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should 2021 or 2022 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Has been changed to 2022.
e93f845
to
0aaca2c
Compare
pkg/binaries/tasks.go
Outdated
func (k *RegistryPackageDownload) Execute(runtime connector.Runtime) error { | ||
arch := runtime.GetHostsByRole(common.Registry)[0].GetArch() | ||
|
||
packageDir := filepath.Join(runtime.GetWorkDir(), arch) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you think modifying the path as kubekey/registry/amd64/xxxx.tar.gz
? That will be the same as the kk k8s binaries path(kubekey/v1.21.5/amd64/xxxx.tar.gz
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not recommended to put it in the k8s version directory. If there are multiple versions in the offline package, the files will be saved repeatedly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these files (helm / etcd / cni / docker / crictl ...) should also be stored in a separate directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not recommended to put it in the k8s version directory. If there are multiple versions in the offline package, the files will be saved repeatedly.
I mean put it in a dir which named registry
not in the k8s version dir.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Signed-off-by: pixiake <guofeng@yunify.com>
/lgtm |
LGTM label has been added. Git tree hash: 59d35df3975b869b1d5b622d22357fdc1007b8d5
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 24sama, pixiake 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:
Approvers can indicate their approval by writing |
/cherrypick release-2.0 |
@24sama: new pull request created: #979 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What does this PR do ?
Support installation of container images registry (
docker registry
orharbor
) using kubekey.How to use ?
Initialize a local images registry.
Add
registry
tospec.roleGroups
of the configuration file.example:
Signed-off-by: pixiake guofeng@yunify.com