OS=xUbuntu_22.04
CRIO_VERSION=1.24
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/ /"|sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
#cloud-config | |
package_upgrade: true | |
ssh_authorized_keys: | |
- <your key> | |
packages: | |
- apt-transport-https | |
- ca-certificates | |
- curl |
#!/usr/bin/env bash | |
set -eu -o pipefail | |
runtimes=(Host runc runsc kata) | |
YELLOW_START='\033[1;33m' | |
YELLOW_END='\033[0m' | |
declare -A COMMANDS=( |
By default, EBPF programs will not run on WSL2 due to required kernel modules missing. The following example error is an | |
indication of this problem: | |
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.19.84-microso | |
ft-standard/modules.dep.bin' | |
modprobe: FATAL: Module kheaders not found in directory /lib/modules/4.19.84-microsoft-standard | |
chdir(/lib/modules/4.19.84-microsoft-standard/build): No such file or directory | |
To fix this you need to rebuild the WSL2 kernel with the missing kernel modules. The below instructions are for Ubuntu 18.04 WSL2. | |
1. git clone https://github.com/microsoft/WSL2-Linux-Kernel.git |
WSL2 uses Hyper-V for networking. The WSL2 network settings are ephemeral and configured on demand when any WSL2 instance is first started in a Windows session. The configuration is reset on each Windows restart and the IP addresses change each time. The Windows host creates a hidden switch named "WSL" and a network adapter named "WSL" (appears as "vEthernet (WSL)" in the "Network Connections" panel). The Ubuntu instance creates a corresponding network interface named "eth0".
Assigning static IP addresses to the network interfaces on the Windows host or the WSL2 Ubuntu instance enables support for the following scenarios:
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
generation: 1 | |
labels: | |
app.kubernetes.io/instance: goldpinger | |
app.kubernetes.io/name: goldpinger | |
name: goldpinger | |
spec: | |
replicas: 5 |
If you just running LXC/LXD containers, the default settings for WSL2 (both Windows 10 and Windows 11) should be adequate.
However, if trying something like lxc launch images:alpine/3.18 --vm
, LXC will complain that
vhost_vsock
module is not loaded.
Here's how I configure WSL2 so I can run VM with LXC/LXD.
This document shows how to mount an AWS S3 bucket on Mac OS X using goofyfs.
The first three steps illustrate how to use goofys
- Install goofyfs via brew
brew cask install osxfuse
brew install goofys
kind: ServiceAccount | |
apiVersion: v1 | |
metadata: | |
name: ldap-group-syncer | |
namespace: openshift-authentication | |
labels: | |
app: cronjob-ldap-group-sync | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole |