Skip to content

Instantly share code, notes, and snippets.

@heartshare
Forked from MarWeUMR/rke2-ha.md
Created January 28, 2025 18:25
Show Gist options
  • Save heartshare/75ab58aa8ca1d12f3ba4b2a7bedb8bcd to your computer and use it in GitHub Desktop.
Save heartshare/75ab58aa8ca1d12f3ba4b2a7bedb8bcd to your computer and use it in GitHub Desktop.
Install RKE2-HA Kubernetes Cluster

Preparations

We need all machines up and running. At first we will setup the loadbalancer.

Loadbalancer Nginx Setup

$ cat /etc/hosts

####################################################################
#   IP                     FQDN                     ALIASES
#-------------- --------------------------- ------------------------

# Loadbalancer
<lb ip>                 <lb fqdn>                   <lb alias>

# K8s Server
<k8s server 1 ip>       <k8s server 1 fqdn>         CP_NODE_1 # <- We need the alias names in the nginx config
<k8s server 2 ip>       <k8s server 1 fqdn>         CP_NODE_2
<k8s server 3 ip>       <k8s server 1 fqdn>         CP_NODE_3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment