Signed-off-by: andrew webber (personal) <andrewvwebber@googlemail.com>
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: ceph-before-reboot-check
|
|
namespace: rook-ceph
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: ceph-before-reboot-check
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ceph-before-reboot-check
|
|
spec:
|
|
serviceAccountName: rook-node-annotator
|
|
nodeSelector:
|
|
container-linux-update.v1.coreos.com/before-reboot: "true"
|
|
tolerations:
|
|
- key: node-role.kubernetes.io/master
|
|
operator: Exists
|
|
effect: NoSchedule
|
|
containers:
|
|
- name: ceph-before-reboot-check
|
|
image: rook/ceph:master
|
|
imagePullPolicy: IfNotPresent
|
|
command: ["/scripts/status-check.sh"]
|
|
env:
|
|
- name: ROOK_ADMIN_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: rook-ceph-mon
|
|
key: admin-secret
|
|
- name: NODE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.nodeName
|
|
volumeMounts:
|
|
- mountPath: /lib/modules
|
|
name: libmodules
|
|
- name: mon-endpoint-volume
|
|
mountPath: /etc/rook
|
|
- name: status-script
|
|
mountPath: /scripts
|
|
hostNetwork: false
|
|
volumes:
|
|
- name: libmodules
|
|
hostPath:
|
|
path: /lib/modules
|
|
- name: mon-endpoint-volume
|
|
configMap:
|
|
name: rook-ceph-mon-endpoints
|
|
items:
|
|
- key: data
|
|
path: mon-endpoints
|
|
- name: status-script
|
|
configMap:
|
|
name: ceph-before-reboot-script
|
|
defaultMode: 0740
|