File tree Expand file tree Collapse file tree 10 files changed +47
-7
lines changed
customers/customers-api/src/main/resources
orders/orders-api/src/main/resources Expand file tree Collapse file tree 10 files changed +47
-7
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ Both microservices are implemented following cloud-native concepts and functiona
12
12
This example was used in the blog [ Running KumuluzEE microservices on Kubernetes] ( https://blog.kumuluz.com/kumuluzee/kubernetes/2017/12/03/kumuluzee-microservices-on-kubernetes_part1 ) .
13
13
14
14
[ Blog Part 1 artifacts] ( https://github.com/zvonegit/kumuluzee-kubernetes/releases/tag/v1.0.0 )
15
+ [ Blog Part 2 artifacts] ( https://github.com/zvonegit/kumuluzee-kubernetes/releases/tag/v2.0.0 )
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ kumuluzee:
59
59
health :
60
60
checks :
61
61
data-source-health-check :
62
- connection-url : jdbc:postgresql://192.168.99.100 :5432/customer
62
+ connection-url : jdbc:postgresql://postgres-customers :5432/customer
63
63
username : dbuser
64
64
password : postgres
65
65
disk-space-health-check :
Original file line number Diff line number Diff line change 7
7
KUMULUZEE_DISCOVERY_CLUSTER : private-coreos
8
8
KUMULUZEE_DISCOVERY_ETCD_HOSTS : http://etcd:2379
9
9
KUMULUZEE_CONFIG_ETCD_HOSTS : http://etcd:2379
10
- KUMULUZEE_DATASOURCES0_CONNECTIONURL : jdbc:postgresql://postgres-customers:5432 /customer
10
+ KUMULUZEE_DATASOURCES0_CONNECTIONURL : jdbc:postgresql://postgres-customers:5433 /customer
11
11
KUMULUZEE_SERVER_BASEURL : http://192.168.29.246:32600
12
- KUMULUZEE_HEALTH_CHECKS_DATASOURCEHEALTHCHECK_CONNECTIONURL : jdbc:postgresql://postgres-customers:5432 /customer
12
+ KUMULUZEE_HEALTH_CHECKS_DATASOURCEHEALTHCHECK_CONNECTIONURL : jdbc:postgresql://postgres-customers:5433 /customer
Original file line number Diff line number Diff line change 16
16
envFrom :
17
17
- configMapRef :
18
18
name : kubernetes-customer-config
19
+ livenessProbe :
20
+ httpGet :
21
+ path : /health
22
+ port : 8080
23
+ initialDelaySeconds : 40
24
+ periodSeconds : 5
19
25
ports :
20
26
- containerPort : 8080
21
27
name : server
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : ConfigMap
3
+ metadata :
4
+ name : kubernetes-customer-config
5
+ namespace : kumuluzee-blog
6
+ data :
7
+ KUMULUZEE_DISCOVERY_CLUSTER : private-coreos
8
+ KUMULUZEE_DISCOVERY_ETCD_HOSTS : http://etcd:2379
9
+ KUMULUZEE_CONFIG_ETCD_HOSTS : http://etcd:2379
10
+ KUMULUZEE_DATASOURCES0_CONNECTIONURL : jdbc:postgresql://postgres-customers:5433/customer
11
+ KUMULUZEE_SERVER_BASEURL : http://192.168.29.246:32600
12
+ KUMULUZEE_HEALTH_CHECKS_DATASOURCEHEALTHCHECK_CONNECTIONURL : jdbc:postgresql://postgres-customers:5433/customer
Original file line number Diff line number Diff line change 16
16
envFrom :
17
17
- configMapRef :
18
18
name : kubernetes-order-config
19
+ livenessProbe :
20
+ httpGet :
21
+ path : /health
22
+ port : 8081
23
+ initialDelaySeconds : 30
24
+ periodSeconds : 5
25
+ resources :
26
+ limits :
27
+ cpu : 1
19
28
ports :
20
29
- containerPort : 8081
21
30
name : server
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : ConfigMap
3
+ metadata :
4
+ name : kubernetes-order-config
5
+ namespace : kumuluzee-blog
6
+ data :
7
+ KUMULUZEE_DISCOVERY_CLUSTER : private-coreos
8
+ KUMULUZEE_DISCOVERY_ETCD_HOSTS : http://etcd:2379
9
+ KUMULUZEE_CONFIG_ETCD_HOSTS : http://etcd:2379
10
+ KUMULUZEE_DATASOURCES0_CONNECTIONURL : jdbc:postgresql://postgres-orders:5432/order
11
+ KUMULUZEE_SERVER_BASEURL : http://192.168.29.246:32583
12
+ KUMULUZEE_HEALTH_CHECKS_DATASOURCEHEALTHCHECK_CONNECTIONURL : jdbc:postgresql://postgres-orders:5432/order
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ metadata:
34
34
spec :
35
35
type : ClusterIP
36
36
ports :
37
- - port : 5432
37
+ - port : 5433
38
38
protocol : TCP
39
39
targetPort : 5432
40
40
selector :
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ kumuluzee:
9
9
port : 8081
10
10
datasources :
11
11
- jndi-name : jdbc/OrdersDS
12
- connection-url : jdbc:postgresql://192.168.99.100:5433 /order
12
+ connection-url : jdbc:postgresql://postgres-orders:5432 /order
13
13
username : dbuser
14
14
password : postgres
15
15
max-pool-size : 20
@@ -24,7 +24,7 @@ kumuluzee:
24
24
health :
25
25
checks :
26
26
data-source-health-check :
27
- connection-url : jdbc:postgresql://192.168.99.100:5433 /order
27
+ connection-url : jdbc:postgresql://postgres-orders:5432 /order
28
28
username : dbuser
29
29
password : postgres
30
30
disk-space-health-check :
Original file line number Diff line number Diff line change 19
19
<maven .compiler.target>1.8</maven .compiler.target>
20
20
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
21
21
22
- <kumuluzee .version>2.4.1 </kumuluzee .version>
22
+ <kumuluzee .version>2.5.0-SNAPSHOT </kumuluzee .version>
23
23
<kumuluzee-rest .version>1.1.0</kumuluzee-rest .version>
24
24
<kumuluzee-logs .version>1.3.0</kumuluzee-logs .version>
25
25
<kumuluzee-cors .version>1.0.2</kumuluzee-cors .version>
You can’t perform that action at this time.
0 commit comments