This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathmetadata-ds.yaml
90 lines (89 loc) · 2.45 KB
/
metadata-ds.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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: metadata
namespace: quobyte
spec:
template:
metadata:
annotations:
prometheus.io/scrape: 'true'
prometheus.io/path: '/prometheus'
prometheus.io/port: '7872'
labels:
role: metadata
version: "2"
spec:
containers:
- name: quobyte-metadata
image: quay.io/quobyte/quobyte-server:2
# imagePullPolicy: Always
# resources:
# limits:
# memory: "1212Mi"
# cpu: "200m"
# priviliged is required for full device inspector support
securityContext:
privileged: true
env:
- name: QUOBYTE_SERVICE
value: metadata
- name: QUOBYTE_REGISTRY
value: registry
- name: MAX_MEM
valueFrom:
configMapKeyRef:
name: quobyte-config
key: metadata.max_mem
- name: MIN_MEM
valueFrom:
configMapKeyRef:
name: quobyte-config
key: metadata.min_mem
command:
- /bin/bash
- -xec
- |
sed "s/.*MIN_MEM_METADATA=.*/MIN_MEM_METADATA=${MIN_MEM}/" -i /etc/default/quobyte
sed "s/.*MAX_MEM_METADATA=.*/MAX_MEM_METADATA=${MAX_MEM}/" -i /etc/default/quobyte
exec /bin/bash -x /opt/main.sh
volumeMounts:
- mountPath: /run/udev
name: host-udev
- mountPath: /lib/modules
name: lib-modules
- mountPath: /mnt/quobyte
name: mnt-quobyte
- mountPath: /var/lib/quobyte
name: var-lib-quobyte
mountPropagation: Bidirectional
ports:
- name: rpc-tcp
containerPort: 7872
protocol: TCP
readinessProbe:
timeoutSeconds: 5
httpGet:
port: 7872
path: /
livenessProbe:
initialDelaySeconds: 30
timeoutSeconds: 5
httpGet:
port: 7872
path: /
nodeSelector:
quobyte_metadata: "true"
volumes:
- name: host-udev
hostPath:
path: /run/udev
- name: lib-modules
hostPath:
path: /lib/modules
- name: mnt-quobyte
hostPath:
path: /mnt/quobyte
- name: var-lib-quobyte
hostPath:
path: /var/lib/quobyte