Install .rustup directory in home, otherwise there are a bunch of rust-analyzer issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@raspbernetes-0:~/dqlite-issue-repro$ cat /var/snap/microk8s/current/var/kubernetes/backend/cluster.yaml | |
- Address: 192.168.88.239:19001 | |
ID: 3297041220608546238 | |
Role: 0 | |
- Address: 192.168.88.249:19001 | |
ID: 10829805846545420511 | |
Role: 0 | |
- Address: 192.168.88.246:19001 | |
ID: 8819719984785607608 | |
Role: 0 |
You must run these commands on all nodes, including the workers ( especially cgroup enablement for containerd )
sudo swapoff -a
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
set -o noglob | |
# Usage: | |
# curl ... | ENV_VAR=... sh - | |
# or | |
# ENV_VAR=... ./install.sh | |
# | |
# Environment variables: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https ca-certificates curl | |
curl -fsSLo containerd-config.toml \ | |
https://gist.githubusercontent.com/oradwell/31ef858de3ca43addef68ff971f459c2/raw/5099df007eb717a11825c3890a0517892fa12dbf/containerd-config.toml | |
sudo mkdir /etc/containerd | |
sudo mv containerd-config.toml /etc/containerd/config.toml | |
curl -fsSLo containerd-1.5.13-linux-amd64.tar.gz \ |
- Stop containerd
sudo systemctl stop containerd
sudo systemctl disable containerd
- Alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
kubebuilder init --domain=XXXXXXXXXX: use the rest of the flags as needed (e.g. --license or --owner). | |
kubebuilder create api --resource=false --controller=false --group=core --version=v1 --kind=Pod: use the rest of the flags as needed. | |
kubebuilder create webhook --group=core --version=v1 --kind=Pod ...: extra flags will be needed here | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
name: read-only | |
rules: | |
- apiGroups: | |
- "" | |
resources: | |
- '*' | |
verbs: |
NewerOlder