Skip to content

Instantly share code, notes, and snippets.

@rajatsing
Last active November 15, 2019 10:16
Show Gist options
  • Save rajatsing/235cfe4e7e7b88d1a011c544bb71c425 to your computer and use it in GitHub Desktop.
Save rajatsing/235cfe4e7e7b88d1a011c544bb71c425 to your computer and use it in GitHub Desktop.
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:master
command: ["bash","-c","sudo chmod -R +x /usr/local/bin/toolbox.sh","/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: false
volumeMounts:
- name: mon-endpoint-volume
mountPath: /etc/rook
volumes:
- 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