Skip to content

Commit da36446

Browse files
author
shamim
committed
Initial commit
0 parents  commit da36446

9 files changed

+182
-0
lines changed

postgres-deployment.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: postgres-deployment
5+
labels:
6+
app: demo-voting-app
7+
spec:
8+
template:
9+
metadata:
10+
name: postgres-pod
11+
labels:
12+
name: postgres-pod
13+
app: demo-voting-app
14+
15+
spec:
16+
containers:
17+
- name: postgres
18+
image: postgres:9.4
19+
ports:
20+
- containerPort: 6379
21+
replicas: 1
22+
selector:
23+
matchLabels:
24+
name: postgres-pod
25+
app: demo-voting-app

postgres-service.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: db
5+
labels:
6+
name: db-service
7+
app: demo-voting-app
8+
spec:
9+
ports:
10+
- port: 5432
11+
targetPort: 5432
12+
selector:
13+
name: postgres-pod
14+
app: demo-voting-app

redis-deployment.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: redis-deployment
5+
labels:
6+
app: demo-voting-app
7+
spec:
8+
template:
9+
metadata:
10+
name: redis-pod
11+
labels:
12+
name: redis-pod
13+
app: demo-voting-app
14+
15+
spec:
16+
containers:
17+
- name: redis
18+
image: redis
19+
ports:
20+
- containerPort: 6379
21+
replicas: 1
22+
selector:
23+
matchLabels:
24+
name: redis-pod
25+
app: demo-voting-app

redis-service.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: redis
5+
labels:
6+
name: redis-service
7+
app: demo-voting-app
8+
spec:
9+
ports:
10+
- port: 6379
11+
targetPort: 6379
12+
selector:
13+
name: redis-app-pod
14+
app: demo-voting-app

result-app-deployment.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: result-app-deployment
5+
labels:
6+
app: demo-voting-app
7+
spec:
8+
template:
9+
metadata:
10+
name: result-app-pod
11+
labels:
12+
name: result-app-pod
13+
app: demo-voting-app
14+
15+
spec:
16+
containers:
17+
- name: result-app
18+
image: dockersamples/examplevotingapp_result
19+
ports:
20+
- containerPort: 80
21+
replicas: 3
22+
selector:
23+
matchLabels:
24+
name: result-app-pod
25+
app: demo-voting-app

result-app-service.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: result-service
5+
labels:
6+
name: result-service
7+
app: demo-voting-app
8+
spec:
9+
type: LoadBalancer
10+
ports:
11+
- port: 80
12+
targetPort: 80
13+
selector:
14+
name: result-app-pod
15+
app: demo-voting-app

voting-app-deployment.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: voting-app-deployment
5+
labels:
6+
app: demo-voting-app
7+
spec:
8+
template:
9+
metadata:
10+
name: voting-app-pod
11+
labels:
12+
name: voting-app-pod
13+
app: demo-voting-app
14+
15+
spec:
16+
containers:
17+
- name: voting-app
18+
image: dockersamples/examplevotingapp_vote
19+
ports:
20+
- containerPort: 80
21+
replicas: 3
22+
selector:
23+
matchLabels:
24+
name: voting-app-pod
25+
app: demo-voting-app

voting-app-service.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: voting-service
5+
labels:
6+
name: voting-service
7+
app: demo-voting-app
8+
spec:
9+
type: LoadBalancer
10+
ports:
11+
- port: 80
12+
targetPort: 80
13+
selector:
14+
name: voting-app-pod
15+
app: demo-voting-app

worker-app-deployment.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: worker-app-deployment
5+
labels:
6+
app: demo-voting-app
7+
spec:
8+
template:
9+
metadata:
10+
name: worker-app-pod
11+
labels:
12+
name: worker-app-pod
13+
app: demo-voting-app
14+
15+
spec:
16+
containers:
17+
- name: worker-app
18+
image: dockersamples/examplevotingapp_worker
19+
20+
replicas: 3
21+
selector:
22+
matchLabels:
23+
name: worker-app-pod
24+
app: demo-voting-app

0 commit comments

Comments
 (0)