title: How to set DNS entrys & network configuration for kubernetes cluster @home (noob here)
body: <p>I am currently  running a Kubernetes cluster on my own homeserver (in proxmox ct's, was kinda difficult to get working because I am using zfs too, but it runs now), and the setup is as follows:</p>
  <ul>
  <li>lb01: haproxy &amp; keepalived</li>
  <li>lb02: haproxy &amp; keepalived</li>
  <li>etcd01: etcd node 1</li>
  <li>etcd02: etcd node 2</li>
  <li>etcd03: etcd node 3</li>
  <li>master-01: k3s in server mode with a taint for not accepting any jobs</li>
  <li>master-02: same as above, just joining with the token from master-01</li>
  <li>master-03: same as master-02</li>
  <li>worker-01 - worker-03: k3s agents</li>
  </ul>
  <p>If I understand it correctly k3s delivers with flannel as a CNI pre-installed, as well as traefik as a Ingress Controller.</p>
  <p>I've setup rancher on my cluster as well as longhorn, the volumes are just zfs volumes mounted inside the agents tho, and as they aren't on different hdd's I've set the replicas to 1. I have a friend running the same setup (we set them up together, just yesterday) and we are planing on joining our networks trough vpn tunnels and then providing storage nodes for each other as an offsite backup.</p>
  <p>So far I've hopefully got everything correct.</p>
  <p>Now to my question: I've both got a static ip @home as well as a domain, and I've set that domain to my static ip</p>
  <p>Something like that: (don't know how dns entries are actually written, just from the top of my head for your reference, the entries are working well.)</p>
  <p>A example.com. [[my-ip]]</p>
  <p>CNAME *.example.com. example.com</p>
  <p>I've currently made a port-forward to one of my master nodes for port 80 &amp; 443 but I am not quite sure how you would actually configure that with ha in mind, and my rancher is throwing a 503 after visiting global settings, but I have not changed anything.</p>
  <p>So now my question: How would one actually configure the port-forward and, as far as I know k3s has a load-balancer pre-installed, but how would one configure those port-forwards for ha? the one master node it's pointing to could, theoretically, just stop working and then all services would not be reachable anymore from outside.</p>