PostgreSQL
September 10, 2022
Операции с кластером: stop, start, delete
Вкратце пробежимся по операциям. Из названия которых понятно что они делают. В конце удалим тестовый кластер.
export POSTGRES=$(yc postgresql cluster get cam-postgres1 --format=json | jq -r ".id") export FOLDER_ID=$(yc config get folder-id) yc postgres cluster stop $POSTGRES \ --folder-id $FOLDER_ID \ --async
export POSTGRES=$(yc postgresql cluster get cam-postgres1 --format=json | jq -r ".id") export FOLDER_ID=$(yc config get folder-id) yc postgres cluster start $POSTGRES \ --folder-id $FOLDER_ID \ --async
export POSTGRES=$(yc postgresql cluster get cam-postgres1 --format=json | jq -r ".id") export FOLDER_ID=$(yc config get folder-id) yc postgres cluster delete $POSTGRES \ --folder-id $FOLDER_ID \ --async
Если у кластера стоит защита от удаления, то предварительно её надо снять.
Полезные ссылки.
Снять защиту от удаления: https://teletype.in/@cameda/pO-SqqAMnZc
September 10, 2022, 11:42
0 views
0 reposts