Skip to content

Instantly share code, notes, and snippets.

View guidoffm's full-sized avatar

Guido Müller (Guido Mueller) guidoffm

  • Bad Homburg, Germany
View GitHub Profile
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-ingress-controller
namespace: kube-system
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx
spec:
replicas: 5
template:
metadata:
labels:
app: nginx
@guidoffm
guidoffm / step1.sh
Created July 7, 2018 10:54
Kubernetes on Raspbian
apt-get update && apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
echo "deb [arch=armhf] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list
apt-get update && apt-get install -y docker-ce=17.06.2~ce-0~debian
#swapoff -a
usermod -aG docker pi
systemctl disable dphys-swapfile
#vi /boot/cmdline.txt
sed -i "s/rootwait/rootwait cgroup_enable=cpuset cgroup_enable=memory/g" /boot/cmdline.txt
reboot