mirror of
https://github.com/alexellis/k8s-on-raspbian.git
synced 2026-08-25 00:55:27 +02:00
Add Adaptations / derived works
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This installs the base instructions up to the point of joining / creating a cluster
|
||||
|
||||
curl -sSL get.docker.com | sh && \
|
||||
sudo usermod pi -aG docker
|
||||
|
||||
sudo dphys-swapfile swapoff && \
|
||||
sudo dphys-swapfile uninstall && \
|
||||
sudo update-rc.d dphys-swapfile remove
|
||||
|
||||
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - && \
|
||||
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list && \
|
||||
sudo apt-get update -q && \
|
||||
sudo apt-get install -qy kubeadm
|
||||
|
||||
echo Adding " cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory" to /boot/cmdline.txt
|
||||
|
||||
sudo cp /boot/cmdline.txt /boot/cmdline_backup.txt
|
||||
orig="$(head -n1 /boot/cmdline.txt) cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory"
|
||||
echo $orig | sudo tee /boot/cmdline.txt
|
||||
|
||||
echo Please reboot
|
||||
Reference in New Issue
Block a user