Skip to content

Commit 71e6ac4

Browse files
committed
test
1 parent 49a6e3b commit 71e6ac4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

common/src/main/bash/k8s/eureka.yml

+29
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,32 @@ apiVersion: extensions/v1beta1
22
kind: Deployment
33
metadata:
44
name: {{appName}}
5+
spec:
6+
replicas: 1 # tells deployment to run 2 pods matching the template
7+
template: # create pods using pod definition in this template
8+
metadata:
9+
labels:
10+
name: {{appName}}
11+
spec:
12+
containers:
13+
- name: {{appName}}
14+
image: {{eurekaImg}}
15+
ports:
16+
- containerPort: 8761
17+
env:
18+
- name: PORT
19+
value: "8761"
20+
- name: eureka_client_serviceUrl_defaultZone
21+
value: "http://{{appUrl}}:8761/eureka/"
22+
livenessProbe:
23+
httpGet:
24+
path: /health
25+
port: 8761
26+
initialDelaySeconds: 30
27+
periodSeconds: 3
28+
readinessProbe:
29+
httpGet:
30+
path: /health
31+
port: 8761
32+
initialDelaySeconds: 30
33+
periodSeconds: 3

0 commit comments

Comments
 (0)