mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-10 14:09:34 -02:30
install etcdctl to host when etcd deployment type is kubeadm (#6857)
* create a wrapper script with pki options * supports all kubespray managed container engines Co-authored-by: Hans Feldt <hafe@users.noreply.github.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
include_tasks: "{{ role_path }}/../../etcd/tasks/install_host.yml"
|
||||
vars:
|
||||
etcd_cluster_setup: true
|
||||
when: etcd_deployment_type == "host"
|
||||
when: etcd_deployment_type == "host" and not etcd_kubeadm_enabled
|
||||
|
||||
- name: Ensure etcdctl binary is installed
|
||||
include_tasks: "{{ role_path }}/../../etcd/tasks/install_etcdctl_docker.yml"
|
||||
@@ -24,4 +24,9 @@
|
||||
etcd_cluster_setup: true
|
||||
etcd_retries: 4
|
||||
when:
|
||||
- etcd_deployment_type == "docker"
|
||||
- etcd_deployment_type == "docker" and not etcd_kubeadm_enabled
|
||||
|
||||
- name: Ensure etcdctl script is installed
|
||||
import_role:
|
||||
name: etcdctl
|
||||
when: etcd_kubeadm_enabled
|
||||
|
||||
Reference in New Issue
Block a user