feat: HA ingress with keepalived and traefik
This commit is contained in:
@@ -7,11 +7,10 @@ proxmox_node: "pve"
|
|||||||
template_name: "debian-13-cloudinit"
|
template_name: "debian-13-cloudinit"
|
||||||
|
|
||||||
ansible_user: root
|
ansible_user: root
|
||||||
ansible_python_interpreter: /opt/homebrew/bin/python3
|
|
||||||
|
|
||||||
docker_packages:
|
docker_packages:
|
||||||
- docker.io
|
- docker.io
|
||||||
- docker-compose-plugin
|
- docker-compose
|
||||||
|
|
||||||
# Traefik configuration
|
# Traefik configuration
|
||||||
domain: "example.com" # Change to your domain
|
domain: "example.com" # Change to your domain
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ all:
|
|||||||
hosts:
|
hosts:
|
||||||
localhost:
|
localhost:
|
||||||
ansible_connection: local
|
ansible_connection: local
|
||||||
|
ansible_python_interpreter: /opt/homebrew/bin/python3
|
||||||
children:
|
children:
|
||||||
edge:
|
edge:
|
||||||
hosts:
|
hosts:
|
||||||
|
|||||||
@@ -10,11 +10,7 @@
|
|||||||
- vim
|
- vim
|
||||||
- curl
|
- curl
|
||||||
- git
|
- git
|
||||||
- software-properties-common
|
- apt-transport-https
|
||||||
|
- ca-certificates
|
||||||
|
- gnupg
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Ensure user is in docker group
|
|
||||||
ansible.builtin.user:
|
|
||||||
name: "{{ ansible_user }}"
|
|
||||||
groups: docker
|
|
||||||
append: yes
|
|
||||||
|
|||||||
@@ -9,3 +9,9 @@
|
|||||||
name: docker
|
name: docker
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
|
- name: Add user to docker group
|
||||||
|
ansible.builtin.user:
|
||||||
|
name: "{{ ansible_user }}"
|
||||||
|
groups: docker
|
||||||
|
append: yes
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
api:
|
api:
|
||||||
dashboard: true
|
dashboard: true
|
||||||
debug: true
|
debug: true
|
||||||
|
insecure: true
|
||||||
|
|
||||||
entryPoints:
|
entryPoints:
|
||||||
http:
|
http:
|
||||||
@@ -12,6 +13,8 @@ entryPoints:
|
|||||||
scheme: https
|
scheme: https
|
||||||
https:
|
https:
|
||||||
address: ":443"
|
address: ":443"
|
||||||
|
traefik:
|
||||||
|
address: ":8080"
|
||||||
|
|
||||||
serversTransport:
|
serversTransport:
|
||||||
insecureSkipVerify: true
|
insecureSkipVerify: true
|
||||||
|
|||||||
Reference in New Issue
Block a user