ansible-role-k8s/templates/rke2/cni/canal-config.yaml.j2

20 lines
531 B
Plaintext
Raw Normal View History

2024-04-27 01:33:23 +00:00
# template generated via ansible by {{ local_user }} at {{ ansible_date_time.time }} {{ ansible_date_time.date }}
2024-04-27 01:33:23 +00:00
# /var/lib/rancher/rke2/server/manifests/rke2-canal-config.yaml
---
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: rke2-canal
namespace: kube-system
spec:
valuesContent: |-
flannel:
{% if k8s_canal_wireguard is defined and k8s_canal_wireguard %}
2024-04-27 01:33:23 +00:00
backend: "wireguard"
{% else %}
{% if k8s_cni_interface is defined %}
2024-04-27 01:33:23 +00:00
iface: "{{ k8s_cni_interface }}"
{% endif %}
{% endif %}