forked from rodrigorodrigues/microservices-design-patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment-kotlin-service.yml
executable file
·67 lines (67 loc) · 1.67 KB
/
deployment-kotlin-service.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
apiVersion: v1
kind: Service
metadata:
name: kotlin-service
annotations:
cloud.google.com/app-protocols: '{"https-port":"HTTPS","http-port":"HTTP"}'
labels:
app: kotlin-service
spec:
ports:
- name: https-port
port: 8443
- name: http-port
port: 9092
selector:
app: kotlin-service
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kotlin-service
labels:
app: kotlin-service
spec:
selector:
matchLabels:
app: kotlin-service
replicas: 1
template:
metadata:
labels:
app: kotlin-service
spec:
containers:
- name: kotlin-service
image: fielcapao/microservices-design-patterns-kotlin-service:latest
resources:
requests:
memory: "256Mi"
limits:
memory: "512Mi"
env:
- name: JAVA_OPTS
value: -Xms256m -Xmx512m
- name: SERVER_PORT
value: "9092"
- name: SPRING_PROFILES_ACTIVE
value: dev
- name: SPRING_DATA_MONGODB_URI
value: mongodb://mongo:27017
- name: SPRING_DATA_MONGODB_DATABASE
value: docker
- name: SPRING_CLOUD_CONSUL_ENABLED
value: "false"
- name: OPENTRACING_JAEGER_ENABLED
value: "false"
- name: SPRING_CLOUD_KUBERNETES_CONFIG_NAMESPACE
value: "default"
ports:
- containerPort: 9092
livenessProbe:
httpGet:
scheme: HTTP
path: /actuator/health
port: 9092
initialDelaySeconds: 1000
periodSeconds: 5