-
Notifications
You must be signed in to change notification settings - Fork 0
/
06-hermes-demo-deployment-2.0.0.yaml
70 lines (70 loc) · 1.9 KB
/
06-hermes-demo-deployment-2.0.0.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
62
63
64
65
66
67
68
69
70
apiVersion: apps/v1
kind: Deployment
metadata:
name: hermes
labels:
# Etiqueta que identifica el despliegue
app: hermes
spec:
# Tiempo para determinar que un despliegue ha fallado
progressDeadlineSeconds: 600
# Tiempo mínimo en que el contenedor estará listo (sin que falle nada)
minReadySeconds: 5
replicas: 3
# Número máximo de versiones que se guardaran para hacer rollback
revisionHistoryLimit: 10
selector:
matchLabels:
# Etiquetas para identificar el replicaset
app: hermes
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
template:
metadata:
labels:
# Etiquetas para identificar los pods en los objetos tipo servicios
app: hermes
spec:
containers:
- name: hermes-demo
image: alcar21/hermes-demo:2.0.0
imagePullPolicy: Always
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /usr/local/tomcat/webapps/hermes-demo/WEB-INF/classes/global.properties
subPath: global.properties
name: global-properties
#env:
#- name: MYSQL_USER
# value: "password"
#- name: MYSQL_PASSWORD
# value: "password"
#resources:
# requests:
# memory: "64Mi"
# cpu: "200m"
# limits:
# memory: "128Mi"
# cpu: "500m"
readinessProbe:
httpGet:
path: /hermes-demo/demo/Login.action
port: 8080
initialDelaySeconds: 10
periodSeconds: 30
#livenessProbe:
# tcpSocket:
# port: 8080
# initialDelaySeconds: 30
# periodSeconds: 60
volumes:
- name: global-properties
configMap:
name: hermes-config
items:
- key: global.properties
path: global.properties