gke-upgrades

google/skills

Планирует и проверяет обновления кластеров GKE Standard и Autopilot.

Звёзды24 404
Авторgoogle
Установок8K

Установка

SKILL.md

GKE Upgrades & Maintenance

Produce clear, actionable documents — upgrade plans, runbooks, or checklists — tailored to the user's environment. Output should be specific to their cluster mode, release channel, version, and workload types rather than generic advice.

Always frame guidance around the auto-upgrade model: auto-upgrade with maintenance windows and exclusions is the preferred control mechanism.

Context Gathering

Before producing any upgrade artifact, establish:

  • Cluster mode — Standard or Autopilot? (Autopilot has no node pool management, mandatory resource requests, no SSH)
  • Current and target versions — Node version skew must be within 2 minor versions of control plane.
  • Release channel — Rapid, Regular, Stable, or Extended.
  • Environment topology & Rollout Sequencing — Single vs multi-cluster, dev/staging/prod tiers, and whether Rollout Sequencing is used.
  • Workload sensitivity — StatefulSets, databases, GPU, long-running batch need special handling.

If the user provides these upfront, skip straight to the deliverable. If they're vague, fill in reasonable defaults and flag assumptions.

Core Principles

GKE versions follow Kubernetes version terminology: Major.Minor.Patch (e.g., 1.30.1-gke.1187000). A Minor version bump (e.g., 1.29 → 1.30) introduces new features and APIs. A Patch version bump (e.g., 1.30.1 → 1.30.2) introduces security and bug fixes. Ensure the user understands this distinction.

  1. Sequential control plane, skip-level node pools -- Control plane upgrades are sequential (N → N+1 → N+2). Node pools support skip-level (N+2) upgrades.
  2. Control plane first -- Control plane must be upgraded before node pools. Nodes can trail by up to 2 minor versions.
  3. Environment progression -- Always upgrade dev/staging before production. Use Rollout Sequencing (preferred) to automate and enforce this progression across environments (e.g., dev → staging → prod), or manually coordinate version progression if Rollout Sequencing is not used.
  4. Workload-aware -- Upgrade strategy depends on what's running (stateless, stateful, GPU, batch).
  5. Release channels first -- Always recommend release channels. Note that "No channel" (static versioning) is deprecated and clusters should be migrated to release channels.
  6. Rollback/Downgrade -- Control Plane patches and Node Pools (minor and patches) can be rolled back (downgraded to a target version). GKE supports a 2-step Control Plane minor upgrade where step 1 is rollbackable. Other Control Plane minor version rollbacks are NOT customer-doable and require GKE Support.
  7. Node pool upgrade ordering -- When upgrading multiple node pools, always recommend sequential ordering: upgrade non-critical/stateless pools first (acting as a canary) to verify cluster health before upgrading critical stateful (database) or GPU pools.

Release Channels

ChannelBest forSLA
RapidDev/test, early feature accessNo upgrade stability SLA
Regular (default)Most productionFull SLA
StableMission-critical, stability-firstFull SLA
ExtendedCompliance, EoS enforcement controlFull SLA

Support Lifecycle

Standard GKE versions are supported for 14 months after they become available in the Regular channel. This means:

  • Rapid channel versions may be supported for longer than 14 months (since they enter Rapid before Regular).
  • Stable channel versions may be supported for less than 14 months (since they enter Stable after Regular).
  • Extended support extends this period up to 24 months. Note that extra cost applies only during the extended support period (months 15-24).

Maintenance Windows & Exclusions

Configure maintenance windows to control auto-upgrade timing. GKE also supports node pool level maintenance exclusions (in addition to cluster level) to block upgrades for specific workloads.

Exclusion types & Limits:

  • "No upgrades" (Scope: no_upgrades): Blocks all upgrades (minor, patch, node).<!-- -->
    • Limit: Max 90 days of total exclusion duration in any rolling 365-day window.
    • Chaining constraint: Because of the rolling 365-day limit, you cannot chain multiple exclusions to cover a continuous period longer than 90 days (e.g., you cannot cover a 100-day freeze using no_upgrades).
  • "No minor or node upgrades" (Scope: no_minor_or_node_upgrades): Blocks minor and node upgrades, but allows control plane patch upgrades (low risk).<!-- -->
    • Limit: Up to 180 days per exclusion. Can be extended (by adding new exclusions) up to the minor version's End of Support (EoS).
  • "No minor upgrades" (Scope: no_minor_upgrades): Blocks minor upgrades, but allows control plane patches and node upgrades.<!-- -->
    • Limit: Up to 180 days per exclusion. Can be extended up to EoS.

