@@ -247,15 +247,8 @@ of the kubelet. Use `docker exec` to run a command in the Pod:
247247你应该会看到 ` profiles/ ` 目录已成功加载到 kubelet 的默认 seccomp 路径中。
248248使用 ` docker exec ` 在 Pod 中运行命令:
249249
250- <!--
251- ```shell
252- # Change 6a96207fed4b to the container ID you saw from "docker ps"
253- docker exec -it 6a96207fed4b ls /var/lib/kubelet/seccomp/profiles
254- ```
255- -->
256250``` shell
257- # 将 6a96207fed4b 更改为你从 “docker ps” 看到的容器 ID
258- docker exec -it 6a96207fed4b ls /var/lib/kubelet/seccomp/profiles
251+ docker exec -it kind-control-plane ls /var/lib/kubelet/seccomp/profiles
259252```
260253
261254```
@@ -427,13 +420,13 @@ container belonging to that control plane container:
427420
428421<!--
429422```shell
430- # Change 6a96207fed4b to the control plane container ID and 32373 to the port number you saw from "docker ps "
431- docker exec -it 6a96207fed4b curl localhost:32373
423+ # Change 32373 to the port number you saw from "kubectl get service audit-pod "
424+ docker exec -it kind-control-plane curl localhost:32373
432425```
433426-->
434427``` shell
435- # 将 6a96207fed4b 更改为你从 “docker ps” 看到的控制平面容器 ID 和端口号 32373
436- docker exec -it 6a96207fed4b curl localhost:32373
428+ # 将 32373 替换为你从 “kubectl get service audit-pod” 命令中看到的端口号。
429+ docker exec -it kind-control-plane curl localhost:32373
437430```
438431
439432```
@@ -662,12 +655,12 @@ Use `curl` to access that endpoint from inside the kind control plane container:
662655
663656<!--
664657```shell
665- # Change 6a96207fed4b to the control plane container ID and 32373 to the port number you saw from "docker ps "
666- docker exec -it 6a96207fed4b curl localhost:32373
658+ # Change 32373 to the port number you saw from "kubectl get service fine-pod "
659+ docker exec -it kind-control-plane curl localhost:32373
667660```
668661-->
669662``` shell
670- # 将 6a96207fed4b 更改为你从 “docker ps” 看到的控制平面容器 ID 和端口号 32373
663+ # 将 32373 替换为你从 “kubectl get service fine-pod” 命令中看到的端口号。
671664docker exec -it 6a96207fed4b curl localhost:32373
672665```
673666
0 commit comments