Files
my-rook-config/deploy/examples/toolbox.yaml
T

60 lines
1.6 KiB
YAML
Raw Normal View History

2018-08-21 13:22:26 +02:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: rook-ceph-tools
namespace: rook-ceph # namespace:cluster
2018-08-21 13:22:26 +02:00
labels:
app: rook-ceph-tools
spec:
2018-08-21 13:22:26 +02:00
replicas: 1
selector:
matchLabels:
app: rook-ceph-tools
2018-08-21 13:22:26 +02:00
template:
metadata:
labels:
app: rook-ceph-tools
2018-08-21 13:22:26 +02:00
spec:
dnsPolicy: ClusterFirstWithHostNet
containers:
2021-03-08 12:18:21 +05:30
- name: rook-ceph-tools
image: rook/ceph:master
2021-09-23 15:28:46 +02:00
command: ["/bin/bash"]
args: ["-m", "-c", "/usr/local/bin/toolbox.sh"]
2021-03-08 12:18:21 +05:30
imagePullPolicy: IfNotPresent
2021-09-23 15:28:46 +02:00
tty: true
2021-11-05 16:16:27 +01:00
securityContext:
runAsNonRoot: true
runAsUser: 2016
runAsGroup: 2016
2021-03-08 12:18:21 +05:30
env:
- name: ROOK_CEPH_USERNAME
valueFrom:
secretKeyRef:
name: rook-ceph-mon
key: ceph-username
- name: ROOK_CEPH_SECRET
valueFrom:
secretKeyRef:
name: rook-ceph-mon
key: ceph-secret
volumeMounts:
- mountPath: /etc/ceph
name: ceph-config
- name: mon-endpoint-volume
mountPath: /etc/rook
2018-08-21 13:22:26 +02:00
volumes:
- name: mon-endpoint-volume
configMap:
name: rook-ceph-mon-endpoints
items:
2021-03-08 12:18:21 +05:30
- key: data
path: mon-endpoints
- name: ceph-config
emptyDir: {}
tolerations:
- key: "node.kubernetes.io/unreachable"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 5