mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-31 17:19:17 -03:30
Refactor download role (#5697)
* download file * download containers * fix push image to nodes * pull if none image on host * fix * improve docker image tag checks. do not pull already cached images * rebase fix merge conflict * add support download_run_once when upgrade and scale cluster add some test with download_run_once * set default values to temp flag for every download cycle * add save,load abilty for containerd and crio when download_run_once=true * return redefine image save/load command to set_docker_image_facts.yml * move set command to set_container_facts * ctr in containerd_bin_dir * fix order of ctr image export arguments * temporary disable download_run_once for containerd and crio due https://github.com/containerd/containerd/issues/4075 * remove unused files * fix strict yaml linter warning and errors * refactor logical conditions to pull and cache container images * remove comment due lint check * document role * remove image_load_on_localhost, because cached images are always loaded to docker on remote sites * remove XXX from debug output
This commit is contained in:
committed by
GitHub
parent
62b418cd16
commit
66408a87ee
14
tests/files/packet_centos7-calico-ha-once-localhost.yml
Normal file
14
tests/files/packet_centos7-calico-ha-once-localhost.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
# Instance settings
|
||||
cloud_image: centos-7
|
||||
mode: ha
|
||||
|
||||
# Kubespray settings
|
||||
kube_network_plugin: calico
|
||||
download_localhost: true
|
||||
download_run_once: true
|
||||
deploy_netchecker: true
|
||||
dns_min_replicas: 1
|
||||
typha_enabled: true
|
||||
calico_backend: kdd
|
||||
typha_secure: true
|
||||
@@ -5,7 +5,7 @@ mode: ha
|
||||
|
||||
# Kubespray settings
|
||||
kube_network_plugin: calico
|
||||
download_localhost: true
|
||||
download_localhost: false
|
||||
download_run_once: true
|
||||
deploy_netchecker: true
|
||||
dns_min_replicas: 1
|
||||
|
||||
10
tests/files/packet_debian9-calico-upgrade-once.yml
Normal file
10
tests/files/packet_debian9-calico-upgrade-once.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
# Instance settings
|
||||
cloud_image: debian-9
|
||||
mode: default
|
||||
|
||||
# Kubespray settings
|
||||
kube_network_plugin: calico
|
||||
deploy_netchecker: true
|
||||
dns_min_replicas: 1
|
||||
download_run_once: true
|
||||
29
tests/files/packet_ubuntu18-flannel-containerd-once.yml
Normal file
29
tests/files/packet_ubuntu18-flannel-containerd-once.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
# Instance settings
|
||||
cloud_image: ubuntu-1804
|
||||
mode: ha
|
||||
vm_memory: 1600Mi
|
||||
|
||||
# Kubespray settings
|
||||
kubeadm_control_plane: true
|
||||
kubeadm_certificate_key: 3998c58db6497dd17d909394e62d515368c06ec617710d02edea31c06d741085
|
||||
kube_proxy_mode: iptables
|
||||
kube_network_plugin: flannel
|
||||
helm_enabled: true
|
||||
kubernetes_audit: true
|
||||
container_manager: containerd
|
||||
etcd_events_cluster_enabled: true
|
||||
local_volume_provisioner_enabled: true
|
||||
etcd_deployment_type: host
|
||||
deploy_netchecker: true
|
||||
dns_min_replicas: 1
|
||||
kube_encrypt_secret_data: true
|
||||
ingress_nginx_enabled: true
|
||||
cert_manager_enabled: true
|
||||
# Disable as health checks are still unstable and slow to respond.
|
||||
metrics_server_enabled: false
|
||||
metrics_server_kubelet_insecure_tls: true
|
||||
kube_token_auth: true
|
||||
kube_basic_auth: true
|
||||
enable_nodelocaldns: false
|
||||
download_run_once: true
|
||||
Reference in New Issue
Block a user