Created
November 5, 2019 08:27
-
-
Save xenolinux/c7c745647cbc11a8ac7bf90e5ce5ed09 to your computer and use it in GitHub Desktop.
Rook-Ceph-toolbox.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: rook-ceph-tools | |
namespace: rook-ceph | |
labels: | |
app: rook-ceph-tools | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: rook-ceph-tools | |
template: | |
metadata: | |
labels: | |
app: rook-ceph-tools | |
spec: | |
dnsPolicy: ClusterFirstWithHostNet | |
containers: | |
- name: rook-ceph-tools | |
image: rook/ceph:v1.0.2 | |
command: ["/tini"] | |
args: ["-g", "--", "/usr/local/bin/toolbox.sh"] | |
imagePullPolicy: IfNotPresent | |
env: | |
- name: ROOK_ADMIN_SECRET | |
valueFrom: | |
secretKeyRef: | |
name: rook-ceph-mon | |
key: admin-secret | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- mountPath: /dev | |
name: dev | |
- mountPath: /sys/bus | |
name: sysbus | |
- mountPath: /lib/modules | |
name: libmodules | |
- name: mon-endpoint-volume | |
mountPath: /etc/rook | |
# if hostNetwork: false, the "rbd map" command hangs, see https://github.com/rook/rook/issues/2021 | |
hostNetwork: true | |
volumes: | |
- name: dev | |
hostPath: | |
path: /dev | |
- name: sysbus | |
hostPath: | |
path: /sys/bus | |
- name: libmodules | |
hostPath: | |
path: /lib/modules | |
- name: mon-endpoint-volume | |
configMap: | |
name: rook-ceph-mon-endpoints | |
items: | |
- key: data | |
path: mon-endpoints |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment