Skip to content

Commit 1ed0e14

Browse files
committed
Kubernetes: Add alpine manifest files
Signed-off-by: NotHarshhaa <[email protected]>
1 parent 1ea3375 commit 1ed0e14

4 files changed

+97
-0
lines changed

Diff for: alpine/alpine-pod-2-containers.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
#creationTimestamp: null
5+
labels:
6+
run: alpine-2-containers
7+
name: alpine-2-containers
8+
spec:
9+
containers:
10+
- args:
11+
- /bin/sh
12+
- -c
13+
- echo hello;sleep 10000
14+
image: alpine
15+
name: alpine1
16+
#resources: {}
17+
- args:
18+
- /bin/sh
19+
- -c
20+
- echo hello;sleep 10000
21+
image: alpine
22+
name: alpine2
23+
#resources: {}
24+
dnsPolicy: ClusterFirst
25+
restartPolicy: Never
26+
#status: {}

Diff for: alpine/alpine-pod-service-account.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
#creationTimestamp: null
5+
labels:
6+
run: alpine-sa
7+
name: alpine-sa
8+
spec:
9+
serviceAccountName: mysa
10+
containers:
11+
- args:
12+
- /bin/sh
13+
- -c
14+
- echo hello;sleep 3600
15+
image: alpine
16+
name: alpine-2-containers
17+
# resources: {}
18+
dnsPolicy: ClusterFirst
19+
restartPolicy: Never
20+
#status: {}

Diff for: alpine/alpine-pod-share-volumes.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
labels:
5+
run: alpine-2-containers
6+
name: alpine-2-containers-share-volume
7+
spec:
8+
containers:
9+
- args:
10+
- /bin/sh
11+
- -c
12+
- echo hello;sleep 10000
13+
image: alpine
14+
name: alpine1
15+
volumeMounts:
16+
- name: share
17+
mountPath: "/tmp/share1"
18+
- args:
19+
- /bin/sh
20+
- -c
21+
- echo hello;sleep 10000
22+
image: alpine
23+
name: alpine2
24+
volumeMounts:
25+
- name: share
26+
mountPath: "/tmp/share2"
27+
dnsPolicy: ClusterFirst
28+
restartPolicy: Never
29+
volumes:
30+
- name: share
31+
emptyDir: {}
32+
#status: {}

Diff for: alpine/alpine-pod.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
#creationTimestamp: null
5+
labels:
6+
run: alpine-2-containers
7+
name: alpine-2-containers
8+
spec:
9+
containers:
10+
- args:
11+
- /bin/sh
12+
- -c
13+
- echo hello;sleep 3600
14+
image: alpine
15+
name: alpine-2-containers
16+
#resources: {}
17+
dnsPolicy: ClusterFirst
18+
restartPolicy: Never
19+
#status: {}

0 commit comments

Comments
 (0)