Skip to content

Commit 43198db

Browse files
committed
Reformat using prettier
1 parent c39f98b commit 43198db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+757
-802
lines changed

01_pod.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ metadata:
77
svc: example
88
spec:
99
containers:
10-
- name: simple-hello-world
11-
image: ondrejsika/go-hello-world:2
12-
ports:
13-
- containerPort: 80
14-
resources:
15-
requests:
16-
memory: 10Mi
17-
cpu: 10m
18-
limits:
19-
memory: 20Mi
20-
cpu: 20m
10+
- name: simple-hello-world
11+
image: ondrejsika/go-hello-world:2
12+
ports:
13+
- containerPort: 80
14+
resources:
15+
requests:
16+
memory: 10Mi
17+
cpu: 10m
18+
limits:
19+
memory: 20Mi
20+
cpu: 20m

02_pod.yml

+32-32
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,39 @@ metadata:
77
svc: example
88
spec:
99
volumes:
10-
- name: html
11-
emptyDir: {}
12-
containers:
13-
- name: nginx
14-
image: nginx
15-
ports:
16-
- containerPort: 80
17-
volumeMounts:
18-
- name: html
19-
mountPath: /usr/share/nginx/html
20-
resources:
21-
requests:
22-
memory: 20Mi
23-
cpu: 30m
24-
limits:
25-
memory: 50Mi
26-
cpu: 30m
27-
- name: date
28-
image: debian
29-
volumeMounts:
3010
- name: html
31-
mountPath: /html
32-
command: ["/bin/sh", "-c"]
33-
args:
34-
- while true; do
11+
emptyDir: {}
12+
containers:
13+
- name: nginx
14+
image: nginx
15+
ports:
16+
- containerPort: 80
17+
volumeMounts:
18+
- name: html
19+
mountPath: /usr/share/nginx/html
20+
resources:
21+
requests:
22+
memory: 20Mi
23+
cpu: 30m
24+
limits:
25+
memory: 50Mi
26+
cpu: 30m
27+
- name: date
28+
image: debian
29+
volumeMounts:
30+
- name: html
31+
mountPath: /html
32+
command: ["/bin/sh", "-c"]
33+
args:
34+
- while true; do
3535
date > /html/index.html.tmp;
3636
mv /html/index.html.tmp /html/index.html;
3737
sleep 1;
38-
done
39-
resources:
40-
requests:
41-
memory: 15Mi
42-
cpu: 10m
43-
limits:
44-
memory: 15Mi
45-
cpu: 10m
38+
done
39+
resources:
40+
requests:
41+
memory: 15Mi
42+
cpu: 10m
43+
limits:
44+
memory: 15Mi
45+
cpu: 10m

03_01_replica_set.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ spec:
1616
svc: example
1717
spec:
1818
containers:
19-
- name: hello-world
20-
image: ondrejsika/go-hello-world:2
21-
ports:
22-
- containerPort: 80
23-
resources:
24-
requests:
25-
cpu: 10m
26-
memory: 10Mi
19+
- name: hello-world
20+
image: ondrejsika/go-hello-world:2
21+
ports:
22+
- containerPort: 80
23+
resources:
24+
requests:
25+
cpu: 10m
26+
memory: 10Mi

03_02_replica_set.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ spec:
1616
svc: example
1717
spec:
1818
containers:
19-
- name: hello-world
20-
image: ondrejsika/go-hello-world:2
21-
ports:
22-
- containerPort: 80
23-
resources:
24-
requests:
25-
cpu: 10m
26-
memory: 10Mi
19+
- name: hello-world
20+
image: ondrejsika/go-hello-world:2
21+
ports:
22+
- containerPort: 80
23+
resources:
24+
requests:
25+
cpu: 10m
26+
memory: 10Mi

04_01_deployment.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Deployment
33
metadata:
44
name: hello-world
55
labels:
6-
app: hello-world-deploy
6+
app: hello-world-deploy
77
annotations:
88
kubernetes.io/change-cause: ver1
99
spec:
@@ -18,14 +18,14 @@ spec:
1818
svc: example
1919
spec:
2020
containers:
21-
- name: hello-world
22-
image: ondrejsika/go-hello-world:1
23-
ports:
24-
- containerPort: 80
25-
resources:
26-
requests:
27-
cpu: 10m
28-
memory: 10Mi
29-
limits:
30-
memory: 20Mi
31-
cpu: 20m
21+
- name: hello-world
22+
image: ondrejsika/go-hello-world:1
23+
ports:
24+
- containerPort: 80
25+
resources:
26+
requests:
27+
cpu: 10m
28+
memory: 10Mi
29+
limits:
30+
memory: 20Mi
31+
cpu: 20m

04_02_deployment.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Deployment
33
metadata:
44
name: hello-world
55
labels:
6-
app: hello-world-deploy
6+
app: hello-world-deploy
77
annotations:
88
kubernetes.io/change-cause: ver2
99
spec:
@@ -18,14 +18,14 @@ spec:
1818
svc: example
1919
spec:
2020
containers:
21-
- name: hello-world
22-
image: ondrejsika/go-hello-world:2
23-
ports:
24-
- containerPort: 80
25-
resources:
26-
requests:
27-
cpu: 10m
28-
memory: 10Mi
29-
limits:
30-
memory: 20Mi
31-
cpu: 20m
21+
- name: hello-world
22+
image: ondrejsika/go-hello-world:2
23+
ports:
24+
- containerPort: 80
25+
resources:
26+
requests:
27+
cpu: 10m
28+
memory: 10Mi
29+
limits:
30+
memory: 20Mi
31+
cpu: 20m

04_03_deployment.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ spec:
1818
svc: example
1919
spec:
2020
containers:
21-
- name: hello-world
22-
image: nginx
23-
ports:
24-
- containerPort: 80
25-
resources:
26-
requests:
27-
cpu: 10m
28-
memory: 10Mi
29-
limits:
30-
memory: 20Mi
31-
cpu: 20m
21+
- name: hello-world
22+
image: nginx
23+
ports:
24+
- containerPort: 80
25+
resources:
26+
requests:
27+
cpu: 10m
28+
memory: 10Mi
29+
limits:
30+
memory: 20Mi
31+
cpu: 20m

04_04_deployment.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ spec:
1818
svc: example
1919
spec:
2020
containers:
21-
- name: hello-world
22-
image: httpd
23-
ports:
24-
- containerPort: 80
25-
resources:
26-
requests:
27-
cpu: 10m
28-
memory: 10Mi
29-
limits:
30-
memory: 20Mi
31-
cpu: 20m
21+
- name: hello-world
22+
image: httpd
23+
ports:
24+
- containerPort: 80
25+
resources:
26+
requests:
27+
cpu: 10m
28+
memory: 10Mi
29+
limits:
30+
memory: 20Mi
31+
cpu: 20m

05_clusterip_service.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ metadata:
55
spec:
66
type: ClusterIP
77
ports:
8-
- port: 80
9-
protocol: TCP
10-
targetPort: 80
8+
- port: 80
9+
protocol: TCP
10+
targetPort: 80
1111
selector:
1212
app: hello-world-deploy
13-

06_nodeport_service.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ metadata:
55
spec:
66
type: NodePort
77
ports:
8-
- port: 80
9-
protocol: TCP
10-
targetPort: 80
11-
# nodePort is optional
12-
nodePort: 31001
8+
- port: 80
9+
protocol: TCP
10+
targetPort: 80
11+
# nodePort is optional
12+
nodePort: 31001
1313
selector:
1414
app: hello-world-deploy
15-

07_counter.yml

+28-28
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
project: counter
77
spec:
88
accessModes:
9-
- ReadWriteOnce
9+
- ReadWriteOnce
1010
resources:
1111
requests:
1212
storage: 1Gi
@@ -31,21 +31,21 @@ spec:
3131
app: redis
3232
spec:
3333
containers:
34-
- name: redis
35-
image: redis
36-
resources:
37-
requests:
38-
cpu: 30m
39-
memory: 50Mi
40-
ports:
41-
- containerPort: 6379
42-
volumeMounts:
43-
- mountPath: /data
44-
name: data
34+
- name: redis
35+
image: redis
36+
resources:
37+
requests:
38+
cpu: 30m
39+
memory: 50Mi
40+
ports:
41+
- containerPort: 6379
42+
volumeMounts:
43+
- mountPath: /data
44+
name: data
4545
volumes:
46-
- name: data
47-
persistentVolumeClaim:
48-
claimName: redis
46+
- name: data
47+
persistentVolumeClaim:
48+
claimName: redis
4949
---
5050
apiVersion: v1
5151
kind: Service
@@ -55,7 +55,7 @@ metadata:
5555
project: counter
5656
spec:
5757
ports:
58-
- port: 6379
58+
- port: 6379
5959
selector:
6060
project: counter
6161
app: redis
@@ -79,17 +79,17 @@ spec:
7979
app: counter
8080
spec:
8181
containers:
82-
- name: counter
83-
image: ondrejsika/counter
84-
resources:
85-
requests:
86-
cpu: 20m
87-
memory: 10Mi
88-
env:
89-
- name: REDIS
90-
value: redis
91-
ports:
92-
- containerPort: 80
82+
- name: counter
83+
image: ondrejsika/counter
84+
resources:
85+
requests:
86+
cpu: 20m
87+
memory: 10Mi
88+
env:
89+
- name: REDIS
90+
value: redis
91+
ports:
92+
- containerPort: 80
9393
---
9494
apiVersion: v1
9595
kind: Service
@@ -100,7 +100,7 @@ metadata:
100100
spec:
101101
type: NodePort
102102
ports:
103-
- port: 80
103+
- port: 80
104104
selector:
105105
project: counter
106106
app: counter

0 commit comments

Comments
 (0)