Skip to content

Instantly share code, notes, and snippets.

@ibuildthecloud
ibuildthecloud / README.md
Last active June 19, 2025 07:09
k3s on WSL2

Instructions to hack up WSL2 on Windows 10 Build 18917 to run k3s (Kubernetes) and rio

Install WSL2

https://docs.microsoft.com/en-us/windows/wsl/wsl2-install

I already had Ubuntu-18.04 installed in wsl 1. So I just did wsl --set-version Ubuntu-18.04 2

Compile Kernel

Using Ubuntu 18.04 (I'm sure any distro will work), inside WSL2 download https://thirdpartysource.microsoft.com/download/Windows%20Subsystem%20for%20Linux%20v2/May%202019/WSLv2-Linux-Kernel-master.zip and extract to a folder. The latest version of the kernel source is available at (https://github.com/microsoft/WSL2-Linux-Kernel)

k3os:
password: rancher

Keybase proof

I hereby claim:

  • I am ibuildthecloud on github.
  • I am ibuildthecloud (https://keybase.io/ibuildthecloud) on keybase.
  • I have a public key whose fingerprint is 4FF5 E1D0 D3E2 E50C 0BCB 39A0 31C9 9FD9 691B 79C3

To claim this, I am signing this object:

@ibuildthecloud
ibuildthecloud / README.md
Last active July 10, 2016 04:30
Runv on RancherOS v0.5.0

Switch to ubuntu console

sudo ros console switch -f ubuntu

Install packages to build to runv

sudo apt-get update
@ibuildthecloud
ibuildthecloud / fix.sql
Last active March 15, 2016 03:48
Fix failed upgrade to v0.63.0
TRUNCATE `process_execution`;
ALTER TABLE `process_execution` DROP `created`;
diff --git a/resources/content/schema/base/container.json b/resources/content/schema/base/container.json
index e1dcddd..65e482c 100644
--- a/resources/content/schema/base/container.json
+++ b/resources/content/schema/base/container.json
@@ -232,6 +232,10 @@
"nullable": false,
"default" : "0"
},
+ "myFoo" : {
+ "type" : "string",
@ibuildthecloud
ibuildthecloud / cloud-config.yml
Last active December 11, 2015 20:12
cloud-config w/ script
#cloud-config
write_files:
- path: /etc/rc.local
permissions: "0755"
owner: root
content: |
#!/bin/bash
echo "I'm doing things on start"
touch /tmp/i-did-something
#cloud-config
rancher:
services:
my-service:
labels:
# This indicates to run in system-docker as opposed to user docker.
# Comment if you want user docker.
io.rancher.os.scope: system
image: nginx
@ibuildthecloud
ibuildthecloud / yaml
Created December 1, 2015 16:53
cloud-config for rancher-agent
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAA...
rancher:
services:
rancher-agent-install:
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
image: rancher/agent:v0.8.2
=== BEGIN goroutine stack dump ===
goroutine 7965 [running]:
github.com/docker/docker/pkg/signal.DumpStacks()
/go/src/github.com/docker/docker/pkg/signal/trap.go:67 +0xa5
github.com/docker/docker/pkg/signal.func\ufffd\ufffd001(0x7f3abcd54268, 0xc20c7f17a0)
/go/src/github.com/docker/docker/pkg/signal/trap.go:48 +0x35e
created by github.com/docker/docker/pkg/signal.func\ufffd\ufffd002
/go/src/github.com/docker/docker/pkg/signal/trap.go:53 +0x13a
goroutine 1 [chan receive, 7 minutes]: