deploy with k3s

This commit is contained in:
Julian Tölle 2020-04-04 23:23:13 +02:00
parent 0f08cfb0d2
commit 2863062e44
26 changed files with 456 additions and 207 deletions

13
scripts/bootstrap-keys.sh Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env sh
set -e
CERT_FILE=./keys/id_terraform
if [ -f "$CERT_FILE" ]; then
echo "$CERT_FILE already exists. To avoid loosing data, I will not generate a new SSH key."
else
echo "Generating a new SSH Key at $CERT_FILE"
ssh-keygen -t rsa -C "terraform@apricote.de" -m PEM -f $CERT_FILE
chmod 600 keys/id_terraform*
fi