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