PyratLabs / ansible-role-k3s

Ansible role for installing k3s as either a standalone server or HA cluster.
BSD 3-Clause "New" or "Revised" License
627 stars 135 forks source link

fix: Support nftables for Debian 11 #179

Closed eaglesemanation closed 2 years ago

eaglesemanation commented 2 years ago

Support nftables for Debian 11

Summary

Since v1.22.3+k3s1 nftables is supported by k3s according to this comment: https://github.com/k3s-io/k3s/issues/4188#issuecomment-963124378 Also fixed silly mistake in version check

Issue type

Test instructions

Deployed cluster of 1 controller and 2 workers on Vagrant. On resulting cluster deployed following DaemonSet:

apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: ubuntu-debug
spec:
  selector:
    matchLabels:
      name: ubuntu-debug
  template:
    metadata:
      labels:
        name: ubuntu-debug
    spec:
      tolerations:
      - key: node-role.kubernetes.io/master
        operator: Exists
        effect: NoSchedule
      containers:
      - name: ubuntu-debug
        image: docker.io/library/ubuntu:latest
        command: ['sleep', '3600']

Then connected to one of the workers and successfully managed to ping pods on other nodes.

Acceptance Criteria

Additional Information