-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s-eureka.yaml
47 lines (45 loc) · 890 Bytes
/
k8s-eureka.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
apiVersion: apps/v1
kind: Deployment
metadata:
name: eureka-deployment
namespace: default
labels:
app: eureka
spec:
replicas: 1
selector:
matchLabels:
app: eureka
template:
metadata:
labels:
app: eureka
spec:
containers:
- name: eureka-container
image: scoma/spring-ms-tp1_eureka:v2
env:
- name: server.port
value: '8761'
- name: eureka.client.fetch-registry
value: 'false'
- name: eureka.client.register-with-eureka
value: 'false'
ports:
- containerPort: 8761
---
apiVersion: v1
kind: Service
metadata:
name: eureka-service
namespace: default
labels:
run: eureka-service
spec:
ports:
- port: 8761
targetPort: 8761
protocol: TCP
type: LoadBalancer
selector:
app: eureka