forked from mdshuai/testfile-openshift
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbad-pod.yaml
39 lines (39 loc) · 969 Bytes
/
bad-pod.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
apiVersion: v1
kind: Pod
metadata:
name: hello-pod
annotations:
pod.alpha.kubernetes.io/init-containers: '[
{
"name": "install",
"image": "busybox",
"command": ["wget", "-O", "/work-dir/index.html", "http://xxxx.io/index.html"],
"volumeMounts": [
{
"name": "workdir",
"mountPath": "/work-dir"
}
]
}
]'
spec:
containers:
- image: "docker.io/deshuai/hello-pod:latest"
imagePullPolicy: IfNotPresent
name: hello-pod
ports:
- containerPort: 8080
protocol: TCP
resources: {}
securityContext:
capabilities: {}
privileged: false
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /tmp
name: workdir
dnsPolicy: ClusterFirst
serviceAccount: ""
volumes:
- emptyDir: {}
name: workdir