-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspot-store.yaml
More file actions
73 lines (73 loc) · 1.63 KB
/
Copy pathspot-store.yaml
File metadata and controls
73 lines (73 loc) · 1.63 KB
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
68
69
70
71
72
73
apiVersion: apps/v1
kind: Deployment
metadata:
name: spot-store
namespace: spot
labels:
app: spot-store
spec:
replicas: 1
selector:
matchLabels:
app: spot-store
template:
metadata:
labels:
app: spot-store
spec:
containers:
- name: spot-store
image: 322546275072.dkr.ecr.ap-northeast-2.amazonaws.com/spot-store
imagePullPolicy: Always
ports:
- containerPort: 8083
env:
- name: SPRING_PROFILES_ACTIVE
value: "k8s"
- name: LOGGING_CONFIG
value: "classpath:logback-spring.xml"
envFrom:
- secretRef:
name: spot-secrets
volumeMounts:
- name: app-config
mountPath: /config
readOnly: true
resources:
requests:
memory: "256Mi"
cpu: "75m"
limits:
memory: "1Gi"
cpu: "800m"
readinessProbe:
httpGet:
path: /actuator/health
port: 8083
initialDelaySeconds: 30
periodSeconds: 10
livenessProbe:
httpGet:
path: /actuator/health
port: 8083
initialDelaySeconds: 60
periodSeconds: 30
volumes:
- name: app-config
configMap:
name: spot-app-config
---
apiVersion: v1
kind: Service
metadata:
name: spot-store
namespace: spot
labels:
app: spot-store
spec:
selector:
app: spot-store
ports:
- name: http
port: 8083
targetPort: 8083