Important Exclusion Rules (MUST follow when recommending exclusions and MUST include in the final text response):

  1. Auto-upgrades only: Maintenance exclusions only block automatic upgrades. Manual upgrades initiated by the user will bypass exclusions. You MUST explain this to the user.
  2. Warn against "No channel": You MUST explicitly warn that disabling release channels ("No channel" / static versioning) is deprecated and must not be used as a replacement for exclusions.
  3. Compare Scopes: You MUST explain the difference between 'No upgrades' (limitations, blocks patches) and 'No minor or node upgrades' (allows patches, longer duration). Recommend 'No minor or node upgrades' when the user wants to allow security patches/fixes while blocking minor version jumps.
  4. Handle periods > 90 days: If the user needs to block upgrades for more than 90 days, you MUST explain that 'No upgrades' is limited to 90 days in a rolling 365-day window (preventing chaining for longer continuous periods) and advise using 'No minor or node upgrades' (which can last up to 180 days per exclusion, extendable until EoS) or persistent exclusions for minor upgrades until End of Support.
  5. Version skew: Be mindful of version skew (between control plane and node pools) when using exclusions. Ensure skew does not exceed the supported 2 minor versions. Use --add-maintenance-exclusion-until-end-of-support for persistent exclusions.
  6. Correct gcloud syntax: When providing gcloud commands for exclusions, you MUST use the separate flag syntax: --add-maintenance-exclusion-name, --add-maintenance-exclusion-start, --add-maintenance-exclusion-end (or --add-maintenance-exclusion-until-end-of-support), and --add-maintenance-exclusion-scope (do NOT use a single comma-separated --add-maintenance-exclusion flag).

Mandatory Upgrade Overrides

GKE reserves the right to override user-defined maintenance windows and exclusions for mandatory operations. These overrides cannot be disabled or blocked.

Common Override Scenarios:

  • Critical Security Patches: Urgent vulnerability fixes that must be applied immediately to protect infrastructure.
  • End of Support (EoS) / End of Life (EOL) Enforcement: If a cluster is running an unsupported version, GKE will force upgrade it to a supported version.
  • Expiring Certificates: If control plane certificates (CAs) are expiring (within 30 days) and rotation is required to prevent cluster unrecoverability.
  • Maintenance Starvation: GKE requires at least 48 hours of maintenance availability in any rolling 32-day window. If exclusions block too much, GKE may force an upgrade.

Guidance (MUST follow when overrides are discussed):

  1. Correlate with Bulletins: If GKE performs an unexpected upgrade, you MUST explicitly suggest checking GKE Release Notes or Security Bulletins to correlate the event with emergency patches (do not just suggest checking Cloud Audit Logs).
  2. Design for Resilience: Workloads must be designed to survive unexpected control plane or node rotation. You MUST recommend:<!-- -->
    • Regional clusters (multi-master) to ensure API availability during control plane upgrades.
    • Multi-zone workload deployments.
    • Replicas > 1 for critical deployments.
    • Properly configured Pod Disruption Budgets (PDBs) that are not overly restrictive.

Upgrade Planning

When asked to plan an upgrade, produce a structured document covering:

  • Version compatibility (breaking changes, deprecated APIs) (minor version upgrades only)
  • Upgrade path (sequential minor version upgrades) (minor version upgrades only)
  • Node pool upgrade strategy (Standard only)
  • Workload readiness (PDBs, resource requests)
  • Rollback/Contingency procedure (how to revert node pools or coordinate with GKE Support for master rollback)

Compatibility Search Rule:

  • If compatibility information (e.g., third-party operator compatibility, GPU driver/CUDA compatibility matrix) is not immediately available in the workspace or via a quick web search, do NOT loop or make multiple search attempts. Instead, list the compatibility verification as a critical pre-upgrade action item for the user in the checklist.

Node Pool Strategy (Standard Only)

