[zh-cn] Resync pod example YAMLs

This commit is contained in:
Mengjiao Liu 2024-09-20 11:08:09 +08:00
parent 68c0d1a557
commit 61a0856070
15 changed files with 16 additions and 11 deletions

View File

@ -7,7 +7,7 @@ metadata:
spec:
containers:
- name: envar-demo-container
image: gcr.io/google-samples/node-hello:1.0
image: gcr.io/google-samples/hello-app:2.0
env:
- name: DEMO_GREETING
value: "Hello from the environment"

View File

@ -4,8 +4,8 @@ metadata:
name: test-pod
spec:
schedulingGates:
- name: foo
- name: bar
- name: example.com/foo
- name: example.com/bar
containers:
- name: pause
image: registry.k8s.io/pause:3.6

View File

@ -11,7 +11,7 @@ spec:
localhostProfile: profiles/audit.json
containers:
- name: test-container
image: hashicorp/http-echo:0.2.3
image: hashicorp/http-echo:1.0
args:
- "-text=just made some syscalls!"
securityContext:

View File

@ -10,7 +10,7 @@ spec:
type: RuntimeDefault
containers:
- name: test-container
image: hashicorp/http-echo:0.2.3
image: hashicorp/http-echo:1.0
args:
- "-text=just made some more syscalls!"
securityContext:

View File

@ -11,7 +11,7 @@ spec:
localhostProfile: profiles/fine-grained.json
containers:
- name: test-container
image: hashicorp/http-echo:0.2.3
image: hashicorp/http-echo:1.0
args:
- "-text=just made some syscalls!"
securityContext:

View File

@ -11,7 +11,7 @@ spec:
localhostProfile: profiles/violation.json
containers:
- name: test-container
image: hashicorp/http-echo:0.2.3
image: hashicorp/http-echo:1.0
args:
- "-text=just made some syscalls!"
securityContext:

View File

@ -7,7 +7,7 @@ spec:
runAsUser: 1000
containers:
- name: sec-ctx-demo-2
image: gcr.io/google-samples/node-hello:1.0
image: gcr.io/google-samples/hello-app:2.0
securityContext:
runAsUser: 2000
allowPrivilegeEscalation: false

View File

@ -5,4 +5,4 @@ metadata:
spec:
containers:
- name: sec-ctx-3
image: gcr.io/google-samples/node-hello:1.0
image: gcr.io/google-samples/hello-app:2.0

View File

@ -5,7 +5,7 @@ metadata:
spec:
containers:
- name: sec-ctx-4
image: gcr.io/google-samples/node-hello:1.0
image: gcr.io/google-samples/hello-app:2.0
securityContext:
capabilities:
add: ["NET_ADMIN", "SYS_TIME"]

View File

@ -7,6 +7,7 @@ spec:
runAsUser: 1000
runAsGroup: 3000
fsGroup: 2000
supplementalGroups: [4000]
volumes:
- name: sec-ctx-vol
emptyDir: {}

View File

@ -9,6 +9,7 @@ spec:
image: nginx
- name: shell
image: busybox:1.28
command: ["sleep", "3600"]
securityContext:
capabilities:
add:

View File

@ -13,7 +13,7 @@ spec:
readOnly: true
serviceAccountName: default
volumes:
- name: root-certificates-vol
- name: token-vol
projected:
sources:
- clusterTrustBundle:

View File

@ -6,6 +6,7 @@ spec:
containers:
- name: container-test
image: busybox:1.28
command: ["sleep", "3600"]
volumeMounts:
- name: all-in-one
mountPath: "/projected-volume"

View File

@ -6,6 +6,7 @@ spec:
containers:
- name: container-test
image: busybox:1.28
command: ["sleep", "3600"]
volumeMounts:
- name: all-in-one
mountPath: "/projected-volume"

View File

@ -6,6 +6,7 @@ spec:
containers:
- name: container-test
image: busybox:1.28
command: ["sleep", "3600"]
volumeMounts:
- name: token-vol
mountPath: "/service-account"