-
Notifications
You must be signed in to change notification settings - Fork 28
/
deployment.yaml
93 lines (93 loc) · 2.39 KB
/
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
apiVersion: apps/v1
kind: Deployment
metadata:
name: wow-example
labels:
app: wow-example
spec:
replicas: 4
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
selector:
matchLabels:
app: wow-example
template:
metadata:
labels:
app: wow-example
# annotations:
# instrumentation.opentelemetry.io/inject-java: "true"
spec:
nodeSelector:
test: service
tolerations:
- key: "test"
operator: "Equal"
value: service
effect: "NoSchedule"
containers:
- name: wow-example
image: registry.cn-shanghai.aliyuncs.com/ahoo/wow-example-server:3.5.3
env:
- name: LANG
value: C.utf8
- name: TZ
value: Asia/Shanghai
- name: JAVA_OPTS
value: -Xms10240M -Xmx10240M
ports:
- name: http
protocol: TCP
containerPort: 8080
startupProbe:
failureThreshold: 15
httpGet:
path: /actuator/health
port: http
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
failureThreshold: 6
httpGet:
path: /actuator/health
port: http
scheme: HTTP
periodSeconds: 10
successThreshold: 1
initialDelaySeconds: 30
timeoutSeconds: 1
livenessProbe:
failureThreshold: 6
httpGet:
path: /actuator/health
port: http
scheme: HTTP
periodSeconds: 10
successThreshold: 1
initialDelaySeconds: 30
timeoutSeconds: 1
resources:
limits:
cpu: "15"
memory: 14Gi
requests:
cpu: '15'
memory: 10Gi
volumeMounts:
- mountPath: /etc/localtime
name: volume-localtime
- mountPath: /opt/example-server/config/
name: wow-example-config
volumes:
- hostPath:
path: /etc/localtime
type: ""
name: volume-localtime
- name: wow-example-config
configMap:
name: wow-example-config