mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-21 23:40:19 +00:00
update
This commit is contained in:
parent
7be38c6352
commit
99ae994da7
2 changed files with 11 additions and 2 deletions
|
@ -11,3 +11,10 @@ spec:
|
|||
k8sServicePort: 6443
|
||||
cni:
|
||||
chainingMode: "none"
|
||||
# Configure IPAM/PodCIDR
|
||||
ipam:
|
||||
mode: cluster-pool
|
||||
operator:
|
||||
clusterPoolIPv4PodCIDRList:
|
||||
- "<lb-network>"
|
||||
clusterPoolIPv4MaskSize: 27
|
||||
|
|
|
@ -55,8 +55,8 @@ all=($master1 $master2 $master3 $worker1 $worker2)
|
|||
# Array of all minus master1
|
||||
allnomaster1=($master2 $master3 $worker1 $worker2)
|
||||
|
||||
#Loadbalancer IP range
|
||||
lbrange=192.168.3.60-192.168.3.80
|
||||
#Loadbalancer IP range - this is set to /27 in rke2-cilium-config.yaml
|
||||
lbrange=192.168.3.64
|
||||
|
||||
#ssh certificate name variable
|
||||
certName=id_rsa
|
||||
|
@ -133,6 +133,7 @@ echo 'export KUBECONFIG=/etc/rancher/rke2/rke2.yaml' >> ~/.bashrc ; echo 'export
|
|||
|
||||
curl -LJO https://raw.githubusercontent.com/JamesTurland/JimsGarage/main/Kubernetes/RKE2-Cilium/rke2-cilium-config.yaml
|
||||
sudo cat rke2-cilium-config.yaml | sed 's/<KUBE_API_SERVER_IP>/'$master1'/g' > /var/lib/rancher/rke2/server/manifests/rke2-cilium-config.yaml
|
||||
sudo cat /var/lib/rancher/rke2/server/manifests/rke2-cilium-config.yaml | sed 's/<lb-network>/'$lbrange'/g' > /var/lib/rancher/rke2/server/manifests/rke2-cilium-config.yaml
|
||||
|
||||
curl -sfL https://get.rke2.io | sh -
|
||||
systemctl enable rke2-server.service
|
||||
|
@ -174,6 +175,7 @@ for newnode in "${masters[@]}"; do
|
|||
|
||||
curl -LJO https://raw.githubusercontent.com/JamesTurland/JimsGarage/main/Kubernetes/RKE2-Cilium/rke2-cilium-config.yaml
|
||||
sudo cat rke2-cilium-config.yaml | sed 's/<KUBE_API_SERVER_IP>/'$master1'/g' > /var/lib/rancher/rke2/server/manifests/rke2-cilium-config.yaml
|
||||
sudo cat /var/lib/rancher/rke2/server/manifests/rke2-cilium-config.yaml | sed 's/<lb-network>/'$lbrange'/g' > /var/lib/rancher/rke2/server/manifests/rke2-cilium-config.yaml
|
||||
|
||||
curl -sfL https://get.rke2.io | sh -
|
||||
systemctl enable rke2-server.service
|
||||
|
|
Loading…
Reference in a new issue