- Install k3s and k3d locally
k3d cluster create rancher-test- Install cert manager
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.5.1/cert-manager.crds.yaml| package main | |
| import ( | |
| "log" | |
| "github.com/google/cel-go/cel" | |
| ) | |
| func main() { | |
| env, err := cel.NewEnv( |
| sudo INSTALL_RKE2_VERSION=v1.26.10+rke2r2 ./install.sh | |
| sudo systemctl enable –now rke2-server | |
| helm repo add rancher-latest https://releases.rancher.com/server-charts/latest | |
| helm repo add jetstack https://charts.jetstack.io | |
| helm repo update | |
| sudo cp /etc/rancher/rke2/rke2.yaml . | |
| sudo chmod a+rw rke2.yaml | |
| export KUBECONFIG=/home/richard/rke2.yaml | |
| kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.5.1/cert-manager.crds.yaml | |
| helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version v1.5.1 |
turtlesuiThis assumes that that previous test steps have been executed. These instructions will be updated when annotating the namespaces works from the UI extension.
kubectl label namespace default cluster-api.cattle.io/rancher-auto-import=trueThese steps assume that the previous test scenarios have been done.
clustershttps://github.com/rancher-sandbox/rancher-turtles-fleet-exampleper-cluster-importThis assumes you have a Rancher Manage v2.8.0 cluster running in kind with the docker socket shared (see this).
apiVersion: management.cattle.io/v3
kind: Feature
metadata:
name: embedded-cluster-api
spec:kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: rancher-manager
nodes:
- role: control-plane
image: kindest/node:v1.26.3
extraMounts:These steps assume you have followed the steps to import a cluster
https://github.com/rancher-sandbox/rancher-turtles-fleet-example/tree/main