blob: be5db7b5868442c1a88b11e03a107dd5973c3007 [file] [log] [blame]
Zack Williams618ab862018-08-03 10:12:54 -07001---
2# Copyright 2018-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16apiVersion: v1
17kind: Pod
18metadata:
19 name: rook-ceph-tools
20 namespace: {{ .Values.rookClusterNamespace }}
21spec:
22 dnsPolicy: ClusterFirstWithHostNet
23 containers:
24 - name: rook-ceph-tools
25 image: {{ .Values.rookCephToolsImage | quote }}
26 imagePullPolicy: {{ .Values.imagePullPolicy }}
27 env:
28 - name: ROOK_ADMIN_SECRET
29 valueFrom:
30 secretKeyRef:
31 name: rook-ceph-mon
32 key: admin-secret
33 securityContext:
34 privileged: true
35 volumeMounts:
36 - mountPath: /dev
37 name: dev
38 - mountPath: /sys/bus
39 name: sysbus
40 - mountPath: /lib/modules
41 name: libmodules
42 - name: mon-endpoint-volume
43 mountPath: /etc/rook
44 hostNetwork: false
45 volumes:
46 - name: dev
47 hostPath:
48 path: /dev
49 - name: sysbus
50 hostPath:
51 path: /sys/bus
52 - name: libmodules
53 hostPath:
54 path: /lib/modules
55 - name: mon-endpoint-volume
56 configMap:
57 name: rook-ceph-mon-endpoints
58 items:
59 - key: data
60 path: mon-endpoints
61