Skip to content

Latest commit

 

History

History
executable file
·
56 lines (44 loc) · 2.07 KB

README.md

File metadata and controls

executable file
·
56 lines (44 loc) · 2.07 KB

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