We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49a6e3b commit 71e6ac4Copy full SHA for 71e6ac4
common/src/main/bash/k8s/eureka.yml
@@ -2,3 +2,32 @@ apiVersion: extensions/v1beta1
2
kind: Deployment
3
metadata:
4
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
30
31
32
33
0 commit comments