📕
Guides pratiques
  • Guides pratiques
  • Laravel
    • Middlewares
    • Auth
      • RegisterController
      • LoginController
  • MicroK8s
    • Samba server (Linux)
    • Samba client (Linux)
  • Kubernetes
    • Infrastructure
    • HAProxy
Powered by GitBook
On this page

Was this helpful?

  1. Kubernetes

Infrastructure

PreviousSamba client (Linux)NextHAProxy

Last updated 3 years ago

Was this helpful?

The Kubernetes configuration for HA is as follow:

  • 3 machines for control plane and ETCD in LAN.

  • 3+ machines for worker in LAN.

  • 2+ machines for HAProxy with static public IP.

  • 2+ machines for GlusterFS server (which can be on control plane nodes).

Recommended configuration:

  • Kubeadm or Rancher (careful for default settings, requires 1 more machine) or K3s for installation.

  • Calico as Pods network management.

  • Traefik 2+ as Ingress controller (DaemonSet on worker nodes only).

  • HAProxy as public load balancer.

  • GlusterFS as replicated storage.

For secure installation:

  • Setup ufw.

    • 80 and 443 for public IPs for HAProxy.

    • Everything on LAN IPs.

  • Enable HAProxy failover with HTTP ( or health check).

Notes:

  • Control plane and ETCD nodes are not worker nodes. It protects masters of overload.

  • Do not forget HTTPS.

  • Disable SWAP for Kubernetes!

TCP
HTTP