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