added inventory
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
/*
|
|
||||||
!.gitignore
|
|
||||||
!sample/
|
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
---
|
||||||
|
k3s_version: v1.24.6+k3s1
|
||||||
|
# this is the user that has ssh access to these machines
|
||||||
|
ansible_user: lino
|
||||||
|
systemd_dir: /etc/systemd/system
|
||||||
|
|
||||||
|
# Set your timezone
|
||||||
|
system_timezone: "Europe/Lisbon"
|
||||||
|
|
||||||
|
# interface which will be used for flannel
|
||||||
|
flannel_iface: "eth0"
|
||||||
|
|
||||||
|
# apiserver_endpoint is virtual ip-address which will be configured on each master
|
||||||
|
apiserver_endpoint: "10.0.2.102"
|
||||||
|
|
||||||
|
# k3s_token is required masters can talk together securely
|
||||||
|
# this token should be alpha numeric only
|
||||||
|
k3s_token: "7qXiuKpSY9uLwdVSNSnEF5RkttoERixCpc2EVJW7vh7Ws4NMN3"
|
||||||
|
|
||||||
|
# The IP on which the node is reachable in the cluster.
|
||||||
|
# Here, a sensible default is provided, you can still override
|
||||||
|
# it for each of your hosts, though.
|
||||||
|
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 }}"
|
||||||
|
|
||||||
|
# these arguments are recommended for servers as well as agents:
|
||||||
|
extra_args: >-
|
||||||
|
--flannel-iface={{ flannel_iface }}
|
||||||
|
--node-ip={{ k3s_node_ip }}
|
||||||
|
|
||||||
|
# change these to your liking, the only required are: --disable servicelb, --tls-san {{ apiserver_endpoint }}
|
||||||
|
extra_server_args: >-
|
||||||
|
{{ extra_args }}
|
||||||
|
{{ '--node-taint node-role.kubernetes.io/master=true:NoSchedule' if k3s_master_taint else '' }}
|
||||||
|
--tls-san {{ apiserver_endpoint }}
|
||||||
|
--disable servicelb
|
||||||
|
--disable traefik
|
||||||
|
extra_agent_args: >-
|
||||||
|
{{ extra_args }}
|
||||||
|
|
||||||
|
# image tag for kube-vip
|
||||||
|
kube_vip_tag_version: "v0.5.5"
|
||||||
|
|
||||||
|
# image tag for metal lb
|
||||||
|
metal_lb_speaker_tag_version: "v0.13.6"
|
||||||
|
metal_lb_controller_tag_version: "v0.13.6"
|
||||||
|
|
||||||
|
# metallb ip range for load balancer
|
||||||
|
metal_lb_ip_range: "10.1.1.2-10.1.1.254"
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
mac_addr: 32:47:89:3f:1a:e2
|
||||||
|
node: revali
|
||||||
|
ansible_host: 10.0.3.4
|
||||||
|
cores: 2
|
||||||
|
memory: 4096
|
||||||
|
disk: 200G
|
||||||
|
vmid: 603
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
mac_addr: ee:36:d5:79:f8:ff
|
||||||
|
node: urbosa
|
||||||
|
ansible_host: 10.0.3.3
|
||||||
|
cores: 3
|
||||||
|
memory: 2048
|
||||||
|
disk: 80G
|
||||||
|
vmid: 604
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
mac_addr: de:05:ff:02:47:d7
|
||||||
|
node: epona
|
||||||
|
ansible_host: 10.0.3.2
|
||||||
|
cores: 4
|
||||||
|
memory: 8192
|
||||||
|
disk: 75G
|
||||||
|
vmid: 601
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
mac_addr: 0e:a0:ff:8c:70:df
|
||||||
|
node: mipha
|
||||||
|
ansible_host: 10.0.3.1
|
||||||
|
cores: 4
|
||||||
|
memory: 6144
|
||||||
|
disk: 75G
|
||||||
|
vmid: 602
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[master]
|
||||||
|
k3s-server-mipha
|
||||||
|
k3s-server-epona
|
||||||
|
|
||||||
|
[node]
|
||||||
|
k3s-agent-urbosa
|
||||||
|
k3s-agent-revali
|
||||||
Reference in New Issue
Block a user