Переход на Cilium Gateway (Hub)
Статья в разработке. Ищем пути поднятия системы
Ранее мы рассмотрели переход для редакции Enterprise для single node. А теперь рассмотрим редакцию Hub на 4х узлах кластера.
Итак мы имеем кластер следующего вида:
# k8s status
cluster status: ready
control plane nodes: 192.168.56.151:6400 (voter), 192.168.56.152:6400 (voter), 192.168.56.153:6400 (voter)
high availability: yes
datastore: etcd
network: enabled
dns: enabled at 10.152.183.211
ingress: disabled
load-balancer: enabled, L2 mode
local-storage: enabled at /var/snap/k8s/common/rawfile-storage
gateway enabled
# kubectl get nodes -A -owide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
hc1n1 Ready control-plane,worker 189d v1.33.11 192.168.56.151 <none> Ubuntu 24.04.4 LTS 6.17.13-19-pve containerd://1.7.31
hc1n2 Ready control-plane,worker 189d v1.33.11 192.168.56.152 <none> Ubuntu 24.04.4 LTS 6.17.13-19-pve containerd://1.7.31
hc1n3 Ready control-plane,worker 136d v1.33.11 192.168.56.153 <none> Ubuntu 24.04.4 LTS 6.17.13-19-pve containerd://1.7.31
hc1n4 Ready worker 186d v1.33.11 192.168.56.154 <none> Ubuntu 24.04.4 LTS 7.0.14-5-pve containerd://1.7.31
При этом как видно у нас уже включен load-balancer, т.к. у нас ранее установлен portainer в LB варианте:
portainer service/portainer-agent LoadBalancer 10.152.183.27 192.168.56.170 9001:31417/TCP 186d
portainer service/portainer-agent-headless ClusterIP None <none> <none> 186d
Создаем gateway из прошлой статьи. У нас подцепился нужный IP из преднастроенного пула:
kube-system cilium-gateway-cilium-gateway LoadBalancer 10.152.183.249 192.168.56.171 80:31186/TCP 15s
Применяем патч и обновляет ELMA365:
helm upgrade --install elma365 ./elma365 -f values-elma365.yaml --timeout=30m --debug --wait
И вот больше нет доступа к нашим ресурсам. Смотрим что там у нас с HTTPRoute:
# kubectl get httproute -A
NAMESPACE NAME HOSTNAMES AGE
default balancer ["hc1.rmg365.ru"] 11m
default fileprotection ["hc1.rmg365.ru"] 11m
default front ["hc1.rmg365.ru"] 11m
default hydra-adaptor ["hc1.rmg365.ru"] 11m
default linkhub ["hc1.rmg365.ru"] 11m
default main ["hc1.rmg365.ru"] 11m
default main-publicapi ["hc1.rmg365.ru"] 11m
default notifier ["hc1.rmg365.ru"] 11m
default notigate ["hc1.rmg365.ru"] 11m
default vahter ["hc1.rmg365.ru"] 11m
default web-forms ["hc1.rmg365.ru"] 11m
Возвращаемся к танцам с бубном касательно тенантов - это периодическим еняется от версии к версии...
... в процессе написания