feat: Added k3s, metallb, tried adding traefik

This commit is contained in:
Lino Silva
2022-11-15 09:35:05 +00:00
parent f783d35513
commit 645dacdca4
47 changed files with 49105 additions and 196 deletions
+33 -14
View File
@@ -11,7 +11,7 @@ system_timezone: "Europe/Lisbon"
flannel_iface: "eth0"
# apiserver_endpoint is virtual ip-address which will be configured on each master
apiserver_endpoint: "10.0.2.102"
apiserver_endpoint: "10.0.3.1"
# k3s_token is required masters can talk together securely
# this token should be alpha numeric only
@@ -23,7 +23,7 @@ k3s_token: "7qXiuKpSY9uLwdVSNSnEF5RkttoERixCpc2EVJW7vh7Ws4NMN3"
k3s_node_ip: '{{ ansible_facts[flannel_iface]["ipv4"]["address"] }}'
# Disable the taint manually by setting: k3s_master_taint = false
k3s_master_taint: "{{ true if groups['node'] | default([]) | length >= 1 else false }}"
k3s_master_taint: false
# these arguments are recommended for servers as well as agents:
extra_args: >-
@@ -51,17 +51,36 @@ metal_lb_controller_tag_version: "v0.13.6"
metal_lb_ip_range: "10.1.1.2-10.1.1.254"
lxc_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
38303735306236303463613632623161643633663631303931396564346565666236643562316264
6533643331306364653564653763356537303932313531350a393261643137636232616335376461
66383966333765626539363561613361393665616333303964373761356166623766663232303063
3138353333373935660a383230393330646538303933336366383736643333623663333934663131
3064
$ANSIBLE_VAULT;1.1;AES256
38303735306236303463613632623161643633663631303931396564346565666236643562316264
6533643331306364653564653763356537303932313531350a393261643137636232616335376461
66383966333765626539363561613361393665616333303964373761356166623766663232303063
3138353333373935660a383230393330646538303933336366383736643333623663333934663131
3064
proxmox_api_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
35376334616332386130656335663736343337396532663266383934643632363664646631653935
6533343936353734343761343465646365616130643130360a316234333036303738663566666364
61653638373830383733323563373862346662363339656632643661336533363162616435616531
6331326462356366320a303331616366356333306638386130666538633833623162653934616338
3566
$ANSIBLE_VAULT;1.1;AES256
35376334616332386130656335663736343337396532663266383934643632363664646631653935
6533343936353734343761343465646365616130643130360a316234333036303738663566666364
61653638373830383733323563373862346662363339656632643661336533363162616435616531
6331326462356366320a303331616366356333306638386130666538633833623162653934616338
3566
traefik_http_auth_user: !vault |
$ANSIBLE_VAULT;1.1;AES256
38323532616336373939646333613338626431363466633631343162636235623563393135653231
3961383965356631613164303566393632323938386664360a373037616335643662613564353130
30353832376431633834336234386161313062373437613132623733646166303639313364373637
3933626639646536320a303163353835633837356530613931346165353939363235373561333836
39366266303064393334383835323330353934643862323330343337393761353166393333376131
33303439393531303031653361393530313930363039646566613831373366326432653634653165
313735383263623836363030386531613033
cloudflare_api_key: !vault |
$ANSIBLE_VAULT;1.1;AES256
38363363386466666266613930386237623430646531303734613863306530666530376433633339
3166373361393839363439326661396136616637393865630a666637366132643035343832666335
33376139643533313730313135653064393239316162376339653965313366643565643664666534
6631393564333230370a303634643030346166383235643666356164393232643832333238313664
38346161306138653735303861646638653830633938326566663136393862643264353437623963
3462616435653132623563316231343739333761653365333437
+10 -9
View File
@@ -1,11 +1,12 @@
---
mac_addr: de:05:ff:02:47:d7
hostname: k3s-master-epona
ip_addr: 10.0.2.2
lxc_host: 10.0.3.2
cores: 4
memory: 8192
disk: 75
vmid: 601
ansible_user: root
ansible_host: 10.0.2.2
ansible_ssh_pass: "{{ proxmox_api_password }}"
ip_addr: 10.0.2.2
k3s_mac_addr: de:05:ff:02:47:d7
k3s_hostname: k3s-master-epona
k3s_lxc_host: 10.0.3.2
k3s_cores: 4
k3s_memory: 8192
k3s_disk: 75
k3s_vmid: 601
-9
View File
@@ -1,9 +0,0 @@
---
mac_addr: ee:36:d5:79:f8:ff
node: urbosa
lxc_host: 10.0.3.3
cores: 3
memory: 2048
disk: 8
vmid: 604
@@ -0,0 +1,4 @@
---
ansible_user: root
ansible_host: 10.0.3.4
ansible_ssh_pass: "{{ proxmox_api_password }}"
@@ -0,0 +1,4 @@
---
ansible_user: root
ansible_host: 10.0.3.3
ansible_ssh_pass: "{{ proxmox_api_password }}"
@@ -0,0 +1,4 @@
---
ansible_user: root
ansible_host: 10.0.3.2
ansible_ssh_pass: "{{ proxmox_api_password }}"
@@ -0,0 +1,4 @@
---
ansible_user: root
ansible_host: 10.0.3.1
ansible_ssh_pass: "{{ proxmox_api_password }}"
+10 -9
View File
@@ -1,11 +1,12 @@
---
mac_addr: 0e:a0:ff:8c:70:df
hostname: k3s-master-mipha
ip_addr: 10.0.2.3
lxc_host: 10.0.3.1
cores: 4
memory: 6144
disk: 75
vmid: 602
ansible_user: root
ansible_host: 10.0.2.3
ansible_ssh_pass: "{{ proxmox_api_password }}"
ip_addr: 10.0.2.3
k3s_mac_addr: 0e:a0:ff:8c:70:df
k3s_hostname: k3s-master-mipha
k3s_lxc_host: 10.0.3.1
k3s_cores: 4
k3s_memory: 6144
k3s_disk: 75
k3s_vmid: 602
+10 -9
View File
@@ -1,11 +1,12 @@
---
mac_addr: 32:47:89:3f:1a:e2
hostname: k3s-agent-revali
ansible_user: root
ansible_host: 10.0.2.4
ansible_ssh_pass: "{{ proxmox_api_password }}"
ip_addr: 10.0.2.4
lxc_host: 10.0.3.4
cores: 2
memory: 4096
disk: 200
vmid: 603
ansible_user: root
k3s_mac_addr: 32:47:89:3f:1a:e2
k3s_hostname: k3s-agent-revali
k3s_lxc_host: 10.0.3.4
k3s_cores: 2
k3s_memory: 4096
k3s_disk: 200
k3s_vmid: 603
+10 -9
View File
@@ -1,11 +1,12 @@
---
mac_addr: ee:36:d5:79:f8:ff
hostname: k3s-agent-urbosa
ip_addr: 10.0.2.5
lxc_host: 10.0.3.3
cores: 3
memory: 2048
disk: 80
vmid: 604
ansible_user: root
ansible_host: 10.0.2.5
ansible_ssh_pass: "{{ proxmox_api_password }}"
ip_addr: 10.0.2.5
k3s_mac_addr: ee:36:d5:79:f8:ff
k3s_hostname: k3s-agent-urbosa
k3s_lxc_host: 10.0.3.3
k3s_cores: 3
k3s_memory: 2048
k3s_disk: 80
k3s_vmid: 604
+10 -7
View File
@@ -1,14 +1,17 @@
[frigate]
frigate
[master]
mipha
epona
k3s-master-mipha
k3s-master-epona
[node]
urbosa
revali
k3s-agent-urbosa
k3s-agent-revali
[k3s_cluster:children]
master
node
[baremetal]
mipha
epona
urbosa
revali