mirror of
https://github.com/teamserverless/k8s-on-raspbian.git
synced 2025-01-18 03:55:30 +00:00
Add Adaptations / derived works
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
parent
5228e8cb4f
commit
2afb2c0e47
13
README.md
13
README.md
@ -1,12 +1,21 @@
|
|||||||
## Kubernetes on Raspbian
|
## Kubernetes on Raspbian
|
||||||
|
|
||||||
This repository holds the original tutorial for Kubernetes on Raspberry Pi by Alex Ellis
|
This repository holds the original tutorial for "Kubernetes on Raspbian" / Raspberry Pi by Alex Ellis
|
||||||
|
|
||||||
|
![](https://pbs.twimg.com/media/DKGfQ7bWkAAkGb9.jpg)
|
||||||
|
|
||||||
|
### Start the guide
|
||||||
|
|
||||||
[Kubernetes on (vanilla) Raspbian Lite](./GUIDE.md)
|
[Kubernetes on (vanilla) Raspbian Lite](./GUIDE.md)
|
||||||
|
|
||||||
### Attribution
|
### Attribution
|
||||||
|
|
||||||
You're welcome to make use of this guide and to refer to it, but please do not copy it or pass it off as your own without giving attribution to the author(s).
|
You're welcome to make use of this guide and to refer to it, but please do not copy it or pass it off as your own without giving attribution to the author(s). If you have suggestions or have found that some of the instructions have fallen out of date, then please see the Contributions section below on how to contribute.
|
||||||
|
|
||||||
|
#### Adaptations / derived works
|
||||||
|
|
||||||
|
* ["Kubernetes on Raspbian" with Ansible](https://rak8s.io) by Chris Short
|
||||||
|
* ["Kubernetes on Raspbian" for .NET Core / Windows developers](https://www.hanselman.com/blog/HowToBuildAKubernetesClusterWithARMRaspberryPiThenRunNETCoreOnOpenFaas.aspx) by Scott Hanselman
|
||||||
|
|
||||||
### Contributions
|
### Contributions
|
||||||
|
|
||||||
|
23
script/prep.sh
Normal file
23
script/prep.sh
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user