feat: adding rke2
Build / precommit (pull_request) Successful in 5m6s

- manage rke2 repos
- add rke2 module (init, params, install, config, service)
- split roles::infra::k8s::node -> control/compute roles
- moved common k8s config into k8s.yaml
- add bootstrap_node, manage server and token fields in rke2 config
- manage install of helm
- manage node attributes (from puppet facts)
- manage frr exclusions for service/cluster network
This commit is contained in:
2025-09-06 23:01:57 +10:00
parent 0665873dc8
commit d95883f5ee
23 changed files with 697 additions and 40 deletions
+2
View File
@@ -0,0 +1,2 @@
#!/usr/bin/bash
/var/lib/rancher/rke2/bin/kubectl --kubeconfig=/etc/rancher/rke2/rke2.yaml get --raw /livez
+10
View File
@@ -0,0 +1,10 @@
---
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: rke2-canal
namespace: kube-system
spec:
valuesContent: |-
flannel:
iface: "loopback0"
@@ -0,0 +1,14 @@
---
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: rke2-cilium
namespace: kube-system
spec:
valuesContent: |-
hubble:
enabled: true
relay:
enabled: true
ui:
enabled: true
@@ -0,0 +1,17 @@
---
apiVersion: metallb.io/v1beta1
kind: BGPAdvertisement
metadata:
name: au-syd1
namespace: metallb-system
spec:
ipAddressPools:
- common-pool
- dmz-pool
aggregationLength: 32
peers:
- au-syd1-gw1
nodeSelectors:
- matchLabels:
country: au
region: syd1
@@ -0,0 +1,15 @@
---
apiVersion: metallb.io/v1beta2
kind: BGPPeer
metadata:
name: au-syd1-gw1
namespace: metallb-system
spec:
myASN: 64513
peerASN: 64512
peerAddress: 198.18.21.160
peerPort: 179
nodeSelectors:
- matchLabels:
country: au
region: syd1
@@ -0,0 +1,18 @@
---
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: common-pool
namespace: metallb-system
spec:
addresses:
- 198.18.200.0/24
---
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: dmz-pool
namespace: metallb-system
spec:
addresses:
- 198.18.199.0/24