Martin Koníček

Blog

Enabling Low-Range NodePorts Below 1024 in MicroK8s for Traefik Ingress

Showcase image

Setting up an ingress controller like Traefik on MicroK8s often requires the use of lower NodePorts, specifically those below 1024. This range is typically reserved for system services and requires special configuration to be used by Kubernetes services. Here's a concise guide to enable this capability in MicroK8s.

With the lower NodePort range enabled, you can now proceed to deploy your Traefik ingress controller. Configure Traefik to utilize the newly available lower NodePorts. This ensures that Traefik can efficiently manage incoming traffic on standard HTTP and HTTPS ports, enhancing the performance and accessibility of your services.

Tutorial

vi /var/snap/microk8s/current/args/kube-apiserver
...
# allow all nodeports
--service-node-port-range=0-65535
...
microk8s stop
microk8s start
  • IPv6 in Raspbian securely with IPTables
    IPv6 in Raspbian securely with IPTablesWhen using a Raspberry Pi behind a NAT firewall, it is common to discover that local services are accessible to the world when IPv6 is allowed by the provider. To prevent this, I will discuss how to set up a firewall for IPv6 on the Raspberry Pi.
  • cs | en