Collectd operator utilties
[demo.git] / vnfs / DAaaS / deploy / 00-init / rook-ceph / templates / tool-box.yml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: rook-ceph-tools
5   namespace: rook-ceph
6   labels:
7     app: rook-ceph-tools
8   annotations:
9     "helm.sh/hook": "post-install"
10     "helm.sh/hook-weight": "10"
11 spec:
12   replicas: 1
13   selector:
14     matchLabels:
15       app: rook-ceph-tools
16   template:
17     metadata:
18       labels:
19         app: rook-ceph-tools
20     spec:
21       dnsPolicy: ClusterFirstWithHostNet
22       containers:
23       - name: rook-ceph-tools
24         image: rook/ceph:v0.9.1
25         command: ["/tini"]
26         args: ["-g", "--", "/usr/local/bin/toolbox.sh"]
27         imagePullPolicy: IfNotPresent
28         env:
29           - name: ROOK_ADMIN_SECRET
30             valueFrom:
31               secretKeyRef:
32                 name: rook-ceph-mon
33                 key: admin-secret
34         securityContext:
35           privileged: true
36         volumeMounts:
37           - mountPath: /dev
38             name: dev
39           - mountPath: /sys/bus
40             name: sysbus
41           - mountPath: /lib/modules
42             name: libmodules
43           - name: mon-endpoint-volume
44             mountPath: /etc/rook
45       # if hostNetwork: false, the "rbd map" command hangs, see https://github.com/rook/rook/issues/2021
46       hostNetwork: true
47       volumes:
48         - name: dev
49           hostPath:
50             path: /dev
51         - name: sysbus
52           hostPath:
53             path: /sys/bus
54         - name: libmodules
55           hostPath:
56             path: /lib/modules
57         - name: mon-endpoint-volume
58           configMap:
59             name: rook-ceph-mon-endpoints
60             items:
61             - key: data
62               path: mon-endpoints