Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Kubernetes Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-kubernetes-knowledge-patch-nevaberry-plugins)
---
name: kubernetes-knowledge-patch
description: Kubernetes
version: "1.37.3"
license: MIT
metadata:
author: Nevaberry
---
# Kubernetes compatibility guidance
Load this skill when upgrading Kubernetes components, adapting manifests or clients,
or working with DRA, Pod resources, admission policies, storage, and Gateway API.
Use the topic references for complete conditions, feature gates, examples, and
version-specific behavior. Explicit prerelease cautions remain beside the affected
guidance in the references.
## Reference index
| Reference | Topics |
| --- | --- |
| [API extensibility and clients](references/api-extensibility-and-clients.md) | CRDs, validation, discovery, field ownership, client-go, Go packages and generators |
| [Control plane and observability](references/control-plane-and-observability.md) | Startup configuration, diagnostics, audit logs, watch caches, peer proxying, controllers, metrics |
| [Dynamic resource allocation](references/dynamic-resource-allocation.md) | APIs, authorization, claims, devices, partitions, counters, taints, health, driver upgrades |
| [Kubectl and kubeadm](references/kubectl-and-kubeadm.md) | Preferences, CLI behavior, configuration migration, preflight, local endpoints, etcd recovery |
| [Networking and Gateway API](references/networking-and-gateway-api.md) | Services, EndpointSlices, kube-proxy, DNS, Ingress2Gateway, Gateway policies and TLS |
| [Nodes, runtimes, and kubelet](references/nodes-runtimes-and-kubelet.md) | CRI, user namespaces, ID ranges, CPU and memory, eviction, image credentials, node status |
| [Security, identity, and admission](references/security-identity-and-admission.md) | SELinux, supplemental groups, authentication, certificates, admission policies, CEL, webhooks |
| [Storage](references/storage.md) | Removed plugins, image volumes, CSI, snapshots, quotas, unused PVCs, storage migration |
| [Workloads and scheduling](references/workloads-and-scheduling.md) | Resize, lifecycle, Jobs, StatefulSets, autoscaling, placement, PodGroups, scheduler plugins |
## Upgrade blockers and deprecations
### User namespace ranges can prevent kubelet startup
Before upgrading to kubelet v1.37.3, check the `kubelet` entries in `/etc/subuid`
and `/etc/subgid`. Kubelet refuses to start if the configured range ends at or
beyond `4294967295`. With the default block size of 65,536, change
`kubelet:65536:4294901760` to `kubelet:65536:4294836224`.
An existing Pod directory recording the invalid top ID block also prevents startup.
Before upgrading, delete affected Pods stuck in `ContainerCreating` with a
`FailedCreatePodSandBox` event, or drain the node.
### Removed volume plugins and runtime requirements
Kubernetes v1.36 permanently disables `gitRepo` volumes and removes the feature-gate
override. Migrate to an init container or git-sync before upgrading affected nodes.
Operations on `portworxVolume` go through CSI; remove `CSIMigrationPortworx` and
`InTreePluginPortworxUnregister` overrides.
A v1.35 Linux kubelet fails to start on cgroup v1 by default; switch hosts to cgroup v2.
Deprecated cgroup-driver settings and CRI fallback are scheduled for removal in
v1.38, keeping containerd 1.7 supported through v1.37.
Remove `--pod-infra-container-image` from kubelet startup and kubeadm extra arguments.
The node reference also lists removed cAdvisor flags that can prevent startup.
### Kubeadm configuration migration
Kubeadm removes `kubeadm.k8s.io/v1beta3` and `PublicKeysECDSA`.
Use the v1.35 kubeadm binary to migrate existing files to `v1beta4`:
```sh
kubeadm config migrate --old-config kubeadm-v1beta3.yaml --new-config kubeadm-v1beta4.yaml
```
The replacement configuration selects ECDSA through `ClusterConfiguration.encryptionAlgorithm`.
Remove `NodeLocalCRISocket` from kubeadm's v1.37 feature-gate settings.
See the kubeadm reference for other gate removals, etcd flags, and health-check changes.
### DRA and workload API upgrade boundaries
Before upgrading to v1.34, delete DRA ResourceClaims, ResourceClaimTemplates,
DeviceClasses, and ResourceSlices that may have been stored before v1.32;
recreate them as needed on v1.32 or later.
A cluster using the v1.35 DRA storage version cannot downgrade to v1.33.
Delete ResourceSlices using alpha partitionable devices before upgrading or
downgrading between v1.34 and v1.35.
Remove all `scheduling.k8s.io/v1alpha2` objects before upgrading from v1.36 to v1.37.
Use `scheduling.k8s.io/v1beta1` for Workload and PodGroup, change `disruptionMode`
from an enum to a struct, replace `podGroupTemplateRef` with `workloadRef`, and
watch `PodGroupInitiallyScheduled` for first placement.
Replace `GangScheduling` and `WorkloadAwarePreemption` overrides with `GenericWorkload`.
### SELinux volume labels
`SELinuxMount` is stable and enabled by default in v1.37. Identify and fix affected
workloads or opt out while still on v1.36. For Pods on the same node that share a
volume but require different SELinux labels, opt back into recursive relabeling:
```yaml
spec:
securityContext:
seLinuxChangePolicy: Recursive
```
### EndpointSlices and external routing
Reads and writes of `v1` Endpoints warn. Discover all EndpointSlices for a Service:
```sh
kubectl get endpointslice -l kubernetes.io/service-name=myservice
```
When generating slices, group endpoints by address family and port set; represent
unready endpoints with `endpoints[].conditions.ready: false`.
Aggregated API backends use EndpointSlices. The Service `proxy` subresource also
uses them; provide slices for manually managed Endpoints when mirroring is disabled.
`Service.spec.externalIPs` warns from v1.36, with removal planned for v1.43.
Migrate to LoadBalancer or NodePort Services, or Gateway API for external routing.
Kube-proxy deprecates IPVS; its recommended Linux replacement is `nftables`.
Ingress NGINX reached end of support on March 24, 2026.
Use `ingress2gateway print --providers=ingress-nginx` to generate Gateway API YAML.
Review diagnostics for unsupported annotations and best-effort translations;
verify generated HTTP request timeouts and controller-specific body size limits.
### Client authorization and serialization
Before upgrading, add `create` on `pods/exec`, `pods/attach`, and `pods/portforward`
to custom Roles or ClusterRoles granting those operations. The default-enabled
`AuthorizePodWebsocketUpgradeCreatePermission` gate checks WebSocket requests as well as SPDY.
Kubernetes API Go packages drop their gogo protobuf runtime dependency in v1.36;
clients serializing those types with gogo protobuf must switch to Kubernetes API serializers.
Direct `metav1.FieldsV1.Raw` access is deprecated: use `NewFieldsV1(string)`,
`GetRawBytes()` or `GetRawString()`, and `SetRawBytes()`.
## Common feature workflows
### Resize containers and Pod resource budgets
Use kubectl v1.32 or newer to edit running app-container and native-sidecar CPU
and memory requests and limits through the resize subresource:
```sh
kubectl edit pod mypod --subresource resize
```
Compare desired `spec.containers[].resources` with actual
`status.containerStatuses[].resources`. Migrate readers of `status.resize` to
`PodResizePending` (`Deferred` or `Infeasible`) and `PodResizeInProgress` (which can report `Error`).
V1.35 makes container resize stable; deferred retries use priority, then QoS,
then longest wait. Memory limit decreases use a best-effort usage check.
The default-on beta `InPlacePodLevelResourcesVerticalScaling` gate in v1.36 allows
resizing `spec.resources` through the same subresource. Running regular init
containers can also resize, but their resize policy cannot use `RestartContainer`.
Admission rejects a resize exceeding node allocatable capacity or lacking node OS
support before recording `Infeasible`.
### DRA requests, health, and taints
The stable `resource.k8s.io/v1` API serves DeviceClasses, ResourceClaims,
ResourceClaimTemplates, and ResourceSlices. `firstAvailable` tries device-request
alternatives in order; remove `DRAPrioritizedList=false` before upgrading to v1.37.
On v1.34 and v1.35, use the namespace label `resource.kubernetes.io/admin-access: "true"`
for users with claim creation permissions to request `adminAccess`.
The DRA reference preserves the distinct v1.33 label and rolling-upgrade requirements.
In v1.37.1, a `DeviceTaintRule` with `spec.deviceSelector` omitted matches zero devices.
To target every DRA device, set an explicit empty selector:
```yaml
spec:
deviceSelector: {}
```
`kubectl describe pod my-pod` can show `Unhealthy` or `Unknown` for allocated
devices; automated readers use `.status.containerStatuses[].allocatedResourcesStatus`.
Workload ResourceClaims are beta and still require `DRAWorkloadResourceClaims` opt-in.
### Job and StatefulSet controls
Indexed Jobs use `spec.backoffLimitPerIndex` for independent retry budgets and
`podFailurePolicy` with `action: FailIndex` to fail a matching index immediately.
The controller records `status.failedIndexes` and terminates the Job early when
their count exceeds `spec.maxFailedIndexes`.
In success-policy rules, combining `succeededIndexes` and `succeededCount` counts
successes only within the listed indexes. A match sets `SuccessCriteriaMet` before
remaining Pods terminate and `Complete` is set.
For a previously running Job, wait for Pods to terminate after suspension before
editing container requests or limits with `MutablePodResourcesForSuspendedJobs`.
StatefulSet `maxUnavailable` is on by default in v1.35, off by default in v1.36,
and on again in v1.37. `spec.updateStrategy.type: Recreate` deletes every Pod and
waits for complete termination before creating the new revision.
### Storage and pull credentials
Image volumes are beta and enabled by default in v1.35, with a compatible runtime
such as containerd v2.1 or later. Use `subPath` or `subPathExpr` to mount an existing
subdirectory of the read-only volume; use relative paths without `..` components.
Workload Pod templates must supply a nonempty `image.reference` for each image volume.
With `KubeletEnsureSecretPulledImages` enabled by default in v1.35, cached images can
still require valid credentials. Set `imagePullCredentialsVerificationPolicy` to
control enforcement; the node reference describes pull policies and provider caching.
### Admission policies and kubectl preferences
Use `admissionregistration.k8s.io/v1` for stable MutatingAdmissionPolicy and
MutatingAdmissionPolicyBinding.
For validating policies, `failurePolicy: Fail` applies the binding's
`validationActions` to CEL evaluation errors; `failurePolicy: Ignore` skips the error.
Bindings with `spec.paramRef` must set `parameterNotFoundAction`.
See the security reference for policy parameters, patch types, exemptions, and storage migrations.
Kubectl v1.34 enables kuberc preferences by default. In credential plugin allowlists,
rename `name` to `command`. Set `KUBERC=off` or `KUBECTL_KUBERC=false` to bypass
the preferences file and its credential plugin policy for one invocation.
Repeat `--for` to wait for multiple conditions:
```sh
kubectl wait --for=condition=PodScheduled --for=condition=Ready pod/my-pod
```
`kubectl debug` defaults to `general`; use `--profile=legacy` when depending on that
profile's behavior. Its removal is planned for v1.39. Use `kubectl describe pods --show-events`
to include related events when describing multiple objects.