Skip to content

Commit b04febe

Browse files
author
spara
committed
updated .gitignore
1 parent 040692c commit b04febe

File tree

8 files changed

+310
-0
lines changed

8 files changed

+310
-0
lines changed

docker-compose-k8s.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: ':8080'
2+
3+
services:
4+
redis:
5+
image: redis:alpine
6+
ports:
7+
- "6379:6379"
8+
db:
9+
image: postgres:9.4
10+
ports:
11+
- "5432:5432"
12+
vote:
13+
image: dockersamples/examplevotingapp_vote:before
14+
ports:
15+
- "5000:80"
16+
deploy:
17+
replicas: 2
18+
result:
19+
image: dockersamples/examplevotingapp_result:before
20+
ports:
21+
- "5001:80"
22+
worker:
23+
image: dockersamples/examplevotingapp_worker
24+
visualizer:
25+
image: dockersamples/visualizer:stable
26+
ports:
27+
- "8080:8080"

kube-deployment.yml

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
labels:
6+
app: redis
7+
name: redis
8+
spec:
9+
clusterIP: None
10+
ports:
11+
- name: redis
12+
port: 6379
13+
targetPort: 6379
14+
selector:
15+
app: redis
16+
---
17+
apiVersion: apps/v1beta1
18+
kind: Deployment
19+
metadata:
20+
name: redis
21+
labels:
22+
app: redis
23+
spec:
24+
selector:
25+
matchLabels:
26+
app: redis
27+
replicas: 1
28+
template:
29+
metadata:
30+
labels:
31+
app: redis
32+
spec:
33+
containers:
34+
- name: redis
35+
image: redis:alpine
36+
ports:
37+
- containerPort: 6379
38+
name: redis
39+
40+
---
41+
apiVersion: v1
42+
kind: Service
43+
metadata:
44+
labels:
45+
app: db
46+
name: db
47+
spec:
48+
clusterIP: None
49+
ports:
50+
-
51+
name: db
52+
port: 5432
53+
targetPort: 5432
54+
selector:
55+
app: db
56+
---
57+
apiVersion: apps/v1beta1
58+
kind: Deployment
59+
metadata:
60+
name: db
61+
# labels:
62+
# app: db
63+
spec:
64+
template:
65+
metadata:
66+
labels:
67+
app: db
68+
spec:
69+
containers:
70+
-
71+
name: db
72+
image: postgres:9.4
73+
env:
74+
- name: PGDATA
75+
value: /var/lib/postgresql/data/pgdata
76+
ports:
77+
- containerPort: 5432
78+
name: db
79+
volumeMounts:
80+
- name: db-data
81+
mountPath: /var/lib/postgresql/data
82+
volumes:
83+
- name: db-data
84+
persistentVolumeClaim:
85+
claimName: postgres-pv-claim
86+
87+
---
88+
apiVersion: v1
89+
kind: PersistentVolumeClaim
90+
metadata:
91+
name: postgres-pv-claim
92+
spec:
93+
accessModes:
94+
- ReadWriteOnce
95+
resources:
96+
requests:
97+
storage: 1Gi
98+
99+
---
100+
apiVersion: v1
101+
kind: Service
102+
metadata:
103+
name: result
104+
labels:
105+
app: result
106+
spec:
107+
type: LoadBalancer
108+
ports:
109+
-
110+
port: 5001
111+
targetPort: 80
112+
name: result
113+
selector:
114+
app: result
115+
# clusterIP: None
116+
---
117+
apiVersion: apps/v1beta1
118+
kind: Deployment
119+
metadata:
120+
name: result
121+
labels:
122+
app: result
123+
spec:
124+
replicas: 1
125+
template:
126+
metadata:
127+
labels:
128+
app: result
129+
spec:
130+
containers:
131+
- name: result
132+
image: dockersamples/examplevotingapp_result:before
133+
ports:
134+
- containerPort: 80
135+
name: result
136+
137+
---
138+
apiVersion: v1
139+
kind: Service
140+
metadata:
141+
name: vote
142+
labels:
143+
apps: vote
144+
spec:
145+
type: LoadBalancer
146+
ports:
147+
- port: 5000
148+
targetPort: 80
149+
name: vote
150+
selector:
151+
app: vote
152+
# clusterIP: None
153+
---
154+
apiVersion: apps/v1beta1
155+
kind: Deployment
156+
metadata:
157+
name: vote
158+
labels:
159+
app: vote
160+
spec:
161+
replicas: 2
162+
template:
163+
metadata:
164+
labels:
165+
app: vote
166+
spec:
167+
containers:
168+
- name: vote
169+
image: dockersamples/examplevotingapp_vote:before
170+
ports:
171+
-
172+
containerPort: 80
173+
name: vote
174+
175+
---
176+
apiVersion: v1
177+
kind: Service
178+
metadata:
179+
labels:
180+
apps: worker
181+
name: worker
182+
spec:
183+
clusterIP: None
184+
selector:
185+
app: worker
186+
---
187+
apiVersion: apps/v1beta1
188+
kind: Deployment
189+
metadata:
190+
labels:
191+
app: worker
192+
name: worker
193+
spec:
194+
replicas: 1
195+
template:
196+
metadata:
197+
labels:
198+
app: worker
199+
spec:
200+
containers:
201+
-
202+
image: dockersamples/examplevotingapp_worker
203+
name: worker

worker/.classpath

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
10+
<attributes>
11+
<attribute name="optional" value="true"/>
12+
<attribute name="maven.pomderived" value="true"/>
13+
<attribute name="test" value="true"/>
14+
</attributes>
15+
</classpathentry>
16+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
17+
<attributes>
18+
<attribute name="maven.pomderived" value="true"/>
19+
</attributes>
20+
</classpathentry>
21+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
22+
<attributes>
23+
<attribute name="maven.pomderived" value="true"/>
24+
</attributes>
25+
</classpathentry>
26+
<classpathentry kind="src" path="target/generated-sources/annotations">
27+
<attributes>
28+
<attribute name="optional" value="true"/>
29+
<attribute name="maven.pomderived" value="true"/>
30+
<attribute name="ignore_optional_problems" value="true"/>
31+
<attribute name="m2e-apt" value="true"/>
32+
</attributes>
33+
</classpathentry>
34+
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
35+
<attributes>
36+
<attribute name="optional" value="true"/>
37+
<attribute name="maven.pomderived" value="true"/>
38+
<attribute name="ignore_optional_problems" value="true"/>
39+
<attribute name="m2e-apt" value="true"/>
40+
<attribute name="test" value="true"/>
41+
</attributes>
42+
</classpathentry>
43+
<classpathentry kind="output" path="target/classes"/>
44+
</classpath>

worker/.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>worker</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22+
</natures>
23+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.apt.aptEnabled=false
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
3+
org.eclipse.jdt.core.compiler.compliance=1.7
4+
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5+
org.eclipse.jdt.core.compiler.processAnnotations=disabled
6+
org.eclipse.jdt.core.compiler.release=disabled
7+
org.eclipse.jdt.core.compiler.source=1.7
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
activeProfiles=
2+
eclipse.preferences.version=1
3+
resolveWorkspaceProjects=true
4+
version=1
4.01 KB
Binary file not shown.

0 commit comments

Comments
 (0)