[zh-cn] Resync pod example YAMLs
This commit is contained in:
parent
68c0d1a557
commit
61a0856070
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ spec:
|
|||
runAsUser: 1000
|
||||
runAsGroup: 3000
|
||||
fsGroup: 2000
|
||||
supplementalGroups: [4000]
|
||||
volumes:
|
||||
- name: sec-ctx-vol
|
||||
emptyDir: {}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ spec:
|
|||
image: nginx
|
||||
- name: shell
|
||||
image: busybox:1.28
|
||||
command: ["sleep", "3600"]
|
||||
securityContext:
|
||||
capabilities:
|
||||
add:
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ spec:
|
|||
readOnly: true
|
||||
serviceAccountName: default
|
||||
volumes:
|
||||
- name: root-certificates-vol
|
||||
- name: token-vol
|
||||
projected:
|
||||
sources:
|
||||
- clusterTrustBundle:
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ spec:
|
|||
containers:
|
||||
- name: container-test
|
||||
image: busybox:1.28
|
||||
command: ["sleep", "3600"]
|
||||
volumeMounts:
|
||||
- name: all-in-one
|
||||
mountPath: "/projected-volume"
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ spec:
|
|||
containers:
|
||||
- name: container-test
|
||||
image: busybox:1.28
|
||||
command: ["sleep", "3600"]
|
||||
volumeMounts:
|
||||
- name: all-in-one
|
||||
mountPath: "/projected-volume"
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ spec:
|
|||
containers:
|
||||
- name: container-test
|
||||
image: busybox:1.28
|
||||
command: ["sleep", "3600"]
|
||||
volumeMounts:
|
||||
- name: token-vol
|
||||
mountPath: "/service-account"
|
||||
|
|
|
|||
Loading…
Reference in New Issue