mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 11:47:47 +03:00
Move calico to daemonset (#1605)
* Drop legacy calico logic * add calico as a daemonset
This commit is contained in:
19
roles/network_plugin/calico/templates/calico-config.yml.j2
Normal file
19
roles/network_plugin/calico/templates/calico-config.yml.j2
Normal file
@@ -0,0 +1,19 @@
|
||||
kind: ConfigMap
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: calico-config
|
||||
namespace: {{ system_namespace }}
|
||||
data:
|
||||
etcd_endpoints: "{{ etcd_access_endpoint }}"
|
||||
etcd_ca: "/calico-secrets/ca_cert.crt"
|
||||
etcd_cert: "/calico-secrets/cert.crt"
|
||||
etcd_key: "/calico-secrets/key.pem"
|
||||
{% if calico_network_backend is defined and calico_network_backend == 'none' %}
|
||||
cluster_type: "kubespray"
|
||||
{%- else %}
|
||||
cluster_type: "kubespray,bgp"
|
||||
{% endif %}
|
||||
calico_backend: "bird"
|
||||
{%- if inventory_hostname in groups['k8s-cluster'] and peer_with_router|default(false) %}
|
||||
as: "{{ local_as }}"
|
||||
{% endif -%}
|
||||
Reference in New Issue
Block a user