Skip to content

Instantly share code, notes, and snippets.

@richardcase
Last active February 6, 2024 10:18
Show Gist options
  • Save richardcase/e6a54afe9ed9ca87bf6ec2c05e8abf7b to your computer and use it in GitHub Desktop.
Save richardcase/e6a54afe9ed9ca87bf6ec2c05e8abf7b to your computer and use it in GitHub Desktop.
Rancher Turtles: Create cluster via GitOps with namespace annotation

This assumes that that previous test steps have been executed. These instructions will be updated when annotating the namespaces works from the UI extension.

  1. Run the following command to annotate the default namespace for auto import
kubectl label namespace default cluster-api.cattle.io/rancher-auto-import=true
  1. In Rancher Manager go to Continous Delivery
  2. Using the namespace drop down in the top bar select fleet-local
  3. Click Git Repos on the left navigation
  4. Click Add Repository button
  5. Fill in the following information:
  • Name: clusters
  • Repository URL: https://github.com/rancher-sandbox/rancher-turtles-fleet-example
  • Branch Name: main
  1. Click Next
  2. Click Create
  3. Click into clusters
  4. It should turn Not Ready
  5. Check in the cluster that there are Machines being provisioned
  6. All the resources should become Ready
  7. Navigate to Cluster Management
  8. Check that there is a cluster cluster1-capi
  9. Wait for it to become Ready
  10. Click Explore
  11. Click the Download Kubeconfig toolbar button
  12. Use the downloaded kubeconfig to connect to the cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment