Skip to content

Commit 3144aea

Browse files
committed
kubernetes files added.
1 parent eda302c commit 3144aea

38 files changed

Lines changed: 1752 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
HELP.md
2+
target/
3+
!.mvn/wrapper/maven-wrapper.jar
4+
!**/src/main/**/target/
5+
!**/src/test/**/target/
6+
7+
### STS ###
8+
.apt_generated
9+
.classpath
10+
.factorypath
11+
.project
12+
.settings
13+
.springBeans
14+
.sts4-cache
15+
16+
### IntelliJ IDEA ###
17+
.idea
18+
*.iws
19+
*.iml
20+
*.ipr
21+
22+
### NetBeans ###
23+
/nbproject/private/
24+
/nbbuild/
25+
/dist/
26+
/nbdist/
27+
/.nb-gradle/
28+
build/
29+
!**/src/main/**/build/
30+
!**/src/test/**/build/
31+
32+
### VS Code ###
33+
.vscode/
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
annotations:
5+
deployment.kubernetes.io/revision: "1"
6+
labels:
7+
app: currency-conversion
8+
name: currency-conversion
9+
namespace: default
10+
spec:
11+
replicas: 1
12+
selector:
13+
matchLabels:
14+
app: currency-conversion
15+
strategy:
16+
rollingUpdate:
17+
maxSurge: 25%
18+
maxUnavailable: 25%
19+
type: RollingUpdate
20+
template:
21+
metadata:
22+
labels:
23+
app: currency-conversion
24+
spec:
25+
containers:
26+
- image: in28min/mmv2-currency-conversion-service:0.0.11-SNAPSHOT
27+
imagePullPolicy: IfNotPresent
28+
name: mmv2-currency-conversion-service
29+
restartPolicy: Always
30+
---
31+
apiVersion: v1
32+
kind: Service
33+
metadata:
34+
labels:
35+
app: currency-conversion
36+
name: currency-conversion
37+
namespace: default
38+
spec:
39+
ports:
40+
- port: 8100
41+
protocol: TCP
42+
targetPort: 8100
43+
selector:
44+
app: currency-conversion
45+
sessionAffinity: None
46+
type: LoadBalancer
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
annotations:
5+
deployment.kubernetes.io/revision: "1"
6+
labels:
7+
app: currency-conversion
8+
name: currency-conversion
9+
namespace: default
10+
spec:
11+
replicas: 1
12+
selector:
13+
matchLabels:
14+
app: currency-conversion
15+
strategy:
16+
rollingUpdate:
17+
maxSurge: 25%
18+
maxUnavailable: 25%
19+
type: RollingUpdate
20+
template:
21+
metadata:
22+
labels:
23+
app: currency-conversion
24+
spec:
25+
containers:
26+
- image: in28min/mmv2-currency-conversion-service:0.0.12-SNAPSHOT
27+
imagePullPolicy: IfNotPresent
28+
name: mmv2-currency-conversion-service
29+
env:
30+
- name: CURRENCY_EXCHANGE_URI
31+
value: http://currency-exchange
32+
restartPolicy: Always
33+
---
34+
apiVersion: v1
35+
kind: Service
36+
metadata:
37+
labels:
38+
app: currency-conversion
39+
name: currency-conversion
40+
namespace: default
41+
spec:
42+
ports:
43+
- port: 8100
44+
protocol: TCP
45+
targetPort: 8100
46+
selector:
47+
app: currency-conversion
48+
sessionAffinity: None
49+
type: LoadBalancer
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
annotations:
5+
deployment.kubernetes.io/revision: "1"
6+
labels:
7+
app: currency-conversion
8+
name: currency-conversion
9+
namespace: default
10+
spec:
11+
replicas: 1
12+
selector:
13+
matchLabels:
14+
app: currency-conversion
15+
strategy:
16+
rollingUpdate:
17+
maxSurge: 25%
18+
maxUnavailable: 25%
19+
type: RollingUpdate
20+
template:
21+
metadata:
22+
labels:
23+
app: currency-conversion
24+
spec:
25+
containers:
26+
- image: in28min/mmv2-currency-conversion-service:0.0.12-SNAPSHOT
27+
imagePullPolicy: IfNotPresent
28+
name: mmv2-currency-conversion-service
29+
envFrom:
30+
- configMapRef:
31+
name: currency-conversion
32+
# env:
33+
# - name: CURRENCY_EXCHANGE_URI
34+
# value: http://currency-exchange
35+
36+
restartPolicy: Always
37+
---
38+
apiVersion: v1
39+
kind: Service
40+
metadata:
41+
labels:
42+
app: currency-conversion
43+
name: currency-conversion
44+
namespace: default
45+
spec:
46+
ports:
47+
- port: 8100
48+
protocol: TCP
49+
targetPort: 8100
50+
selector:
51+
app: currency-conversion
52+
sessionAffinity: None
53+
type: LoadBalancer
54+
---
55+
apiVersion: v1
56+
data:
57+
CURRENCY_EXCHANGE_URI: http://currency-exchange
58+
kind: ConfigMap
59+
metadata:
60+
name: currency-conversion
61+
namespace: default
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
HELP.md
2+
target/
3+
!.mvn/wrapper/maven-wrapper.jar
4+
!**/src/main/**/target/
5+
!**/src/test/**/target/
6+
7+
### STS ###
8+
.apt_generated
9+
.classpath
10+
.factorypath
11+
.project
12+
.settings
13+
.springBeans
14+
.sts4-cache
15+
16+
### IntelliJ IDEA ###
17+
.idea
18+
*.iws
19+
*.iml
20+
*.ipr
21+
22+
### NetBeans ###
23+
/nbproject/private/
24+
/nbbuild/
25+
/dist/
26+
/nbdist/
27+
/.nb-gradle/
28+
build/
29+
!**/src/main/**/build/
30+
!**/src/test/**/build/
31+
32+
### VS Code ###
33+
.vscode/
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
annotations:
5+
deployment.kubernetes.io/revision: "1"
6+
labels:
7+
app: currency-conversion
8+
name: currency-conversion
9+
namespace: default
10+
spec:
11+
replicas: 1
12+
selector:
13+
matchLabels:
14+
app: currency-conversion
15+
strategy:
16+
rollingUpdate:
17+
maxSurge: 25%
18+
maxUnavailable: 25%
19+
type: RollingUpdate
20+
template:
21+
metadata:
22+
labels:
23+
app: currency-conversion
24+
spec:
25+
containers:
26+
- image: in28min/mmv2-currency-conversion-service:0.0.11-SNAPSHOT
27+
imagePullPolicy: IfNotPresent
28+
name: mmv2-currency-conversion-service
29+
restartPolicy: Always
30+
---
31+
apiVersion: v1
32+
kind: Service
33+
metadata:
34+
labels:
35+
app: currency-conversion
36+
name: currency-conversion
37+
namespace: default
38+
spec:
39+
ports:
40+
- port: 8100
41+
protocol: TCP
42+
targetPort: 8100
43+
selector:
44+
app: currency-conversion
45+
sessionAffinity: None
46+
type: LoadBalancer
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
annotations:
5+
deployment.kubernetes.io/revision: "1"
6+
labels:
7+
app: currency-conversion
8+
name: currency-conversion
9+
namespace: default
10+
spec:
11+
replicas: 1
12+
selector:
13+
matchLabels:
14+
app: currency-conversion
15+
strategy:
16+
rollingUpdate:
17+
maxSurge: 25%
18+
maxUnavailable: 25%
19+
type: RollingUpdate
20+
template:
21+
metadata:
22+
labels:
23+
app: currency-conversion
24+
spec:
25+
containers:
26+
- image: in28min/mmv2-currency-conversion-service:0.0.12-SNAPSHOT
27+
imagePullPolicy: IfNotPresent
28+
name: mmv2-currency-conversion-service
29+
env:
30+
- name: CURRENCY_EXCHANGE_URI
31+
value: http://currency-exchange
32+
restartPolicy: Always
33+
---
34+
apiVersion: v1
35+
kind: Service
36+
metadata:
37+
labels:
38+
app: currency-conversion
39+
name: currency-conversion
40+
namespace: default
41+
spec:
42+
ports:
43+
- port: 8100
44+
protocol: TCP
45+
targetPort: 8100
46+
selector:
47+
app: currency-conversion
48+
sessionAffinity: None
49+
type: LoadBalancer
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
annotations:
5+
deployment.kubernetes.io/revision: "1"
6+
labels:
7+
app: currency-conversion
8+
name: currency-conversion
9+
namespace: default
10+
spec:
11+
replicas: 1
12+
selector:
13+
matchLabels:
14+
app: currency-conversion
15+
strategy:
16+
rollingUpdate:
17+
maxSurge: 25%
18+
maxUnavailable: 25%
19+
type: RollingUpdate
20+
template:
21+
metadata:
22+
labels:
23+
app: currency-conversion
24+
spec:
25+
containers:
26+
- image: in28min/mmv2-currency-conversion-service:0.0.12-SNAPSHOT
27+
imagePullPolicy: IfNotPresent
28+
name: mmv2-currency-conversion-service
29+
envFrom:
30+
- configMapRef:
31+
name: currency-conversion
32+
# env:
33+
# - name: CURRENCY_EXCHANGE_URI
34+
# value: http://currency-exchange
35+
36+
restartPolicy: Always
37+
---
38+
apiVersion: v1
39+
kind: Service
40+
metadata:
41+
labels:
42+
app: currency-conversion
43+
name: currency-conversion
44+
namespace: default
45+
spec:
46+
ports:
47+
- port: 8100
48+
protocol: TCP
49+
targetPort: 8100
50+
selector:
51+
app: currency-conversion
52+
sessionAffinity: None
53+
type: LoadBalancer
54+
---
55+
apiVersion: v1
56+
data:
57+
CURRENCY_EXCHANGE_URI: http://currency-exchange
58+
kind: ConfigMap
59+
metadata:
60+
name: currency-conversion
61+
namespace: default

0 commit comments

Comments
 (0)