blob: 0b1424313447a8241905bd140302500d60cd4365 [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
Zack Williams2749ae52018-09-28 09:43:43 -070025 image: {{ .Values.global.registry }}{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }}
26 imagePullPolicy: {{ .Values.image.pullPolicy }}
Zack Williams618ab862018-08-03 10:12:54 -070027 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