Skip to content

mmohamed/k8s-raspberry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes On Raspberry ARMhf/ARM64

How to deploy a Kubernetes K8S solution on your own cluster composed by some raspberry


curl -OJSLs https://github.com/hypriot/image-builder-rpi/releases/download/v1.12.0/hypriotos-rpi-v1.12.0.img.zip
unzip hypriotos-rpi-v1.12.0.img.zip
curl -LO https://github.com/hypriot/flash/releases/download/2.5.0/flash
chmod +x flash && sudo mv flash /usr/local/bin/flash
flash --hostname [HOSTNAME] hypriotos-rpi-v1.12.0.img
# get SSL CRT & KEY base64 encoded & make deployment YAML
cp dashboard-deployment.yaml.dist dashboard.yaml
sed -i "s/{{crt}}/[YOUR-CRT]/" dashboard.yaml
sed -i "s/{{key}}/[YOUR-KEY]/"  dashboard.yaml
sed -i "s/{{host}}/[YOUR-HOSTNAME]/" dashboard.yaml
# deploy
kubectl apply -f dashboard.yaml
# get access token
kubectl -n kube-system describe secret `kubectl -n kube-system get secret | grep replicaset-controller-token | awk '{print $1}'` | grep token: | awk '{print $2}'
# get SSL CRT & KEY base64 encoded & make deployment YAML
cp front-deployment.yaml.dist deployment.yaml
sed -i "s/{{key}}/[YOUR-KEY]/" deployment.yaml
sed -i "s/{{key}}/[YOUR-KEY]/" deployment.yaml
sed -i "s/{{host}}/[YOUR-HOSTNAME]/" deployment.yaml
sed -i "s/{{name}}/[YOUR-APPNAME]/" deployment.yaml
sed -i "s/{{image}}/[YOUR-IMGPATH]/" deployment.yaml
# deploy
kubectl apply -f deployment.yaml

More informations