mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
Add option to [not] install coredns via Kubespray
This commit is contained in:
@@ -20,7 +20,7 @@ coredns_default_zone_cache_block: |
|
|||||||
coredns_pod_disruption_budget: false
|
coredns_pod_disruption_budget: false
|
||||||
# value for coredns pdb
|
# value for coredns pdb
|
||||||
coredns_pod_disruption_budget_max_unavailable: "30%"
|
coredns_pod_disruption_budget_max_unavailable: "30%"
|
||||||
|
deploy_coredns: true
|
||||||
# coredns_additional_configs adds any extra configuration to coredns
|
# coredns_additional_configs adds any extra configuration to coredns
|
||||||
# coredns_additional_configs: |
|
# coredns_additional_configs: |
|
||||||
# whoami
|
# whoami
|
||||||
|
|||||||
@@ -22,7 +22,9 @@
|
|||||||
- coredns
|
- coredns
|
||||||
vars:
|
vars:
|
||||||
clusterIP: "{{ skydns_server }}"
|
clusterIP: "{{ skydns_server }}"
|
||||||
when: dns_mode in ['coredns', 'coredns_dual']
|
when:
|
||||||
|
- dns_mode in ['coredns', 'coredns_dual']
|
||||||
|
- deploy_coredns
|
||||||
|
|
||||||
- name: Kubernetes Apps | CoreDNS Secondary
|
- name: Kubernetes Apps | CoreDNS Secondary
|
||||||
command:
|
command:
|
||||||
@@ -38,6 +40,7 @@
|
|||||||
coredns_ordinal_suffix: "-secondary"
|
coredns_ordinal_suffix: "-secondary"
|
||||||
when:
|
when:
|
||||||
- dns_mode == 'coredns_dual'
|
- dns_mode == 'coredns_dual'
|
||||||
|
- deploy_coredns
|
||||||
|
|
||||||
- name: Kubernetes Apps | nodelocalDNS
|
- name: Kubernetes Apps | nodelocalDNS
|
||||||
command:
|
command:
|
||||||
|
|||||||
Reference in New Issue
Block a user