Containers

Configure OPNsense as Kubernetes API Load Balancer (port 6443)

Original content from computingforgeeks.com - post 63555
using OPNsense as load balancer for kubernetes api server on port 6443 01
using OPNsense as load balancer for kubernetes api server on port 6443 02

Step 3. Configuring HAProxy backend

using OPNsense as load balancer for kubernetes api server on port 6443 03
using OPNsense as load balancer for kubernetes api server on port 6443 04
using OPNsense as load balancer for kubernetes api server on port 6443 05

Step 4. Configuring HAProxy Frontend

using OPNsense as load balancer for kubernetes api server on port 6443 06
using OPNsense as load balancer for kubernetes api server on port 6443 07

Step 5. Testing the Load Balancer

clusters:
- cluster:    
    server: https://192.168.88.2:6443
kubectl get nodes
using OPNsense as load balancer for kubernetes api server on port 6443 08
root@node01:/home/devops# curl -k https://192.168.1.2:6443
{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "forbidden: User \"system:anonymous\" cannot get path \"/\"",
  "reason": "Forbidden",
  "details": {},
  "code": 403
}root@node01:/home/devops#

Conclusion

Keep reading

Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs Security Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 Security UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch Security nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch Encapsule on Fedora 45: Isolated Dev Containers vs Toolbx Containers Encapsule on Fedora 45: Isolated Dev Containers vs Toolbx Join Fedora 45 / 44 to FreeIPA: ipa-client-install, SSSD, sudo Fedora Join Fedora 45 / 44 to FreeIPA: ipa-client-install, SSSD, sudo How to Detect and Analyze Linux Malware and Attacks: Botnets, Miners, and More Security How to Detect and Analyze Linux Malware and Attacks: Botnets, Miners, and More

Leave a Comment

Press ESC to close