Skip to content

Commit

Permalink
Add flag to deploy container engine manually. (kubernetes-sigs#3753)
Browse files Browse the repository at this point in the history
This feature was removed by PR#3061. But change flag manage_docker to deploy_container_engine.
  • Loading branch information
okamototk authored and k8s-ci-robot committed Nov 26, 2018
1 parent a585318 commit 967a042
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
roles:
- { role: kubespray-defaults}
- { role: kubernetes/preinstall, tags: preinstall }
- { role: "container-engine", tags: "container-engine" }
- { role: "container-engine", tags: "container-engine", when: deploy_container_engine|default(true) }
- { role: download, tags: download, when: "not skip_downloads" }
environment: "{{proxy_env}}"

Expand Down
4 changes: 4 additions & 0 deletions inventory/sample/group_vars/all/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ skip_non_kubeadm_warning: false
## Set true to download and cache container
#download_container: true

## Deploy container engine
# Set false if you want to deploy container engine manually.
#deploy_container_engine: true

## Set Pypi repo and cert accordingly
#pyrepo_index: https://pypi.example.com/simple
#pyrepo_cert: /etc/ssl/certs/ca-certificates.crt
2 changes: 1 addition & 1 deletion roles/reset/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
delay: 5
tags:
- crio
when: container_manager == 'crio'
when: container_manager == 'crio' and deploy_container_engine|default(true)

- name: reset | gather mounted kubelet dirs
shell: mount | grep /var/lib/kubelet/ | awk '{print $3}' | tac
Expand Down
2 changes: 1 addition & 1 deletion scale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
roles:
- { role: kubespray-defaults}
- { role: kubernetes/preinstall, tags: preinstall }
- { role: container-engine, tags: "container-engine"}
- { role: container-engine, tags: "container-engine", when: deploy_container_engine|default(true) }
- { role: download, tags: download, when: "not skip_downloads" }
- { role: etcd, tags: etcd, etcd_cluster_setup: false }
- { role: kubernetes/node, tags: node }
Expand Down
2 changes: 1 addition & 1 deletion upgrade-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
roles:
- { role: kubespray-defaults}
- { role: kubernetes/preinstall, tags: preinstall }
- { role: container-engine, tags: "container-engine"}
- { role: container-engine, tags: "container-engine", when: deploy_container_engine|default(true) }
- { role: download, tags: download, when: "not skip_downloads" }
environment: "{{proxy_env}}"

Expand Down

0 comments on commit 967a042

Please sign in to comment.