[zh-cn] Resync pod example YAMLs
This commit is contained in:
parent
68c0d1a557
commit
61a0856070
|
|
@ -7,7 +7,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: envar-demo-container
|
- name: envar-demo-container
|
||||||
image: gcr.io/google-samples/node-hello:1.0
|
image: gcr.io/google-samples/hello-app:2.0
|
||||||
env:
|
env:
|
||||||
- name: DEMO_GREETING
|
- name: DEMO_GREETING
|
||||||
value: "Hello from the environment"
|
value: "Hello from the environment"
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ metadata:
|
||||||
name: test-pod
|
name: test-pod
|
||||||
spec:
|
spec:
|
||||||
schedulingGates:
|
schedulingGates:
|
||||||
- name: foo
|
- name: example.com/foo
|
||||||
- name: bar
|
- name: example.com/bar
|
||||||
containers:
|
containers:
|
||||||
- name: pause
|
- name: pause
|
||||||
image: registry.k8s.io/pause:3.6
|
image: registry.k8s.io/pause:3.6
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ spec:
|
||||||
localhostProfile: profiles/audit.json
|
localhostProfile: profiles/audit.json
|
||||||
containers:
|
containers:
|
||||||
- name: test-container
|
- name: test-container
|
||||||
image: hashicorp/http-echo:0.2.3
|
image: hashicorp/http-echo:1.0
|
||||||
args:
|
args:
|
||||||
- "-text=just made some syscalls!"
|
- "-text=just made some syscalls!"
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ spec:
|
||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
containers:
|
containers:
|
||||||
- name: test-container
|
- name: test-container
|
||||||
image: hashicorp/http-echo:0.2.3
|
image: hashicorp/http-echo:1.0
|
||||||
args:
|
args:
|
||||||
- "-text=just made some more syscalls!"
|
- "-text=just made some more syscalls!"
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ spec:
|
||||||
localhostProfile: profiles/fine-grained.json
|
localhostProfile: profiles/fine-grained.json
|
||||||
containers:
|
containers:
|
||||||
- name: test-container
|
- name: test-container
|
||||||
image: hashicorp/http-echo:0.2.3
|
image: hashicorp/http-echo:1.0
|
||||||
args:
|
args:
|
||||||
- "-text=just made some syscalls!"
|
- "-text=just made some syscalls!"
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ spec:
|
||||||
localhostProfile: profiles/violation.json
|
localhostProfile: profiles/violation.json
|
||||||
containers:
|
containers:
|
||||||
- name: test-container
|
- name: test-container
|
||||||
image: hashicorp/http-echo:0.2.3
|
image: hashicorp/http-echo:1.0
|
||||||
args:
|
args:
|
||||||
- "-text=just made some syscalls!"
|
- "-text=just made some syscalls!"
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ spec:
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
containers:
|
containers:
|
||||||
- name: sec-ctx-demo-2
|
- name: sec-ctx-demo-2
|
||||||
image: gcr.io/google-samples/node-hello:1.0
|
image: gcr.io/google-samples/hello-app:2.0
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 2000
|
runAsUser: 2000
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: sec-ctx-3
|
- 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:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: sec-ctx-4
|
- name: sec-ctx-4
|
||||||
image: gcr.io/google-samples/node-hello:1.0
|
image: gcr.io/google-samples/hello-app:2.0
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add: ["NET_ADMIN", "SYS_TIME"]
|
add: ["NET_ADMIN", "SYS_TIME"]
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ spec:
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 3000
|
runAsGroup: 3000
|
||||||
fsGroup: 2000
|
fsGroup: 2000
|
||||||
|
supplementalGroups: [4000]
|
||||||
volumes:
|
volumes:
|
||||||
- name: sec-ctx-vol
|
- name: sec-ctx-vol
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ spec:
|
||||||
image: nginx
|
image: nginx
|
||||||
- name: shell
|
- name: shell
|
||||||
image: busybox:1.28
|
image: busybox:1.28
|
||||||
|
command: ["sleep", "3600"]
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ spec:
|
||||||
readOnly: true
|
readOnly: true
|
||||||
serviceAccountName: default
|
serviceAccountName: default
|
||||||
volumes:
|
volumes:
|
||||||
- name: root-certificates-vol
|
- name: token-vol
|
||||||
projected:
|
projected:
|
||||||
sources:
|
sources:
|
||||||
- clusterTrustBundle:
|
- clusterTrustBundle:
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: container-test
|
- name: container-test
|
||||||
image: busybox:1.28
|
image: busybox:1.28
|
||||||
|
command: ["sleep", "3600"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: all-in-one
|
- name: all-in-one
|
||||||
mountPath: "/projected-volume"
|
mountPath: "/projected-volume"
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: container-test
|
- name: container-test
|
||||||
image: busybox:1.28
|
image: busybox:1.28
|
||||||
|
command: ["sleep", "3600"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: all-in-one
|
- name: all-in-one
|
||||||
mountPath: "/projected-volume"
|
mountPath: "/projected-volume"
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: container-test
|
- name: container-test
|
||||||
image: busybox:1.28
|
image: busybox:1.28
|
||||||
|
command: ["sleep", "3600"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: token-vol
|
- name: token-vol
|
||||||
mountPath: "/service-account"
|
mountPath: "/service-account"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue