Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.
/ tf-fennas Public archive

Terraform for raspberry pi kubernetes cluster

License

Notifications You must be signed in to change notification settings

mate4st/tf-fennas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform for PI

Run: terraform apply -var-file=secrets.tfvars

Minio

  • TODO: build server

Build arm image:

docker build -t minio-arm -f Dockerfile.arm.release .

User

mc admin user add minio ACCESS_KEY_ID SECRET_ACCESS_KEY

mc admin group add minio name user

mc admin policy add minio plolicy_name policy.json

mc admin policy set minio policy_name group=somegroup

Docker Provider

Pinned version 2.6 for docker provider since 2.7 have some issues with replacing container's that haven't changed at all.

Forced container replacement with 2.7.0

There are probably some fixes in the next version 2.8.0.

Note that labels are different in version 2.6 and maybe some other properties differ to the current documentation.

Backend

We use S3 as backend type. There are several ways to authenticate in AWS.

I use a default profile located in $HOME/.aws/credentials.

[default]
region=eu-central-1
aws_access_key_id=
aws_secret_access_key=

Docker Volumes Backup + Restore

Waiting for feature in docker provider:

Added a option to disable auto remove for volume

Backup:

docker run --rm --volumes-from yourcontainer -v $(pwd):/backup busybox tar cvf /backup/backup.tar /data

Restore:

docker run --rm --volumes-from yournewcontainer -v $(pwd):/backup busybox tar xvf /backup/backup.tar

Docker Registry

Create new user and password with: htpasswd -nbB fennas "password"

Connect local docker daemon: docker login -u "fennas" -p "password" https://registry.fanya.dev

Note that -p is considered insecured.

About

Terraform for raspberry pi kubernetes cluster

Resources

License

Stars

Watchers

Forks

Packages

No packages published