Recommend Surge upgrade as the default and most common strategy, with per-pool settings:

  • Stateless: Higher maxSurge (2-3) for speed, maxUnavailable=0 for safety.
  • Stateful/DB: maxSurge=1, maxUnavailable=0 (conservative).
  • GPU (fixed reservation): maxSurge=0, maxUnavailable=1 (no surge capacity).
  • Large (50+ nodes): maxSurge=20, maxUnavailable=0 (max parallelism).

For mission-critical workloads requiring fast rollback or strict validation, recommend Standard Blue-Green upgrades. Acknowledge Autoscaled Blue-Green as an option for disruption-sensitive workloads, but note it is currently in preview and may have capacity requirements.

Upgrade Ordering (User-initiated only): When planning manual upgrades, specify the sequence of node pool upgrades. Recommend upgrading stateless pools first, verifying cluster stability, and then upgrading stateful/GPU pools. For auto-upgrades, GKE automatically manages sequential node pool upgrades.

For standard command sequences and runbook templates, see references/runbook-template.md.

Large-Scale AI/ML Clusters (GPU/TPU)

  • No Live Migration: GPU VMs do not support live migration; GKE upgrades will force pod restarts. You MUST explain this.
  • Fixed Reservations & Quota: H100/A100 typically use fixed reservations with no spare quota.<!-- -->
    • Recommend rolling upgrade with zero surge: maxSurge=0, maxUnavailable=1. This releases the reservation of the node being upgraded before provisioning its replacement.
    • You MUST explain that Blue-Green upgrades are not feasible because they require double (2x) the GPU resources (both quota and reservations) during the transition.
  • Driver Coupling: The GPU driver is tightly coupled with the target node OS image version.<!-- -->
    • You MUST explain that node upgrades update the underlying OS image, introducing new Linux Kernels and hardware drivers (NVIDIA).
    • You MUST warn that driver updates can break CUDA compatibility.
    • You MUST recommend comparing OS image, kernel version (uname -r), and driver versions between old (working) and new (non-working) nodes to diagnose driver issues.
    • You MUST recommend deploying a test pod (e.g., vector addition) to verify GPU access.
    • You MUST recommend rolling back the node pool to the previous version as a quick mitigation if production is blocked.
    • You MUST advise updating workload dependencies (CUDA version in container images) to match the new driver before attempting the upgrade again.
    • You MUST advise upgrading and testing CUDA compatibility in a staging environment/cluster before applying the upgrade to the production GPU node pools.
  • Operational Safety:<!-- -->
    • You MUST recommend using GKE maintenance exclusions to block auto-upgrades during active training campaigns.
    • Перед ручным обновлением изолируйте GPU-узлы и дождитесь, пока активные задачи обучения сохранят контрольные точки или завершатся.
  • Особенности TPU: срезы TPU пересоздаются атомарно (не поэтапно); обслуживание одного среза перезапускает все срезы в среде.

Контрольные списки

Формируйте контрольные списки в виде копируемого markdown с флажками. См. references/checklists.md для полных шаблонов контрольных списков до и после обновления. Адаптируйте их к среде пользователя.

Stateful-нагрузки: При наличии stateful-нагрузок (баз данных) всегда включайте в контрольный список перед обновлением проверки завершения резервного копирования PV и проверку политик возврата PV (например, Retain vs Delete).

Контрольные списки Autopilot: Для кластеров Autopilot убедитесь, что контрольные списки включают:

  • Проверку resources.requests на всех контейнерах (требование Autopilot).
  • Вы ОБЯЗАНЫ включить конкретные kubectl команды для проверки устаревания API, в частности: kubectl get --raw /metrics | grep apiserver_request_total | grep deprecated чтобы проверить, используют ли какие-либо активные нагрузки устаревшие API.
  • Проверку PDB, чтобы убедиться, что они не блокируют вытеснение узлов (хотя GKE управляет узлами, PDB всё равно учитываются).
  • Выявление и удаление "bare pods" (подов, не управляемых ReplicaSet/Deployment/StatefulSet), так как они не будут перепланированы при пересоздании узлов.
  • Проверку terminationGracePeriodSeconds чтобы убедиться, что у подов достаточно времени для корректного завершения при пересоздании узлов.

Runbook-и обслуживания

Формируйте пошаговые runbook-и с фактическими gcloud и kubectl командами. См. references/runbook-template.md для стандартных последовательностей команд.

Паузы окна обслуживания

