Live
Ansible Automation Platform slashes server provisioning time for a global law firmConsolidating Multi‑Region Snowflake Warehouses into BigQuery: Architecture and Ops TakeawaysNVIDIA Blackwell GPUs and Jetson Edge AI: Architectural Shifts for EngineersCobertura XML validation added to GitHub Actions code coverage uploadRunning Local LLMs with AlloyDB Omni: Architecture and Ops GuideEnterprise AI Security Gains New Building Blocks with Palo Alto and Elastic AcquisitionsKubernetes v1.38 deprecations: kubectl WebSocket env vars, credential plugin fields, and cgroup driver enforcementAmazon Cognito point‑in‑time recovery: practical impact for engineersAnsible Automation Platform slashes server provisioning time for a global law firmConsolidating Multi‑Region Snowflake Warehouses into BigQuery: Architecture and Ops TakeawaysNVIDIA Blackwell GPUs and Jetson Edge AI: Architectural Shifts for EngineersCobertura XML validation added to GitHub Actions code coverage uploadRunning Local LLMs with AlloyDB Omni: Architecture and Ops GuideEnterprise AI Security Gains New Building Blocks with Palo Alto and Elastic AcquisitionsKubernetes v1.38 deprecations: kubectl WebSocket env vars, credential plugin fields, and cgroup driver enforcementAmazon Cognito point‑in‑time recovery: practical impact for engineers
Kubernetes

Kubernetes v1.38 deprecations: kubectl WebSocket env vars, credential plugin fields, and cgroup driver enforcement

AI SummaryPowered by AI

Kubernetes v1.38 removes two kubectl environment variables, drops the name field from credential plugin allowlists, and tightens cgroup driver handling while continuing the cgroup v1 phase‑out. These changes affect automation scripts, CI pipelines, and node configuration, so engineers must adjust tooling and plan migrations now.

Kubernetes v1.38 introduces several deprecations that directly impact how you invoke kubectl, configure credential plugins, and run nodes with cgroup v2. The changes are small in isolation but together they alter default behaviors that many automation frameworks rely on, making it essential to audit scripts, CI settings, and node runtimes before upgrading.

Kubectl WebSocket environment variables removed

What changed

The environment variables KUBECTL_REMOTE_COMMAND_WEBSOCKETS and KUBECTL_PORT_FORWARD_WEBSOCKETS are no longer recognized. Since v1.30, kubectl exec, attach, and cp default to WebSockets, and port-forward switched in v1.31. The variables previously allowed you to force SPDY; they now disappear, and kubectl will always attempt WebSockets first, falling back to SPDY when required.

Why it matters

Any CI job, wrapper script, or custom tool that sets these variables will see no effect after the upgrade. Removing them eliminates a source of configuration drift and simplifies troubleshooting, but it also means you can no longer force SPDY without altering the command line or code.

Kubectl credential plugin allowlist field rename

What changed

The beta kubectl.config.k8s.io/v1beta1 API allowed an alias name for the command field in credential plugin allowlist entries. The name field has been deprecated since v1.36 and is omitted from the stable kubectl.config.k8s.io/v1 API that ships in v1.38. Entries that still use name must be updated to command.

Why it matters

Credential plugins that are part of your authentication flow will be rejected if the allowlist still references name. Updating the configuration prevents runtime failures during kubectl operations that rely on external plugins.

Cgroup v1 phase‑out and mandatory cgroup driver reporting

What changed

Support for cgroup v1 continues to be optional. Since v1.35, nodes using cgroup v1 must set failCgroupV1: false to start the kubelet. That flag remains in v1.38 but is intended as a temporary workaround. Additionally, the kubelet now expects the container runtime to report its cgroup driver via the CRI RuntimeConfig RPC. The legacy configuration mechanism is deprecated and will be unavailable unless explicitly re‑enabled.

Why it matters

Operators must ensure their container runtime advertises a compatible cgroup driver, otherwise the kubelet will refuse to start. Teams still on cgroup v1 need a migration plan to cgroup v2 to avoid future node failures. The change also reduces configuration complexity by removing the legacy driver override path.

Admission webhook request scope narrowed

What changed

The feature gate ExcludeAdmissionWebhookVirtualResources is now on by default. With it enabled, validating and mutating admission webhooks no longer receive virtual write requests for token and subject review resources. Creating or updating a webhook that lists those resources triggers a deprecation warning, and existing configurations are logged at API server start.

Why it matters

If a webhook relied on seeing those review requests for policy enforcement or audit, it will stop receiving them unless the feature gate is turned off. The gate is expected to become permanent, so webhook implementations should be revised to avoid dependence on the excluded resources.

Related CloudNinjas coverage: Kubernetes.

What This Means For Practitioners

Before upgrading to v1.38, audit all automation that sets KUBECTL_REMOTE_COMMAND_WEBSOCKETS or KUBECTL_PORT_FORWARD_WEBSOCKETS and remove those variables. Review every kuberc allowlist entry and replace name with command. Verify that your container runtime reports a cgroup driver via CRI and that nodes are running cgroup v2, or plan a migration to avoid the failCgroupV1 workaround. Finally, inspect admission webhook configurations for references to token or subject review resources and adjust logic or disable the feature gate temporarily while you refactor. Taking these steps now prevents unexpected failures and reduces the operational overhead of the upcoming deprecations.

Originally published atKubernetes Blog