This document captures my "copy/paste" and other details as I try to setup a k3 cluster.


# Get k3 binary, by default it looks like x86_64 version

Using the k3s-ansible repository

There is a k3s-ansible repository that may be easier to work with. ย I'll fork it and then use it as a basis of my own version.

# get helm

# get the linux amd64 version
tar -zxvf helm-v3.8.2-linux-amd64.tar.gz
cd linux-amd64
mv helm /sbin
cd ..
rm -rf linux-amd64

# add helm stable repo
helm repo add rancher-stable

# add namespace
kubectl create namespace cattle-system

# helm needs to know location of kubeconfig file
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml

# setup
helm install rancher rancher-stable/rancher \
  --namespace cattle-system \
  --set \
  --set replicas=3 \
  --set ingress.tls.source=secret

# DNS was created for and CNAMEd to kube-1, the master node.
# VMware vSwitch needs to be configured with promiscuous mode, forged transmits and MAC changes.


  • No labels