При диагностике "застрявшего" обновления учитывайте, не было ли оно приостановлено окном обслуживания:

  • Поведение тихой паузы: Если окно обслуживания закрывается до завершения обновления (автоматического или ручного), GKE намеренно приостанавливает развёртывание, чтобы предотвратить сбои вне разрешённого времени.
  • Состояние смешанных версий: Кластер остаётся в стабильном состоянии смешанных версий (часть узлов обновлена, часть нет). Вы ОБЯЗАНЫ явно указать, что это поддерживаемый и безопасный ожидаемый результат.
  • Возобновление: Обновление автоматически возобновится при открытии следующего окна обслуживания.
  • Мера для немедленного завершения: Если пользователь хочет завершить обновление немедленно, вы ОБЯЗАНЫ предложить временно расширить окно обслуживания чтобы включить текущее время (например, используя gcloud container clusters update ... --maintenance-window-start ... --maintenance-window-duration ...). Не предлагайте повторно запускать ручное обновление или обходить окно.

Устранение неполадок

Когда пользователь сообщает о застрявшем или неудачном обновлении, вы ОБЯЗАНЫ систематически проанализировать и рассмотреть ВСЕ 5 возможных причин в вашем итоговом ответе. Не пропускайте проверки, даже если подозреваете одну из них как основную причину:

  1. PDB блокирует вытеснение: Определите, есть ли у какого-либо PDB ALLOWED DISRUPTIONS = 0 используя kubectl get pdb -A.
  2. Ограничения ресурсов: Проверьте, не застряли ли поды в Pending из-за лимитов ёмкости.
  3. Bare pods: Выявите поды без owner references, которые блокируют вытеснение (рекомендуйте удалить их).
  4. Admission webhooks: Проверьте, не отклоняют ли Validating/Mutating webhooks создание подов на новых узлах.
  5. Проблемы подключения PVC: Проверьте сбои подключения томов (особенно ограничения зон).

Правило нехватки ресурсов / исчерпания квоты:

  • Если обновление застряло из-за ZONE_RESOURCE_POOL_EXHAUSTED (нехватки ресурсов) или QUOTA_EXCEEDED для ресурсов Compute Engine:<!-- -->
    1. Рекомендуйте изменить стратегию обновления на maxSurge=0 (rolling in-place), чтобы обойти лимиты квоты.
    2. Для QUOTA_EXCEEDED, предложите запросить увеличение квоты в Google Cloud.
    3. Вы ОБЯЗАНЫ предложить перенести нагрузки или создать новые пулы узлов в другой зоне или регионе где доступна ёмкость/квота, в качестве меры.

Обратитесь к references/troubleshooting.md для точных диагностических команд и процедур исправления на каждом шаге.

Ссылки

  • GKE Release Notes
  • Upgrading GKE Clusters
  • Maintenance Windows & Exclusions
  • Rollout Sequencing Concepts
  • Configure Rollout Sequencing

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: gke-upgrades](https://darkplay.ru/ai/skills/google-skills-gke-upgrades)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

aws-transformanthropics · Миграция, модернизация и обновление кодовых баз на AWS: .NET Framework в .NET 8/10, COBOL…
100 комп.
expoanthropics · Официальные навыки Expo для создания, развёртывания, обновления и отладки приложений…
100 комп.
qdrant-skillsanthropics · Навыки для векторного поиска Qdrant: масштабирование, оптимизация производительности…
100 комп.
qdrant-skillsanthropics · Навыки агентов для векторного поиска Qdrant: масштабирование, оптимизация…
233 комп.
dotnet-test-migrationdotnet · Навыки и агент-оркестратор для миграции тестовых фреймворков и платформ .NET: обновление…
112 комп.
expoanthropics · Официальные навыки Expo для сборки, развёртывания, обновления и отладки приложений React…
38 комп.
gnosis-mcpanthropics · База знаний без настройки: загружает markdown-документацию и отдаёт её как…
38 комп.
qdrant-skillsanthropics · Навыки для Qdrant: масштабирование, производительность, качество поиска, мониторинг и SDK.
38 комп.
semaanthropics · Sema добавляет Claude словарь из 452 когнитивных паттернов с content-addressed…
38 комп.
skill-doctoranthropics · Проверяет, диагностирует и улучшает ваши навыки и агенты Claude Code.
38 комп.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8