- Clone the
homelab
repo - Clone this repo, e.g.
cd ~/.config && git clone <url> homelab
- Update
homelab
environment variables- Example:
export CONFIG_DIR=~/.config/homelab
export REMOTE_CONFIG_DIR=/tmp/homelab/.config/homelab
- Example:
Run the following commands to create and initialize a Kubernetes cluster on a target Proxmox server.
NOTE: Use single-quotes if you want shell parameter expansion to occur on a remote server.
make install
homelab setup
homelab kubectl patch deployment kubernetes-dashboard -n kube-system --patch '$(cat ${REMOTE_CONFIG_DIR}/k8s/kube-system/patch-deployment-k8s-dashboard.yaml)'
homelab kubectl patch service kubernetes-dashboard -n kube-system --patch '$(cat ${REMOTE_CONFIG_DIR}/k8s/kube-system/patch-service-k8s-dashboard.yaml)'
homelab kubectl apply -f '${REMOTE_CONFIG_DIR}/k8s/default'