Skip to content

Instantly share code, notes, and snippets.

@wrkode
wrkode / rke2-cilium.md
Created September 28, 2024 07:49 — forked from dgiebert/rke2-cilium.md
RKE2 with official

Install the Official Cilium Chart on RKE2

  1. Create a file /etc/rancher/rke2/config.yaml
    cni: none
    disable:
    - rke2-ingress-nginx
  2. Apply the following manifest
    apiVersion: helm.cattle.io/v1
@wrkode
wrkode / README.md
Created September 28, 2024 07:47 — forked from dgiebert/README.md
Rancher Turtles + KubeVirt CAPI Provider with Harvester

RKE2 + KubeVirt CAPI Provider with Harvester

Installing

  1. Install Harvester link
  2. Prepare Harvester
    • Install the CDI Plugin into Harvester link
    • Create /var/lib/rancher/rke2/agent/etc/containerd/config.toml.tmpl
      version = 2
      [plugins."io.containerd.internal.v1.opt"]
        path = "/var/lib/rancher/rke2/agent/containerd"
@wrkode
wrkode / README.md
Created July 5, 2024 13:06 — forked from dgiebert/README.md
Cilium Cluster Mesh RKE2

Prepare the Cluster

Deploy this config to all clusters that you want to form a mesh with

apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: rke2-cilium
  namespace: kube-system
spec:
  valuesContent: |-
{"level":"Level(-4)","ts":1684814180.5020661,"logger":"decorator.namespace-labeler","msg":"Sync","object":{"name":"namsespacefoo"}}
{"level":"Level(-4)","ts":1684814180.5021586,"logger":"decorator.namespace-labeler","msg":"DecoratorController sync","controller":{"apiVersion":"metacontroller.k8s.io/v1alpha1","kind":"DecoratorController","name":"namespace-labeler"},"parent":{"apiVersion":"v1","kind":"Namespace","name":"namsespacefoo"}}
{"level":"Level(-6)","ts":1684814180.5023131,"msg":"Webhook request","type":"sync","url":"http://namespace-labeler-service.metacontroller.svc.cluster.local:5000/sync","body":{"controller":{"kind":"DecoratorController","apiVersion":"metacontroller.k8s.io/v1alpha1","metadata":{"name":"namespace-labeler","uid":"ae45341e-be26-4f29-9a15-c5b3645ce445","resourceVersion":"2848417","generation":4,"creationTimestamp":"2023-05-19T11:41:31Z","annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"metacontroller.k8s.io/v1alpha1\",\"kind\":\"DecoratorController\",\
@wrkode
wrkode / curl.md
Created November 7, 2022 14:14 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@wrkode
wrkode / k3s-etcd-commands.md
Created July 19, 2022 16:44 — forked from superseb/k3s-etcd-commands.md
k3s etcd commands

k3s etcd commands

etcd

Setup etcdctl using the instructions at https://github.com/etcd-io/etcd/releases/tag/v3.4.13 (changed path to /usr/local/bin):

Note: if you want to match th etcdctl binaries with the embedded k3s etcd version, please run the curl command for getting the version first and adjust ETCD_VER below accordingly:

curl -L --cacert /var/lib/rancher/k3s/server/tls/etcd/server-ca.crt --cert /var/lib/rancher/k3s/server/tls/etcd/server-client.crt --key /var/lib/rancher/k3s/server/tls/etcd/server-client.key https://127.0.0.1:2379/version
@wrkode
wrkode / rke2-commands.md
Last active July 19, 2022 16:43 — forked from superseb/rke2-commands.md
RKE2 commands

RKE2 commands

Install

curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
@wrkode
wrkode / README.md
Created May 20, 2021 17:59 — forked from superseb/README.md
Deploy kubernetes-dashboard on Rancher 2.x cluster exposed using NodePort

Deploy kubernetes-dashboard on Rancher 2.x cluster exposed using NodePort

This has been updated to install Dashboard v2.0.0, see below for pre v2.0.0 instructions

Requirements

Step 1: Generate kubeconfig from the UI

Generate the kubeconfig file for your cluster using the Kubeconfig File button in the Cluster view of your cluster.