Skip to content

Commit 58c8f40

Browse files
authored
Merge pull request #47051 from salaxander/merged-main-dev-1.31
Merged main dev 1.31
2 parents 42f001b + 97a0575 commit 58c8f40

File tree

12 files changed

+846
-16
lines changed

12 files changed

+846
-16
lines changed

content/en/docs/tasks/debug/debug-application/debug-running-pod.md

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,10 +632,89 @@ When creating a debugging session on a node, keep in mind that:
632632
* The container runs in the host IPC, Network, and PID namespaces, although
633633
the pod isn't privileged, so reading some process information may fail,
634634
and `chroot /host` may fail.
635-
* If you need a privileged pod, create it manually.
635+
* If you need a privileged pod, create it manually or use the `--profile=sysadmin` flag.
636636

637637
Don't forget to clean up the debugging Pod when you're finished with it:
638638

639639
```shell
640640
kubectl delete pod node-debugger-mynode-pdx84
641641
```
642+
643+
## Debugging Profiles {#debugging-profiles}
644+
645+
When using `kubectl debug` to debug a node via a debugging Pod, a Pod via an ephemeral container,
646+
or a copied Pod, you can apply a debugging profile to them using the `--profile` flag.
647+
By applying a profile, specific properties such as [securityContext](/docs/tasks/configure-pod-container/security-context/)
648+
are set, allowing for adaptation to various scenarios.
649+
650+
651+
The available profiles are as follows:
652+
653+
| Profile | Description |
654+
| ------------ | --------------------------------------------------------------- |
655+
| legacy | A set of properties backwards compatibility with 1.22 behavior |
656+
| general | A reasonable set of generic properties for each debugging journey |
657+
| baseline | A set of properties compatible with [PodSecurityStandard baseline policy](/docs/concepts/security/pod-security-standards/#baseline) |
658+
| restricted | A set of properties compatible with [PodSecurityStandard restricted policy](/docs/concepts/security/pod-security-standards/#restricted) |
659+
| netadmin | A set of properties including Network Administrator privileges |
660+
| sysadmin | A set of properties including System Administrator (root) privileges |
661+
662+
663+
{{< note >}}
664+
If you don't specify `--profile`, the `legacy` profile is used by default, but it is planned to be deprecated in the near future.
665+
So it is recommended to use other profiles such as `general`.
666+
{{< /note >}}
667+
668+
669+
Assume that you create a Pod and debug it.
670+
First, create a Pod named `myapp` as an example:
671+
672+
```shell
673+
kubectl run myapp --image=busybox:1.28 --restart=Never -- sleep 1d
674+
```
675+
676+
Then, debug the Pod using an ephemeral container.
677+
If the ephemeral container needs to have privilege, you can use the `sysadmin` profile:
678+
679+
```shell
680+
kubectl debug -it myapp --image=busybox:1.28 --target=myapp --profile=sysadmin
681+
```
682+
683+
```
684+
Targeting container "myapp". If you don't see processes from this container it may be because the container runtime doesn't support this feature.
685+
Defaulting debug container name to debugger-6kg4x.
686+
If you don't see a command prompt, try pressing enter.
687+
/ #
688+
```
689+
690+
Check the capabilities of the ephemeral container process by running the following command inside the container:
691+
692+
```shell
693+
/ # grep Cap /proc/$$/status
694+
```
695+
696+
```
697+
...
698+
CapPrm: 000001ffffffffff
699+
CapEff: 000001ffffffffff
700+
...
701+
```
702+
703+
This means the container process is granted full capabilities as a privileged container by applying `sysadmin` profile.
704+
See more details about [capabilities](/docs/tasks/configure-pod-container/security-context/#set-capabilities-for-a-container).
705+
706+
You can also check that the ephemeral container was created as a privileged container:
707+
708+
```shell
709+
kubectl get pod myapp -o jsonpath='{.spec.ephemeralContainers[0].securityContext}'
710+
```
711+
712+
```
713+
{"privileged":true}
714+
```
715+
716+
Clean up the Pod when you're finished with it:
717+
718+
```shell
719+
kubectl delete pod myapp
720+
```

content/en/docs/tasks/debug/debug-cluster/kubectl-node-debug.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ When creating a debugging session on a Node, keep in mind that:
7575
* Although the container runs in the host IPC, Network, and PID namespaces,
7676
the pod isn't privileged. This means that reading some process information might fail
7777
because access to that information is restricted to superusers. For example, `chroot /host` will fail.
78-
If you need a privileged pod, create it manually.
78+
If you need a privileged pod, create it manually or use the `--profile=sysadmin` flag.
79+
* By applying [Debugging Profiles](/docs/tasks/debug/debug-application/debug-running-pod/#debugging-profiles), you can set specific properties such as [securityContext](/docs/tasks/configure-pod-container/security-context/) to a debugging Pod.
7980

8081
## {{% heading "cleanup" %}}
8182

content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,6 @@ may also be used with field selectors when included in the `spec.versions[*].sel
16451645

16461646
#### Selectable fields for custom resources {#crd-selectable-fields}
16471647

1648-
{{< feature-state state="alpha" for_k8s_version="v1.30" >}}
16491648
{{< feature-state feature_gate_name="CustomResourceFieldSelectors" >}}
16501649

16511650
You need to enable the `CustomResourceFieldSelectors`

content/id/docs/concepts/extend-kubernetes/operator.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ menggunakan bahasa / _runtime_ yang dapat bertindak sebagai
130130
* Temukan "ready-made" _operators_ dalam [OperatorHub.io](https://operatorhub.io/)
131131
untuk memenuhi use case kamu
132132
* Menggunakan perangkat yang ada untuk menulis Operator kamu sendiri, misalnya:
133-
* menggunakan [KUDO](https://kudo.dev/) (Kubernetes Universal Declarative Operator)
134133
* menggunakan [Mast](https://docs.ansi.services/mast/user_guide/operator/)
135134
* menggunakan [kubebuilder](https://book.kubebuilder.io/)
136135
* menggunakan [Metacontroller](https://metacontroller.github.io/metacontroller/intro.html) bersama dengan

content/id/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ percentageOfNodesToScore: 50
103103
104104
`percentageOfNodesToScore` merupakan angka 1 sampai 100 dengan
105105
nilai bawaan yang dihitung berdasarkan ukuran klaster. Di sini juga terdapat
106-
batas bawah yang telah ditetapkan, yaitu 50 Node.
106+
batas bawah yang telah ditetapkan, yaitu 100 Node.
107107

108-
{{< note >}}Pada klaster dengan kurang dari 50 Node layak, penjadwal masih
108+
{{< note >}}Pada klaster dengan kurang dari 100 Node layak, penjadwal masih
109109
terus memeriksa seluruh Node karena Node-Node layak belum mencukupi supaya
110110
penjadwal dapat menghentikan proses pencarian lebih awal.
111111

content/ja/docs/concepts/architecture/leases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Kubernetesでは、kubeletのノードハートビートをKubernetes APIサー
1818
内部的には、kubeletのハートビートはこの`Lease`オブジェクトに対するUPDATEリクエストであり、Leaseの`spec.renewTime`フィールドを更新しています。
1919
Kubernetesのコントロールプレーンはこのフィールドのタイムスタンプを見て、`Node`が利用可能かを判断しています。
2020

21-
詳しくは[Node Leaseオブジェクト](/ja/docs/concepts/architecture/nodes/#heartbeats)をご覧ください。
21+
詳しくは[Node Leaseオブジェクト](/ja/docs/concepts/architecture/nodes/#node-heartbeats)をご覧ください。
2222

2323
## リーダー選出
2424

content/ja/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ percentageOfNodesToScore: 50
6969
7070
## percentageOfNodesToScoreのチューニング
7171
72-
`percentageOfNodesToScore`は1から100の間の範囲である必要があり、デフォルト値はクラスターのサイズに基づいて計算されます。また、クラスターのサイズの最小値は50ノードとハードコードされています
72+
`percentageOfNodesToScore`は1から100の間の範囲である必要があり、デフォルト値はクラスターのサイズに基づいて計算されます。また、クラスターのサイズの最小値は100ノードとハードコードされています
7373

7474
{{< note >}}
75-
割り当て可能なノードが50以下のクラスターでは、スケジューラの検索を早期に停止するのに十分な割り当て可能なノードがないため、スケジューラはすべてのノードをチェックします。
75+
割り当て可能なノードが100以下のクラスターでは、スケジューラの検索を早期に停止するのに十分な割り当て可能なノードがないため、スケジューラはすべてのノードをチェックします。
7676

7777
小規模クラスターでは、`percentageOfNodesToScore`に低い値を設定したとしても、同様の理由で変更による影響は全くないか、ほとんどありません。
7878

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: InPlacePodVerticalScaling
3+
content_type: feature_gate
4+
_build:
5+
list: never
6+
render: false
7+
8+
stages:
9+
- stage: alpha
10+
defaultValue: false
11+
fromVersion: "1.27"
12+
---
13+
Podリソースの再作成なしで垂直オートスケーリングができる機能を有効にします。

content/ko/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ percentageOfNodesToScore: 50
102102
### percentageOfNodesToScore 튜닝
103103
104104
`percentageOfNodesToScore`는 1과 100 사이의 값이어야 하며
105-
기본값은 클러스터 크기에 따라 계산된다. 또한 50 노드로 하드 코딩된
105+
기본값은 클러스터 크기에 따라 계산된다. 또한 100 노드로 하드 코딩된
106106
최솟값도 있다.
107107

108-
{{< note >}} 클러스터에서 적합한 노드가 50 미만인 경우, 스케줄러는 여전히
108+
{{< note >}} 클러스터에서 적합한 노드가 100 미만인 경우, 스케줄러는 여전히
109109
모든 노드를 확인한다. 그 이유는 스케줄러가 탐색을 조기 중단하기에는 적합한
110110
노드의 수가 충분하지 않기 때문이다.
111111

content/zh-cn/blog/_posts/2024-04-25-structured-authentication-configuration-beta.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ jwt:
283283
url: https://issuer.example.com
284284
audiences:
285285
- example-client-id
286-
certificateAuthority: <取值是 /path/to/ca.pem 文件的内容>
286+
certificateAuthority: <取值是 /path/to/ca.pem 文件的内容>
287287
claimMappings:
288288
username:
289289
claim: username

0 commit comments

Comments
 (0)