Setup scripts for infrastructure components.
Easily set up HAProxy.
Run this command on your server.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/chrissns/scaffold/master/haproxy/oneline-install.sh)"
Inspired by the setup script from Marc Rufeis.
Easily set up a Kubernetes cluster with kubeadm (containerd runtime, Flannel CNI).
Run this command on the machine that should become the control-plane node. It
initializes the cluster and prints a kubeadm join command for the workers.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/chrissns/scaffold/master/kubernetes/oneline-install-master.sh)"
Run this command on each machine that should join the cluster. Paste the
kubeadm join command from the master's output when prompted.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/chrissns/scaffold/master/kubernetes/oneline-install-worker.sh)"
Both scripts share kubernetes/common-prerequisites.sh, which disables swap,
configures the required kernel modules and sysctl settings, installs containerd
and installs kubeadm, kubelet and kubectl. Set K8S_VERSION (e.g.
v1.31) before running to pin a specific Kubernetes minor version.