Add some warning information about deprecating non-kubeadm code (#3759)
This commit is contained in:
parent
b15e685a0b
commit
07d2f1aa36
5 changed files with 43 additions and 0 deletions
13
cluster.yml
13
cluster.yml
|
@ -13,6 +13,19 @@
|
|||
vars:
|
||||
ansible_connection: local
|
||||
|
||||
- hosts: localhost
|
||||
tasks:
|
||||
- name: deploy warning for non kubeadm
|
||||
debug:
|
||||
msg: "DEPRECATION: non-kubeadm deployment is deprecated from v2.9. Will be removed in next release."
|
||||
when: not kubeadm_enabled and not skip_non_kubeadm_warning
|
||||
|
||||
- name: deploy cluster for non kubeadm
|
||||
pause:
|
||||
prompt: "Are you sure you want to deploy cluster using the deprecated non-kubeadm mode."
|
||||
echo: no
|
||||
when: not kubeadm_enabled and not skip_non_kubeadm_warning
|
||||
|
||||
- hosts: bastion[0]
|
||||
gather_facts: False
|
||||
roles:
|
||||
|
|
|
@ -48,6 +48,9 @@ bin_dir: /usr/local/bin
|
|||
## kubeadm deployment mode
|
||||
kubeadm_enabled: true
|
||||
|
||||
# Skip alert information
|
||||
skip_non_kubeadm_warning: false
|
||||
|
||||
## Set these proxy values in order to update package manager and docker daemon to use proxies
|
||||
#http_proxy: ""
|
||||
#https_proxy: ""
|
||||
|
|
13
scale.yml
13
scale.yml
|
@ -13,6 +13,19 @@
|
|||
vars:
|
||||
ansible_connection: local
|
||||
|
||||
- hosts: localhost
|
||||
tasks:
|
||||
- name: deploy warning for non kubeadm
|
||||
debug:
|
||||
msg: "DEPRECATION: non-kubeadm deployment is deprecated from v2.9. Will be removed in next release."
|
||||
when: not kubeadm_enabled and not skip_non_kubeadm_warning
|
||||
|
||||
- name: deploy cluster for non kubeadm
|
||||
pause:
|
||||
prompt: "Are you sure you want to deploy cluster using the deprecated non-kubeadm mode."
|
||||
echo: no
|
||||
when: not kubeadm_enabled and not skip_non_kubeadm_warning
|
||||
|
||||
- hosts: bastion[0]
|
||||
gather_facts: False
|
||||
roles:
|
||||
|
|
|
@ -7,6 +7,7 @@ mode: ha
|
|||
# Deployment settings
|
||||
kube_network_plugin: flannel
|
||||
kubeadm_enabled: false
|
||||
skip_non_kubeadm_warning: true
|
||||
deploy_netchecker: true
|
||||
dns_min_replicas: 1
|
||||
cloud_provider: gce
|
||||
|
|
|
@ -13,6 +13,19 @@
|
|||
vars:
|
||||
ansible_connection: local
|
||||
|
||||
- hosts: localhost
|
||||
tasks:
|
||||
- name: deploy warning for non kubeadm
|
||||
debug:
|
||||
msg: "DEPRECATION: non-kubeadm deployment is deprecated from v2.9. Will be removed in next release."
|
||||
when: not kubeadm_enabled and not skip_non_kubeadm_warning
|
||||
|
||||
- name: deploy cluster for non kubeadm
|
||||
pause:
|
||||
prompt: "Are you sure you want to deploy cluster using the deprecated non-kubeadm mode."
|
||||
echo: no
|
||||
when: not kubeadm_enabled and not skip_non_kubeadm_warning
|
||||
|
||||
- hosts: bastion[0]
|
||||
gather_facts: False
|
||||
roles:
|
||||
|
|
Loading…
Reference in a new issue