Skip to content
Back to skills

Kubernetes Knowledge Patch

ASecurity

Kubernetes

  • 25 stars
  • 0 votes
  • 0 copies
  • 14 views
  • Added May 27, 2026
developmentgonodeexpresskubernetesgitapibackendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill kubernetes-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kubernetes Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Kubernetes Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-kubernetes-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-kubernetes-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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, migrating API clients,
editing workload manifests, configuring admission and identity, or working with
DRA, storage, Services, Gateway API, kubectl, and kubeadm.
Use the topic references for complete conditions, examples, and version-specific
behavior. Feature maturity, defaults, and migration advice are scoped to the
versions identified in each reference.

## Reference index

| Reference | Topics |
| --- | --- |
| [API extensibility and clients](references/api-extensibility-and-clients.md) | CRDs, validation, apply, discovery, informers, Go types, generators |
| [Control plane and observability](references/control-plane-and-observability.md) | Startup configuration, watch caches, APF, diagnostics, metrics |
| [Dynamic resource allocation](references/dynamic-resource-allocation.md) | DRA APIs, claims, drivers, partitions, taints, health, workload allocation |
| [Kubectl and kubeadm](references/kubectl-and-kubeadm.md) | Preferences, CLI behavior, preflight, configuration migration, etcd |
| [Networking and Gateway API](references/networking-and-gateway-api.md) | Services, EndpointSlices, proxy modes, DNS, Ingress conversion, Gateway policy |
| [Nodes, runtimes, and kubelet](references/nodes-runtimes-and-kubelet.md) | Runtime compatibility, user namespaces, resource management, credentials, CRI |
| [Security, identity, and admission](references/security-identity-and-admission.md) | Authorization, tokens, certificates, SELinux, CEL policies, webhooks, audit |
| [Storage](references/storage.md) | Volume migration, image volumes, PVC lifecycle, CSI, snapshots |
| [Workloads and scheduling](references/workloads-and-scheduling.md) | Resize, lifecycle, Jobs, StatefulSets, autoscaling, PodGroups, scheduler plugins |

## Upgrade blockers and removals

### Kubelet startup and runtime compatibility

Before a v1.37.3 upgrade, check the `kubelet` ranges in `/etc/subuid` and
`/etc/subgid`. Kubelet refuses to start if a configured range ends at or beyond
`4294967295`. With the default 65,536-ID block, change
`kubelet:65536:4294901760` to `kubelet:65536:4294836224`.
Existing Pod directories recording the invalid top block also prevent startup:
delete affected Pods stuck in `ContainerCreating` with `FailedCreatePodSandBox`,
or drain the node before upgrading.

A v1.35 Linux kubelet fails to start on cgroup v1 by default; switch hosts to
cgroup v2 before upgrading. The cgroup-driver fallback removal is scheduled
for 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 lists the removed cAdvisor flags and metrics.

### API and configuration migrations

Kubeadm removes `kubeadm.k8s.io/v1beta3` and `PublicKeysECDSA` in v1.37.
Use the v1.35 kubeadm binary to migrate existing configuration to `v1beta4`:

