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
  • SSH in Visual Studio Code with KeePass
    SSH in Visual Studio Code with KeePassRemote SSH extension in Visual Studio Code allows you directly edit files on Linux machine and access Linux console from your Windows workstation. For best comfort when you are accessing Remote SSH server from Visual Studio Code use KeePasswith KeeAgent which will works as SSH agent.
  • cs | en