Skip to content
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

update kubespray #960

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions docs/en/usage/airgap.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,12 @@ debian_repo: "{{ minio_address }}"
ubuntu_repo: "{{ minio_address }}"

### If containerd uses a non-secure HTTP authentication-free method, it needs to be configured:
containerd_insecure_registries:
"{{ registry_address }}": "http://{{ registry_address }}"
containerd_registries_mirrors:
- prefix: "{{ registry_address }}"
mirrors:
- host: "http://{{ registry_address }}"
capabilities: ["pull", "resolve"]
skip_verify: true

### Required if docker uses non-secure HTTP authentication-free methods:
docker_insecure_registries:
Expand Down
8 changes: 6 additions & 2 deletions docs/zh/usage/airgap.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,12 @@ debian_repo: "{{ minio_address }}"
ubuntu_repo: "{{ minio_address }}"

### 如果 containerd 采用非安全 HTTP 免认证方式, 则需要配置:
containerd_insecure_registries:
"{{ registry_address }}": "http://{{ registry_address }}"
containerd_registries_mirrors:
- prefix: "{{ registry_address }}"
mirrors:
- host: "http://{{ registry_address }}"
capabilities: ["pull", "resolve"]
skip_verify: true

### 如果 docker 采用非安全 HTTP 免认证方式, 则需要配置:
docker_insecure_registries:
Expand Down
8 changes: 7 additions & 1 deletion examples/install/3.airgap/VarsConfCM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ data:
docker_containerd_version: "latest"
docker_insecure_registries:
- "{{ registry_host }}"
containerd_insecure_registries:
containerd_insecure_registries: ## kubespray will not support containerd_insecure_registries but containerd_registries_mirrors after v2.23.0
"REGISTRY_HOST:REGISTRY_PORT": "http://{{ registry_host }}"
containerd_registries_mirrors:
- prefix: "REGISTRY_HOST:REGISTRY_PORT"
mirrors:
- host: "http://{{ registry_host }}"
capabilities: ["pull", "resolve"]
skip_verify: true
k8s_image_pull_policy: IfNotPresent
kube_network_plugin: calico
kube_network_plugin_multus: false
Expand Down
6 changes: 6 additions & 0 deletions test/offline-common/vars-conf-cm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ data:
### if containerd uses the non-secure HTTP authentication exemption mode, this parameter is required
containerd_insecure_registries:
"registry_host_key": "http://{{registry_host}}"
containerd_registries_mirrors:
- prefix: "registry_host_key"
mirrors:
- host: "http://{{registry_host}}"
capabilities: ["pull", "resolve"]
skip_verify: true
### if docker uses the non-secure HTTP authentication exemption mode, this parameter is required
docker_insecure_registries:
- "registry_host_key"
Expand Down
6 changes: 6 additions & 0 deletions test/tools/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ var groupVarsYaml = `
container_manager: containerd
containerd_insecure_registries:
"10.6.170.10:5000": "http://10.6.170.10:5000"
containerd_registries_mirrors:
- prefix: "10.6.170.10:5000"
mirrors:
- host: "http://10.6.170.10:5000"
capabilities: ["pull", "resolve"]
skip_verify: true
k8s_image_pull_policy: IfNotPresent
kube_network_plugin: %s
kube_network_plugin_multus: false
Expand Down
2 changes: 1 addition & 1 deletion version.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
kubespray_version: 3b68d63643999647fecc050dae47e34a106a5f22
kubespray_version: 748b0b294d0fc4ae75af0f8cd891c1fd01f50dd5
kubernetes_version: v1.26.7
Loading