-
Notifications
You must be signed in to change notification settings - Fork 0
/
k3s-plan.yml
56 lines (56 loc) · 1.77 KB
/
k3s-plan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
parameters:
name: k8s-plan
extra_ctlplane_args:
- --flannel-backend none
- --disable-network-policy
- --disable traefik
- --disable servicelb
disk_size: 50
image: ubuntu2204
notify: True
notifycmd: kubectl get pod -A
engine: containerd
wait_ready: True
cmds:
- systemctl stop snapd.socket
- systemctl disable snapd.socket
- systemctl stop snapd.service
- systemctl disable snapd.service
- sed -i 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=1 cgroup_no_v1=all"/g' /etc/default/grub
- update-grub
- echo bpffs /sys/fs/bpf bpf defaults 0 0 >> /etc/fstab
- mount /sys/fs/bpf
- curl -LO https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-amd64.tar.gz
- tar xzvfC cilium-linux-amd64.tar.gz /usr/local/bin
- rm -f cilium-linux-amd64.tar.gz
- curl -L https://istio.io/downloadIstio | sh -
- mv istio-1*/bin/istioctl /usr/local/bin/istioctl
- rm -rf istio-1*
- curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
- apt-get install apt-transport-https --yes
- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" > /etc/apt/sources.list.d/helm-stable-debian.list
- apt-get update --yes
- apt-get install helm --yes
- apt-get upgrade --yes
ctlplane_memory: 3072
ctlplane_numcpus: 4
worker_memory: 3072
worker_numcpus: 2
k3s-1:
name: k3s-1-ctlplane-0
type: kube
kubetype: k3s
nets:
- k3s-1-network
ctlplanes: 1
workers: 2
network: k3s-1-network
k3s-2:
name: k3s-2-ctlplane-0
type: kube
kubetype: k3s
nets:
- k3s-2-network
network: k3s-2-network
ctlplanes: 1
workers: 2