Martin Koníček
Blog
Enabling Low-Range NodePorts Below 1024 in MicroK8s for Traefik Ingress
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
WebSocket connection to WireGuardIn some countries (e.g. Egypt) or some hotels, VPN connections are blocked and only possibility is to tunnel them through WebSocket, in this article I will focus on that.