Kubernetes v1.38 Sneak Peek
The Kubernetes project has detailed upcoming command-line tooling changes scheduled for the v1.38 release, focusing on stream protocol consolidation and cleaner configuration management. The update permanently removes environment variables previously used to disable WebSocket connections in kubectl, cementing a multi-release transition away from the legacy SPDY protocol. Additionally, Kubernetes v1.38 revises kuberc configuration structures to better isolate user preference files from cluster credentials.
- Kubernetes v1.38 removes the
KUBECTL_REMOTE_COMMAND_WEBSOCKETSandKUBECTL_PORT_FORWARD_WEBSOCKETSenvironment variables. kubectlwill standardly attempt WebSockets first for stream operations and automatically fall back to SPDY when required.- The
namefield has been dropped fromkuberccredential plugin allowlist entries to decouple command-line preferences fromkubeconfigcredentials.
Streaming Protocol Modernization
Kubernetes began replacing the aging SPDY protocol with WebSockets for client-cluster communication in earlier releases. kubectl switched to WebSockets by default for exec, attach, and cp commands in version 1.30, and expanded that default to port-forward operations in version 1.31. During the transition, the project provided environment variables allowing operators to opt out of WebSockets and force SPDY usage.
User runs exec, attach, cp, or port-forward without opt-out flag overrides
kubectl connects via WebSockets as the primary streaming protocol
Client transparently falls back to SPDY if the endpoint requires it
In Kubernetes v1.38, KUBECTL_REMOTE_COMMAND_WEBSOCKETS and KUBECTL_PORT_FORWARD_WEBSOCKETS are completely removed. Moving forward, kubectl unconditionally attempts WebSockets first before resorting to SPDY. Because automatic SPDY fallback remains built into the client, existing environments that rely on legacy protocol handling will continue to operate without manual environment flag interventions.
Separating User Preferences from Cluster Credentials
The upcoming release also updates how kubectl handles client configuration via kuberc. Kubernetes v1.38 drops the name field from kuberc credential plugin allowlist entries.
This refinement reinforces the architectural boundary introduced with kuberc, ensuring that individual user command-line preferences remain distinct from cluster authentication parameters maintained in kubeconfig files.
| Tooling Component | Legacy / Previous State | Kubernetes v1.38 State | Impact & Action Required |
|---|---|---|---|
| WebSocket Opt-Out Flags | Configurable via KUBECTL_*_WEBSOCKETS env vars | Environment variables removed entirely | Remove obsolete environment variables from scripts and CI pipelines. |
| Stream Protocol Logic | Default WebSockets with manual opt-out override | WebSockets first with automatic SPDY fallback | Connections handle fallback automatically without user flags. |
kuberc Plugin Allowlist | Allowlist entries included name field | name field dropped from allowlist entries | Update kuberc definitions to align with updated credential allowlist schema. |
Operational Implications
For DevOps and release engineers, automation scripts or continuous integration pipelines that set KUBECTL_REMOTE_COMMAND_WEBSOCKETS or KUBECTL_PORT_FORWARD_WEBSOCKETS should be cleaned up. Leaving these variables in place will not break command execution, but the flags will have no effect on kubectl behavior in v1.38.
Cluster administrators preparing for v1.38 should also review central kuberc templates. Omitting the name field from credential plugin allowlists ensures compatibility with the updated configuration schema while preserving the isolation of local user settings from shared credential manifests.
// RELATED SIGNAL & RECOMMENDED READS
Google Expands Enterprise AI Agent Governance and Security Controls Across Workspace and Cloud
Google has reached general availability for Workspace Model Context Protocol (MCP) servers, the Workspace CLI, and Google Cloud Agent Gateway. The…
Synchronizing Standby Database Replicas Through Log Sequence Number Tracking
Database replication architectures balance read scaling across secondary nodes with the challenge of log replay delays. By tracking specific Write-Ahead Log…
Google Partners With Blue Origin for First Heavy-Lift Launch of Project Suncatcher
Google has inked a partnership with aerospace firm Blue Origin to execute the first heavy-lift launch for Project Suncatcher, the company's long-term…