- Go to the desired pods:
kubectl -n d8-keepalived exec -it keepalived-<name> -- sh
- Edit the
/etc/keepalived/keepalived.conf file and in the line with the priority parameter, replace the value with the number of keepalived pods + 1.
- Send a signal to reread the configuration:
kill -HUP 1 .
|
- Зайдите в нужный под:
kubectl -n d8-keepalived exec -it keepalived-<name> -- sh .
- Отредактируйте файл
vi /etc/keepalived/keepalived.conf , где в строке с параметром priority замените значение на число подов keepalived + 1.
- Отправьте сигнал на перечитывание конфигурации:
kill -HUP 1 .
|