feat(upgrades): Updated k3s, metalls, and kubevip and fixed bugs (#46)

This commit is contained in:
Techno Tim 2022-07-27 23:13:43 -05:00 committed by GitHub
parent 1830b9c9a1
commit a33ed487e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1633 additions and 239 deletions

View File

@ -1,5 +1,5 @@
---
k3s_version: v1.23.4+k3s1
k3s_version: v1.24.3+k3s1
# this is the user that has ssh access to these machines
ansible_user: ansibleuser
systemd_dir: /etc/systemd/system
@ -22,11 +22,11 @@ extra_server_args: "--no-deploy servicelb --no-deploy traefik"
extra_agent_args: ""
# image tag for kube-vip
kube_vip_tag_version: "v0.4.4"
kube_vip_tag_version: "v0.5.0"
# image tag for metal lb
metal_lb_speaker_tag_version: "v0.12.1"
metal_lb_controller_tag_version: "v0.12.1"
metal_lb_speaker_tag_version: "v0.13.4"
metal_lb_controller_tag_version: "v0.13.4"
# metallb ip range for load balancer
metal_lb_ip_range: "192.168.30.80-192.168.30.90"

View File

@ -51,7 +51,7 @@
- name: Copy metallb ConfigMap manifest to first master
template:
src: "metallb.configmap.j2"
src: "metallb.ipaddresspool.j2"
dest: "/var/lib/rancher/k3s/server/manifests/metallb-configmap.yaml"
owner: root
group: root

View File

@ -1,13 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
namespace: metallb-system
name: config
data:
config: |
address-pools:
- name: default
protocol: layer2
addresses:
- {{ metal_lb_ip_range }}

View File

@ -0,0 +1,14 @@
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: first-pool
namespace: metallb-system
spec:
addresses:
- {{ metal_lb_ip_range }}
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: default
namespace: metallb-system

File diff suppressed because it is too large Load Diff

View File

@ -30,4 +30,3 @@ subjects:
- kind: ServiceAccount
name: kube-vip
namespace: kube-system