-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoes-autopilot-deployment.yaml
64 lines (64 loc) · 1.92 KB
/
oes-autopilot-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
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: oes-autopilot
labels:
app: oes
component: autopilot
{{ include "oes.standard-labels" . | indent 4 }}
spec:
replicas: 1
selector:
matchLabels:
app: oes
component: autopilot
template:
metadata:
labels:
app: oes
component: autopilot
{{ include "oes.standard-labels" . | indent 8 }}
annotations:
configmap/checksum: {{ (.Files.Glob "config/autopilot/autopilot.properties").AsConfig | sha256sum }}
spec:
volumes:
- name: autopilot-config-volume
configMap:
name: oes-autopilot-config
imagePullSecrets:
- name: {{ .Values.imagePullSecret}}
containers:
- image: {{ template "autopilot.image" . }}
imagePullPolicy: {{ .Values.autopilot.image.pullPolicy }}
name: oes-autopilot
resources:
requests:
memory: "{{ .Values.autopilot.requests.memory }}"
cpu: "{{ .Values.autopilot.requests.cpu }}"
limits:
memory: "{{ .Values.autopilot.limits.memory }}"
cpu: "{{ .Values.autopilot.limits.cpu }}"
ports:
- containerPort: 8090
name: backend
protocol: TCP
- containerPort: 9090
name: metricfetcher
protocol: TCP
volumeMounts:
- name: autopilot-config-volume
mountPath: /opsmx/conf/autopilot.properties
subPath: autopilot.properties
readinessProbe:
tcpSocket:
port: 8090
initialDelaySeconds: 60
periodSeconds: 10
livenessProbe:
httpGet:
path: /mgmt/health
port: 8090
initialDelaySeconds: 120
periodSeconds: 60
{{- end -}}