```sh
kubeadm config migrate --old-config kubeadm-v1beta3.yaml --new-config kubeadm-v1beta4.yaml
```

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` to a struct, replace `podGroupTemplateRef` with `workloadRef`,
and watch `PodGroupInitiallyScheduled` for first placement.
Replace `GangScheduling` and `WorkloadAwarePreemption` overrides with
`GenericWorkload` for core workload-aware scheduling.

### Volume and SELinux changes

The `gitRepo` volume plugin is permanently disabled in v1.36, with its override
removed. Migrate remaining workloads before upgrading nodes.
For FlexVolume with kubeadm, configure a custom controller-manager image with
the required tools, pass `--flex-volume-plugin-dir`, and mount
`/usr/libexec/kubernetes/kubelet-plugins/volume/exec` through
`controllerManager.extraVolumes` before upgrading.

`SELinuxMount` is stable and enabled by default in v1.37. Identify and fix
affected workloads or opt out while still on v1.36. When same-node Pods share
a volume but require different SELinux labels, use
`spec.securityContext.seLinuxChangePolicy: Recursive` for recursive relabeling.

### Networking and admission compatibility

Reads and writes of `v1` Endpoints warn. Find a Service's EndpointSlices with:

```sh
kubectl get endpointslice -l kubernetes.io/service-name=myservice
```

Manually configured aggregated API backends need EndpointSlices. Service
`proxy` requests also need them if EndpointSlice mirroring is disabled.
`Service.spec.externalIPs` warns from v1.36, with removal planned for v1.43;
migrate to LoadBalancer, NodePort, or Gateway API external routing.
Kube-proxy deprecates IPVS in v1.35 and recommends nftables on Linux.

Before upgrading for WebSocket Pod streaming authorization, add `create` on
`pods/exec`, `pods/attach`, and `pods/portforward` to custom roles granting those
operations. The default-enabled `AuthorizePodWebsocketUpgradeCreatePermission`
gate checks that permission for WebSocket requests as well as SPDY.

## Resource changes and workload behavior

### In-place resize

Use the `resize` subresource with kubectl v1.32 or newer:

```sh
kubectl edit pod mypod --subresource resize
```

Compare `spec.containers[].resources` with
`status.containerStatuses[].resources`. Replace readers of `status.resize`
with `PodResizePending` (`Deferred` or `Infeasible`) and
`PodResizeInProgress` (which can report `Error`).
Container resize is stable in v1.35; deferred requests retry by priority,
QoS class, then longest wait. Memory limit decreases use a best-effort usage check.
In v1.36, `InPlacePodLevelResourcesVerticalScaling` is beta and on by default:
resize the budget in `spec.resources` through the same subresource.
Admission can reject a resize exceeding node allocatable capacity or lacking
node OS support before an `Infeasible` status is recorded.

### Jobs and StatefulSets

Indexed Jobs can use `spec.backoffLimitPerIndex` or a `podFailurePolicy` rule
with `action: FailIndex`. Combining `succeededIndexes` and `succeededCount`
in a success rule counts only successes within those indexes.
For a previously running Job, wait for Pods to terminate after suspension
before changing container requests or limits with the default-on beta
`MutablePodResourcesForSuspendedJobs` in v1.36.

`MaxUnavailableStatefulSet` is off by default in v1.36 and on again in v1.37.
`spec.updateStrategy.rollingUpdate.maxUnavailable` accepts a positive integer
or percentage and defaults to `1`; `spec.podManagementPolicy: Parallel` lets
a rollout use a wider budget. In v1.37, `spec.updateStrategy.type: Recreate`
deletes every Pod and waits for termination before creating the new revision.

### Identity, groups, and cached images

Set `spec.securityContext.supplementalGroupsPolicy: Strict` for explicitly
assigned groups. Check `Node.status.features.supplementalGroupsPolicy` for
runtime support; `Merge` includes image `/etc/group` memberships.
With `KubeletEnsureSecretPulledImages` enabled by default in v1.35, even a
cached image can require valid pull credentials. Control enforcement with
`imagePullCredentialsVerificationPolicy` in kubelet configuration.

## Dynamic resource allocation

The stable DRA objects use `resource.k8s.io/v1`. The v1.35 DRA storage version
prevents downgrade to v1.33. Before a v1.34 upgrade, delete ResourceClaims,
ResourceClaimTemplates, DeviceClasses, and ResourceSlices that may have been
stored before v1.32; recreate them as needed on v1.32 or later.
For v1.33 admin access, use `resource.k8s.io/admin-access: "true"`; from
v1.34, use `resource.kubernetes.io/admin-access: "true"`. Keep the old alpha
label during the rolling-upgrade rollback window.

Use `firstAvailable` for ordered alternatives; `DRAPrioritizedList` is locked
on in v1.37. In v1.37.1, an oversized alternative can fall through to a smaller
one. A `DeviceTaintRule` with `spec.deviceSelector` omitted matches no devices
in v1.37.1; use `spec.deviceSelector: {}` to target every DRA device.
`DRADeviceTaintRules` controls rules independently of `DRADeviceTaints`.
Workload claims are beta but still require `DRAWorkloadResourceClaims` in
v1.37. See the DRA reference for granular permissions, shared counters,
driver interfaces, readiness, and pool availability accounting.

## Storage and admission features

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` for an
existing subdirectory; paths must be relative without `..` components.
Workload Pod templates must set a nonempty `image.reference` in v1.37.
For CSI drivers reading ServiceAccount tokens from `NodePublishVolume` secrets,
set `CSIDriver.spec.serviceAccountTokenInSecrets: true` to keep tokens out of
`volume_context`, which drivers may log.

Stable mutating admission policies use `admissionregistration.k8s.io/v1`.
A policy needs a nonempty `spec.mutations` list and a matching binding.
`ApplyConfiguration` rejects changes to atomic structs, maps, and lists;
JSON patches return `JSONPatch` values from `jsonPatch.expression`.
Use `jsonpatch.escapeKey()` for JSON Pointer key segments containing `/` or `~`.
For validating policy bindings with `spec.paramRef`, set
`parameterNotFoundAction`. CEL errors under default `failurePolicy: Fail`
apply the binding's `validationActions`; `failurePolicy: Ignore` skips them.

## CLI and routing quick reference

Kubectl preferences are enabled by default from v1.34. In credential plugin
allowlists, use `command` instead of `name` in v1.36. Set `KUBERC=off` or
`KUBECTL_KUBERC=false` to bypass preferences and their credential plugin policy
for an invocation. `kubectl debug` defaults to `general` in v1.36; use
`--profile=legacy` explicitly when its behavior is needed.

```sh
kubectl wait --for=condition=PodScheduled --for=condition=Ready pod/my-pod
```

Ingress NGINX reached end of support on March 24, 2026. Ingress2Gateway can
convert manifests or live resources; review unsupported-annotation diagnostics
and best-effort timeout and regex translations in the networking reference.

```sh
ingress2gateway print --providers=ingress-nginx --input-file ingress.yaml,other-ingress.yaml > gwapi.yaml
```

Gateway API v1.3 and v1.4 can be installed on Kubernetes 1.26 or later. Install
Experimental channel CRDs for experimental resources or fields and check controller support.
In v1.4, inspect `GatewayClass.status.supportedFeatures`; use the networking
reference for delegated listeners, backend TLS, external authentication, mesh
attachment, and conversion-specific behavior.

Files in this skill

  • SKILL.md6.8 KB
  • references/admission-policies.md1 KB
  • references/deprecations-removals.md794 B
  • references/dynamic-resource-allocation.md930 B
  • references/networking-gateway-api.md1.4 KB
  • references/pod-resources-lifecycle.md2 KB
  • references/workload-management.md1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.