Skip to content

Commit 49a6e3b

Browse files
committed
test
1 parent e5539f4 commit 49a6e3b

File tree

2 files changed

+0
-58
lines changed
  • buildSrc/src/test/resources/project_customizer/common/src/main/bash/k8s
  • common/src/main/bash/k8s

2 files changed

+0
-58
lines changed

buildSrc/src/test/resources/project_customizer/common/src/main/bash/k8s/eureka.yml

-29
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,3 @@ 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

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

-29
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,3 @@ 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)