- Create a file called kind-cluster-with-extramounts.yaml with the following contents
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: rancher-manager
nodes:
- role: control-plane
image: kindest/node:v1.26.3
extraMounts:
- hostPath: /var/run/docker.sock
containerPath: /var/run/docker.sock
- Create a kind cluster:
kind create cluster --config kind-cluster-with-extramounts.yaml
- Install Cert Manager:
helm install cert-manager jetstack/cert-manager \
--namespace cert-manager \
--create-namespace \
--version v1.12.3 \
--set installCRDs=true \
--wait
- Install Rancher Manager and disable embedded CAPI:
helm install rancher rancher-latest/rancher \
--namespace cattle-system \
--create-namespace \
--set replicas=1 \
--set hostname=myhost.com \
--set global.cattle.psp.enabled=false \
--version v2.8.0
ensure you replace myhost.com with the hostname of your choice
- Start tunnel of choice (i.e. ngrok, inlets)
If using k3s instead of kind; docker will need to be installed separately on the machine, and a
kind
network will need to be added.