-
Notifications
You must be signed in to change notification settings - Fork 8
/
actors-deployment.yaml
61 lines (61 loc) · 1.44 KB
/
actors-deployment.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: actors
labels:
app: actors
spec:
replicas: 1
template:
metadata:
labels:
app: actors
spec:
containers:
- name: actors
image: trisberg/actors:0.0.1-SNAPSHOT
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
resources:
limits:
cpu: 1.0
memory: 1024Mi
requests:
cpu: 0.5
memory: 640Mi
livenessProbe:
httpGet:
path: /application/status
port: 80
initialDelaySeconds: 90
periodSeconds: 15
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /application/status
port: 80
initialDelaySeconds: 45
periodSeconds: 15
timeoutSeconds: 5
env:
- name: SERVER_PORT
value: '80'
- name: SPRING_PROFILES_ACTIVE
value: kubernetes
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: mysql
key: mysql-root-password
volumeMounts:
- name: application-config
mountPath: "/config"
readOnly: true
volumes:
- name: application-config
configMap:
name: actors
items:
- key: application.yaml
path: application-kubernetes.yaml