Настройка режима обновления | Setting up the update mode |
Управлять обновлением DKP можно следующими способами:
| You can manage DKP updates in the following ways:
|
Конфигурация окон обновлений | Update windows configuration |
Управлять временными окнами, когда Deckhouse будет устанавливать обновления автоматически, можно следующими способами:
| You can configure the time windows when Deckhouse will automatically install updates in the following ways:
|
Пример настройки двух ежедневных окон обновлений: с 8:00 до 10:00 и c 20:00 до 22:00 (UTC): | An example of setting up two daily update windows — from 8 a.m. to 10 a.m. and from 8 p.m. to 10 p.m. (UTC): |
yaml apiVersion: deckhouse.io/v1alpha1 kind: ModuleConfig metadata: name: deckhouse spec: version: 1 settings: releaseChannel: EarlyAccess update: windows:
| yaml apiVersion: deckhouse.io/v1alpha1 kind: ModuleConfig metadata: name: deckhouse spec: version: 1 settings: releaseChannel: EarlyAccess update: windows:
|
Также можно настроить обновления в определенные дни, например по вторникам и субботам с 18:00 до 19:30 (UTC): | You can also set up updates on certain days, for example, on Tuesdays and Saturdays from 6 p.m. to 7:30 p.m. (UTC): |
yaml apiVersion: deckhouse.io/v1alpha1 kind: ModuleConfig metadata: name: deckhouse spec: version: 1 settings: releaseChannel: Stable update: windows:
| yaml apiVersion: deckhouse.io/v1alpha1 kind: ModuleConfig metadata: name: deckhouse spec: version: 1 settings: releaseChannel: Stable update: windows:
|
Ручное подтверждение обновлений | Manual update confirmation |
Ручное подтверждение обновления версии Deckhouse предусмотрено в следующих случаях:
| Manual confirmation of Deckhouse version updates is provided in the following cases:
|
Это значит, что параметр settings.update.mode ModuleConfig | This means that the parameter settings.update.mode in the ModuleConfig |
shell kubectl patch DeckhouseRelease v1.66.2 –type=merge -p=’{“approved”: true}’ | shell kubectl patch DeckhouseRelease v1.66.2 –type=merge -p=’{“approved”: true}’ |
|
|
Это значит, что параметр update.disruptionApprovalMode ModuleConfig | This means that the parameter update.disruptionApprovalMode in the |
Для подтверждения потенциального опасного обновления необходимо установить аннотацию | To confirm a disruptive update, you need to set the annotation |
shell kubectl annotate DeckhouseRelease v1.66.2 release.deckhouse.io/disruption-approved=true
| shell kubectl annotate DeckhouseRelease v1.66.2 release.deckhouse.io/disruption-approved=true |
Это значит, что у NodeGroup, соответствующего группе узлов, установлен параметр spec.disruptions.approvalMode в |
|
Для обновления каждого узла в такой группе на узел нужно установить аннотацию | This means that the corresponding NodeGroup has the parameter spec.disruptions.approvalMode set to |
shell kubectl annotate node ${NODE_1} update.node.deckhouse.io/disruption-approved= | For updating each node in such a group, the node must have |
Оповещение об обновлении Deckhouse | shell kubectl annotate node ${NODE_1} update.node.deckhouse.io/disruption-approved= |
В режиме обновлений | Deckhouse update notification |
Пример настройки оповещения: | In the |
yaml apiVersion: deckhouse.io/v1alpha1 kind: ModuleConfig metadata: name: deckhouse spec: version: 1 settings: update: releaseChannel: Stable mode: Auto notification: webhook: https://release-webhook.mydomain.com | An example: |
После появления новой минорной версии Deckhouse на используемом канале обновлений, но до момента применения ее в кластере на адрес webhook’а будет выполнен POST-запрос. | yaml apiVersion: deckhouse.io/v1alpha1 kind: ModuleConfig metadata: name: deckhouse spec: version: 1 settings: update: releaseChannel: Stable mode: Auto notification: webhook: https://release-webhook.mydomain.com |
Чтобы всегда иметь достаточно времени для реакции на оповещение об обновлении Deckhouse, достаточно настроить параметр minimalNotificationTime. В этом случае обновление случится по прошествии указанного времени с учетом окон обновлений. | After a new Deckhouse minor version appears on the update channel, a POST request will be executed to the webhook’s URL before it is applied in the cluster. |
Пример: | Set the minimalNotificationTime parameter to have enough time to react to a Deckhouse update notification. In this case, the update will happen after the specified time, considering the update windows. |
yaml apiVersion: deckhouse.io/v1alpha1 kind: ModuleConfig metadata: name: deckhouse spec: version: 1 settings: update: releaseChannel: Stable mode: Auto notification: webhook: https://release-webhook.mydomain.com minimalNotificationTime: 8h | An example: |
Если не указать адрес в параметре update.notification.webhook, но указать время в параметре update.notification.minimalNotificationTime, применение новой версии все равно будет отложено как минимум на указанное в параметре | yaml apiVersion: deckhouse.io/v1alpha1 kind: ModuleConfig metadata: name: deckhouse spec: version: 1 settings: update: releaseChannel: Stable mode: Auto notification: webhook: https://release-webhook.mydomain.com minimalNotificationTime: 8h |
Сбор информации для отладки | If you do not specify the address in the update.notification.webhook parameter, but specify the time in the update.notification.minimalNotificationTime parameter, then the release will still be postponed for at least the time specified in the |
О сборе отладочной информации читайте в FAQ. | Collect debug info |
Read the FAQ to learn more about collecting debug information. |