23 lines
686 B
Django/Jinja
23 lines
686 B
Django/Jinja
---
|
|
apiVersion: operator.tigera.io/v1
|
|
kind: Installation
|
|
metadata:
|
|
name: default
|
|
spec:
|
|
registry: quay.io
|
|
imagePath: calico
|
|
calicoNetwork:
|
|
# https://projectcalico.docs.tigera.io/networking/ip-autodetection
|
|
nodeAddressAutodetectionV4:
|
|
cidrs:
|
|
- "{{ (ansible_default_ipv4.network + '/' + ansible_default_ipv4.netmask) | ansible.utils.ipaddr('network/prefix') }}"
|
|
# Note: The ipPools section cannot be modified post-install.
|
|
ipPools:
|
|
- blockSize: 26
|
|
cidr: "{{ k3s_server['cluster-cidr'] }}"
|
|
encapsulation: "VXLANCrossSubnet"
|
|
natOutgoing: Enabled
|
|
nodeSelector: all()
|
|
nodeMetricsPort: 9091
|
|
typhaMetricsPort: 9093
|