-
Notifications
You must be signed in to change notification settings - Fork 4
/
deployment.yaml
75 lines (75 loc) · 2.46 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
#*******************************************************************************
# Copyright (c) 2023 Eclipse Foundation and others.
# This program and the accompanying materials are made available
# under the terms of the Eclipse Public License 2.0
# which is available at http://www.eclipse.org/legal/epl-v20.html,
# or the MIT License which is available at https://opensource.org/licenses/MIT.
# SPDX-License-Identifier: EPL-2.0 OR MIT
#*******************************************************************************
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
infocenter.version: {{ .Values.infocenterVersion | quote }}
namespace: {{ .Values.namespace | quote }}
name: "{{ .Chart.Name }}-{{ .Values.infocenterVersion }}"
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
infocenter.version: {{ .Values.infocenterVersion | quote }}
#serviceName: "{{ .Chart.Name }}-{{ .Values.infocenterVersion}}"
template:
metadata:
name: "{{ .Chart.Name }}-{{ .Values.infocenterVersion }}"
labels:
infocenter.version: {{ .Values.infocenterVersion | quote }}
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: speed
operator: NotIn
values:
- fast
terminationGracePeriodSeconds: 180
containers:
- name: {{ .Chart.Name }}-{{ .Values.infocenterVersion }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- /infocenter/startDockerInfoCenter.sh
livenessProbe:
httpGet:
path: /help/index.jsp
port: 8086
scheme: HTTP
initialDelaySeconds: 480
periodSeconds: 60
failureThreshold: 2
timeoutSeconds: 90
readinessProbe:
httpGet:
path: /help/index.jsp
port: 8086
periodSeconds: 60
timeoutSeconds: 90
initialDelaySeconds: 60
ports:
- containerPort: 8086
protocol: TCP
resources:
requests:
cpu: 500m
limits:
cpu: 2
memory: 1.5Gi
volumeMounts:
- name: workspace
mountPath: "/infocenter/workspace"
volumes:
- name: workspace
emptyDir: {}