Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arch-anes/self-hosted-services
https://github.com/arch-anes/self-hosted-services
ansible docker services
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/arch-anes/self-hosted-services
- Owner: arch-anes
- License: mit
- Created: 2019-12-26T01:45:06.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-05T04:29:07.000Z (6 days ago)
- Last Synced: 2024-11-05T05:25:14.662Z (6 days ago)
- Topics: ansible, docker, services
- Language: Dockerfile
- Homepage:
- Size: 599 KB
- Stars: 6
- Watchers: 4
- Forks: 2
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Self-hosted services
## Create an inventory
### Static
```yml
# There must be a minimum of 3 controllers and the number must be odd for etcd to work
k3s_cluster:
hosts:
raspi:
vpn_port: 3210
vpn_ip: 10.10.10.1
k3s_control_node: true
public_ip: home.example.com
labels:
- local=true
big_manager:
vpn_port: 3211
vpn_ip: 10.10.10.2
k3s_control_node: true
public_ip: cloud.example.com
labels:
- nas=true
- local=true
small_manager:
# https://www.duckdns.org
duckdns:
token: duckdns_provided_token
domain: example.duckdns.org
cloudflare:
zone: example.org
domain: example.example.org
token: cloudflare_api_token
vpn_port: 3212
vpn_ip: 10.10.10.3
k3s_control_node: true
public_ip: home.example.com
labels:
- public=true
- local=true
big_server:
vpn_port: 3213
vpn_ip: 10.10.10.4
labels:
- local=true
```### Dynamic (AWS)
```yml
plugin: aws_ec2
regions:
- us-east-1
- us-east-2
filters:
instance-state-name: running
tag:Category:
- home-cloud
```## Deploy
Run `ansible-playbook setup_cluster.yml -i inventory_static.yml -i inventory_ec2.yml -e fqdn=example.com -e display_k8s_dashboard_password=true`