* Add Cilium CNI option * Tweak version checks and add BGP resource verify * Update metallb detection for kube-vip feat compat
42 lines
1.3 KiB
Django/Jinja
42 lines
1.3 KiB
Django/Jinja
# This section includes base Calico installation configuration.
|
|
# For more information, see: https://docs.tigera.io/calico/latest/reference/installation/api#operator.tigera.io/v1.Installation
|
|
apiVersion: operator.tigera.io/v1
|
|
kind: Installation
|
|
metadata:
|
|
name: default
|
|
spec:
|
|
# Configures Calico networking.
|
|
calicoNetwork:
|
|
# Note: The ipPools section cannot be modified post-install.
|
|
ipPools:
|
|
- blockSize: {{ calico_blockSize | default('26') }}
|
|
cidr: {{ cluster_cidr | default('10.52.0.0/16') }}
|
|
encapsulation: {{ calico_encapsulation | default('VXLANCrossSubnet') }}
|
|
natOutgoing: {{ calico_natOutgoing | default('Enabled') }}
|
|
nodeSelector: {{ calico_nodeSelector | default('all()') }}
|
|
nodeAddressAutodetectionV4:
|
|
interface: {{ calico_iface }}
|
|
linuxDataplane: {{ 'BPF' if calico_ebpf else 'Iptables' }}
|
|
|
|
---
|
|
|
|
# This section configures the Calico API server.
|
|
# For more information, see: https://docs.tigera.io/calico/latest/reference/installation/api#operator.tigera.io/v1.APIServer
|
|
apiVersion: operator.tigera.io/v1
|
|
kind: APIServer
|
|
metadata:
|
|
name: default
|
|
spec: {}
|
|
|
|
{% if calico_ebpf %}
|
|
---
|
|
kind: ConfigMap
|
|
apiVersion: v1
|
|
metadata:
|
|
name: kubernetes-services-endpoint
|
|
namespace: tigera-operator
|
|
data:
|
|
KUBERNETES_SERVICE_HOST: '{{ apiserver_endpoint }}'
|
|
KUBERNETES_SERVICE_PORT: '6443'
|
|
{% endif %}
|