[ Cloud & Data ]

Kubernetes v1.38 Sneak Peek

By Chief Editor··3 min read
// SHARE THIS SIGNAL:
Fact-checked & reviewed by Overclock Now Editorial
AI-assisted research

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_WEBSOCKETS and KUBECTL_PORT_FORWARD_WEBSOCKETS environment variables.
  • kubectl will standardly attempt WebSockets first for stream operations and automatically fall back to SPDY when required.
  • The name field has been dropped from kuberc credential plugin allowlist entries to decouple command-line preferences from kubeconfig credentials.

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.

kubectl v1.38 Streaming Protocol Connection Flowpipeline
01
1. Command Execution

User runs exec, attach, cp, or port-forward without opt-out flag overrides

02
2. WebSocket Attempt

kubectl connects via WebSockets as the primary streaming protocol

03
3. Automatic Fallback

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 ComponentLegacy / Previous StateKubernetes v1.38 StateImpact & Action Required
WebSocket Opt-Out FlagsConfigurable via KUBECTL_*_WEBSOCKETS env varsEnvironment variables removed entirelyRemove obsolete environment variables from scripts and CI pipelines.
Stream Protocol LogicDefault WebSockets with manual opt-out overrideWebSockets first with automatic SPDY fallbackConnections handle fallback automatically without user flags.
kuberc Plugin AllowlistAllowlist entries included name fieldname field dropped from allowlist entriesUpdate 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.

#cloud-data#tech#intelligence