Skip to content

Commit

Permalink
kubeadm: additional files for flannel
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Sep 7, 2023
1 parent 259a092 commit b1a8eff
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 12 deletions.
4 changes: 4 additions & 0 deletions kvirt/cluster/kubeadm/10-flannel.link
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[Match]
OriginalName=flannel*
[Link]
MACAddressPolicy=none
2 changes: 2 additions & 0 deletions kvirt/cluster/kubeadm/90-flannel.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SUBSYSTEM=="net", ACTION=="add|change|move", ENV{INTERFACE}=="flannel.1", RUN+="/bin/bash -c \"/usr/sbin/ethtool -K flannel.1 tx-checksum-ip-generic off\""
SUBSYSTEM=="net", ACTION=="add|change|move", ENV{INTERFACE}=="cni0", RUN+="/bin/bash -c \"/usr/sbin/ethtool -K cni0 tx-checksum-ip-generic off\""
11 changes: 7 additions & 4 deletions kvirt/cluster/kubeadm/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,13 @@
- deploy.sh
{% if engine == 'containerd' %}
- path: /etc/crictl.yaml
content: |
runtime-endpoint: unix:///run/containerd/containerd.sock
image-endpoint: unix:///run/containerd/containerd.sock
timeout: 10
origin: crictl.yaml
{% endif %}
{% if sdn == 'flannel' %}
- path: /etc/systemd/network/10-flannel.link
origin: 10-flannel.link
- path: /etc/udev/rules.d/90-flannel.rules
origin: 90-flannel.rules
{% endif %}
cmds:
- bash /root/deploy.sh
3 changes: 3 additions & 0 deletions kvirt/cluster/kubeadm/crictl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
runtime-endpoint: unix:///run/containerd/containerd.sock
image-endpoint: unix:///run/containerd/containerd.sock
timeout: 10
11 changes: 7 additions & 4 deletions kvirt/cluster/kubeadm/ctlplanes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@
- deploy.sh
{% if engine == 'containerd' %}
- path: /etc/crictl.yaml
content: |
runtime-endpoint: unix:///run/containerd/containerd.sock
image-endpoint: unix:///run/containerd/containerd.sock
timeout: 10
origin: crictl.yaml
{% endif %}
{% if sdn == 'flannel' %}
- path: /etc/systemd/network/10-flannel.link
origin: 10-flannel.link
- path: /etc/udev/rules.d/90-flannel.rules
origin: 90-flannel.rules
{% endif %}
cmds:
- bash /root/deploy.sh
Expand Down
11 changes: 7 additions & 4 deletions kvirt/cluster/kubeadm/workers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@
- join.sh
{% if engine == 'containerd' %}
- path: /etc/crictl.yaml
content: |
runtime-endpoint: unix:///run/containerd/containerd.sock
image-endpoint: unix:///run/containerd/containerd.sock
timeout: 10
origin: crictl.yaml
{% endif %}
{% if sdn == 'flannel' %}
- path: /etc/systemd/network/10-flannel.link
origin: 10-flannel.link
- path: /etc/udev/rules.d/90-flannel.rules
origin: 90-flannel.rules
{% endif %}
cmds:
- bash /root/deploy.sh
Expand Down

0 comments on commit b1a8eff

Please sign in to comment.