RATATOSK
← 전체 릴리스

Kubernetesv1.36.7

보안 1호환성 변경 3중요 수정 10기타 3

Kubernetes 알림 받기

확인할 변경이 있을 때만 주 1회, critical 보안 공지는 즉시 발송

업그레이드 전 확인

전제 조건1
kubelet 업그레이드 전 정체된 Pod 처리 요건

kubelet을 업그레이드하기 전에 ContainerCreating 상태에서 멈춘 Pod에 FailedCreatePodSandBox 이벤트가 있으면 해당 Pod를 삭제하거나 노드를 드레인해야 합니다.

  Delete any pod stuck in `ContainerCreating` with a `FailedCreatePodSandBox` event, or drain the
  node, before upgrading the kubelet. ([#143214](https://github.com/kubernetes/kubernetes/pull/143214), [@rata](https://github.com/rata)) [SIG Node]
github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md

보안1

기본 kubectl proxy 필터에 노드 실행 API 경로 추가

영향 대상kubectl proxy의 기본 경로 필터(추정)
원문 보기
- Adds node run api path to default kubectl proxy filter ([#143190](https://github.com/kubernetes/kubernetes/pull/143190), [@mpuckett159](https://github.com/mpuckett159)) [SIG CLI]
github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md

호환성 변경3

범위를 벗어난 subordinate ID 범위로 kubelet 시작 차단

영향 대상/etc/subuid 또는 /etc/subgid에 설정된 kubelet 사용자의 subordinate ID 범위 끝값이 4294967295 이상인 노드
필요 조치업그레이드 전에 subordinate ID 개수를 최소 idsPerPod 값(기본값 65536)만큼 줄이기. 이전 kubelet이 파드에 잘못된 범위를 할당했다면, FailedCreatePodSandBox 이벤트가 발생한 채 ContainerCreating 상태에서 멈춘 파드를 삭제하거나 노드를 드레인하기.

이전 kubelet이 파드에 잘못된 ID 범위를 할당했다면 해당 범위가 파드 디렉터리에 계속 기록됩니다. 업그레이드한 kubelet은 시작을 거부합니다.

원문 보기
  the kubelet now refuses to start if the subordinate ID range configured for the
  `kubelet` user in `/etc/subuid` and `/etc/subgid` ends at or past 4294967295, since such a range
  either contains the unmappable ID or extends past the end of the 32-bit ID space. Nodes
  configured this way, for example `kubelet:65536:4294901760`, must reduce the count by at least
  one `idsPerPod` (65536 by default) before upgrading.
github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md

기록된 잘못된 Pod ID 범위로 인한 Kubelet 시작 차단

영향 대상이전 Kubelet이 잘못된 ID 범위를 기록한 Pod 디렉터리가 있는 노드
필요 조치Kubelet을 업그레이드하기 전에 ContainerCreating 상태에서 FailedCreatePodSandBox 이벤트와 함께 멈춘 Pod를 삭제하거나 노드를 드레인해야 합니다.

이전 Kubelet은 잘못된 ID 범위를 할당할 수 있었고, 해당 범위가 Pod 디렉터리에 기록된 채 남아 있을 수 있습니다. 업그레이드한 Kubelet은 이 매핑을 발견하면 시작을 거부합니다.

원문 보기
  if a pod on the node was assigned the invalid ID range by an earlier kubelet,
  that range is still recorded in the pod's directory, and the upgraded kubelet refuses to start:
      create user namespace manager: record pod mappings for existing pod "<uid>": id 4294901760 is out of range
github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md

Pod 바인딩 메타데이터 검증 추가

영향 대상pods/binding 엔드포인트(추정)

검증은 바인딩된 Pod에 적용된 어노테이션 검증을 포함해 Pod 생성 및 업데이트 시의 검증과 동일합니다.

원문 보기
- Make pods/binding label and annotation validation consistent with pod creation and update ([#143315](https://github.com/kubernetes/kubernetes/pull/143315), [@liggitt](https://github.com/liggitt)) [SIG Apps and Node]
github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md

중요 수정10

  • Kube-proxy 초기 Node zone 처리 수정
    영향 대상토폴로지 인식 라우팅을 사용하는 Kube-proxy 구성

    이미 실행 중인 informer가 캐시된 Node를 재생할 때 Kube-proxy가 초기 Node zone을 놓칠 수 있었습니다. 이제 이 경우 재시작하지 않아도 토폴로지 인식 라우팅에 설정된 zone을 사용합니다.

    - Kube-proxy no longer misses the initial Node zone when an already-running informer replays its cached Node, ensuring topology-aware routing uses the configured zone without requiring a restart. ([#143812](https://github.com/kubernetes/kubernetes/pull/143812), [@aojea](https://github.com/aojea)) [SIG Network]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md
  • getsubids가 없을 때 kubelet 시작 폴백
    영향 대상사용자 네임스페이스를 사용하는 파드 (spec.hostUsers: false)(추정)

    이전에는 kubelet 사용자가 있는데 getsubids가 설치되지 않은 경우 kubelet이 시작되지 않았습니다. 이제 기본 ID 범위를 사용해 시작합니다.

      The kubelet no longer fails to start when the `kubelet` user exists but the `getsubids` binary
      is not installed. It now falls back to the default ID range, as documented.
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md
  • 사용자 네임스페이스 기본 ID 범위에서 유효하지 않은 마지막 ID 제외
    영향 대상사용자 네임스페이스와 기본 ID 범위를 사용하는 spec.hostUsers: false Pod(추정)

    기본 범위가 4294967295(2^32-1)에서 끝나는 Pod는 커널이 이 ID를 유효하지 않은 값으로 처리하고 매핑을 거부해 시작하지 못했습니다. 이제 기본 범위는 idsPerPod 블록 하나만큼 낮은 값에서 끝나므로 해당 ID가 제외됩니다.

      Pods are no longer assigned the ID range ending at 4294967295 (2^32-1). The kernel treats that
      ID as invalid and refuses to map it, so a pod assigned that range failed to start. The default
      range now ends one `idsPerPod` block lower.
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md
  • 인라인 vSphere 볼륨 변환 중 충돌 수정
    영향 대상KCM과 kubelet이 처리하는 인라인 vSphere 볼륨

    인라인 vSphere 볼륨을 사용하면 KCM과 kubelet이 충돌할 수 있었습니다. 변환 경로에서는 volume.VsphereVolume의 스토리지 정책을 확인했지만, 값은 pv.Spec.VsphereVolume에서 복사했습니다.

    - Fix KCM and kubelet crash because of inline vsphere volumes ([#144313](https://github.com/kubernetes/kubernetes/pull/144313), [@gnufied](https://github.com/gnufied)) [SIG Storage]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md
  • graceful termination 중에도 계속 실행되는 exec readiness probe
    영향 대상v1.36.3 이상에서 exec readiness probe를 사용하는 kubelet 구성

    graceful termination 중에는 probe가 context canceled로 실패해 Pod의 Ready condition이 갱신되지 않은 채 멈췄습니다. 이제 실패한 Pod를 NotReady로 표시할 수 있으며, 이미 진행 중인 probe는 종료 중인 컨테이너에서 TimeoutSeconds가 만료될 때까지 계속 실행될 수 있습니다.

    - Fixed a 1.35+ regression where exec readiness probes stopped executing (failing with "context canceled") once a pod began graceful termination, leaving the pod's Ready condition frozen during shutdown. ([#141006](https://github.com/kubernetes/kubernetes/pull/141006), [@karlkfi](https://github.com/karlkfi)) [SIG Node]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md
  • 빠른 Pod 재생성 시 스케줄러 충돌 수정
    영향 대상Kubernetes 스케줄러(추정)

    같은 이름과 네임스페이스의 Pod를 빠르게 삭제하고 다시 만들던 중 watch가 끊기면, relist 과정에서 이전 Pod와 새 Pod가 하나의 업데이트로 전달되어 스케줄러가 충돌할 수 있었습니다. 이제 UID가 다른 업데이트는 삭제 이벤트와 추가 이벤트로 각각 처리합니다.

    - Fixed a scheduler crash when a Pod was rapidly deleted and recreated under the same name and namespace. ([#144205](https://github.com/kubernetes/kubernetes/pull/144205), [@vshkrabkov](https://github.com/vshkrabkov)) [SIG Scheduling]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md
  • Kubelet의 CSINode 소유권 확인을 위한 캐시된 Node UID 갱신
    영향 대상같은 이름으로 빠르게 다시 생성된 노드의 CSI 볼륨 워크로드

    노드가 같은 이름으로 빠르게 다시 생성되면 kubelet이 CSINode를 등록하지 못해 CSI 볼륨을 연결할 수 없는 경우가 있었습니다. 이제 kubelet은 CSINode를 등록할 수 있으므로 해당 볼륨을 새 노드에 연결할 수 있습니다.

    - Fixes an issue where kubelet fails to register CSINode objects when a node is quickly recreated with the same name, which previously prevented CSI volumes from attaching to the new node. ([#143772](https://github.com/kubernetes/kubernetes/pull/143772), [@hime](https://github.com/hime)) [SIG Storage]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md
  • kubeadm upgrade plan이 패닉 대신 오류 보고
    영향 대상kubeadm upgrade plan

    기존 노드에서 최신 kube-apiserver 버전을 확인할 수 없으면 이전에는 명령이 패닉을 일으켰지만, 이제는 오류를 보고합니다.

    - Kubeadm: `kubeadm upgrade plan` now returns an error instead of panicking when the latest kube-apiserver version cannot be determined. ([#143741](https://github.com/kubernetes/kubernetes/pull/143741), [@devreddy1015](https://github.com/devreddy1015)) [SIG Cluster Lifecycle]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md
  • kubeadm etcd 롤백의 백업 멤버 데이터 복원 개선
    영향 대상etcd 업그레이드 실패 후 데이터 디렉터리 자동 롤백을 수행하는 kubeadm 구성

    이전에는 백업이 member 디렉터리 아래에 중첩되어 있어 롤백이 예상 위치에서 백업을 찾을 수 없었습니다. 이제 롤백은 실행 중인 member 디렉터리를 비운 뒤 그곳에 백업 내용을 복원합니다. 이 과정에서 백업 이후 기록된 멤버 데이터가 제거됩니다.

    - Kubeadm: fixed the automatic rollback of the etcd data directory after a failed etcd upgrade, which previously copied the backup into a subdirectory of the member directory instead of restoring where it should be. The etcd backup directory now holds the member directory's contents. The etcd data backup before an upgrade is now retried for up to 30 seconds if copying fails. ([#143433](https://github.com/kubernetes/kubernetes/pull/143433), [@SEPURI-SAI-KRISHNA](https://github.com/SEPURI-SAI-KRISHNA)) [SIG Cluster Lifecycle]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md
  • kubelet의 손상된 subpath 마운트 복구
    영향 대상subpath 마운트를 사용하는 파드

    컨테이너를 재시작한 뒤 오래된 NFS 파일 핸들이 남아 있는 경우처럼 subpath 마운트 지점이 손상되면 파드가 CreateContainerConfigError 상태에서 멈출 수 있었습니다. AWS EFS를 사용하는 subPathExpr 마운트는 OOMKill 이후 복구되지 않아 수동 삭제가 필요할 수 있었지만, 이제 kubelet이 복구하므로 파드가 멈춘 상태로 남지 않습니다.

    - Kubelet now recovers from corrupted subpath mount points (e.g. stale NFS file handle) during container restart instead of leaving the pod stuck in CreateContainerConfigError. ([#143606](https://github.com/kubernetes/kubernetes/pull/143606), [@RomanBednar](https://github.com/RomanBednar)) [SIG Storage]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md
기타3
  • kubeadm의 CA 파일 누락 보고
    - Kubeadm: fixed a bug where the error about missing CA files is never returned. ([#143627](https://github.com/kubernetes/kubernetes/pull/143627), [@devreddy1015](https://github.com/devreddy1015)) [SIG Cluster Lifecycle]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md
  • kubeadm의 실패한 etcd 백업 복사 재시도
    - Kubeadm: fixed the automatic rollback of the etcd data directory after a failed etcd upgrade, which previously copied the backup into a subdirectory of the member directory instead of restoring where it should be. The etcd backup directory now holds the member directory's contents. The etcd data backup before an upgrade is now retried for up to 30 seconds if copying fails. ([#143433](https://github.com/kubernetes/kubernetes/pull/143433), [@SEPURI-SAI-KRISHNA](https://github.com/SEPURI-SAI-KRISHNA)) [SIG Cluster Lifecycle]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md
  • kubeadm의 etcd 멤버 목록 조회 일시 오류 재시도
    - Kubeadm: retry listing etcd members on transient errors during control plane join and reset, instead of failing on the first error. ([#143427](https://github.com/kubernetes/kubernetes/pull/143427), [@SEPURI-SAI-KRISHNA](https://github.com/SEPURI-SAI-KRISHNA)) [SIG Cluster Lifecycle]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.36.md

정리 내용은 AI가 작성하므로 틀릴 수 있으며, 보증 없이 제공합니다.