fix: ceph toolbox backup mounts

This commit is contained in:
Toboshii Nakama
2022-06-29 11:06:05 -05:00
parent 843c718115
commit 86ba9574d4
3 changed files with 25 additions and 29 deletions

View File

@@ -1,28 +0,0 @@
fail_fast: false
repos:
- repo: https://github.com/adrienverge/yamllint
rev: v1.26.3
hooks:
- args:
- -c
- .github/yamllint.config.yaml
id: yamllint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
hooks:
- id: remove-crlf
- id: remove-tabs
- repo: https://github.com/sirosen/fix-smartquotes
rev: 0.2.0
hooks:
- id: fix-smartquotes
- repo: https://github.com/k8s-at-home/sops-pre-commit
rev: v2.0.3
hooks:
- id: forbid-secrets

View File

@@ -45,6 +45,10 @@ spec:
name: libmodules
- name: mon-endpoint-volume
mountPath: /etc/rook
- name: backups
mountPath: /mnt/backups
- name: direct-mount-backup-script
mountPath: /scripts
# if hostNetwork: false, the "rbd map" command hangs, see https://github.com/rook/rook/issues/2021
hostNetwork: true
volumes:
@@ -63,3 +67,13 @@ spec:
items:
- key: data
path: mon-endpoints
- name: backups
nfs:
server: 10.75.30.15
path: /tank/data/ceph/backups
- name: direct-mount-backup-script
projected:
defaultMode: 0775
sources:
- configMap:
name: direct-mount-backup-script

View File

@@ -1,4 +1,14 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: rook-ceph
resources:
- deployment.yaml
- deployment.yaml
configMapGenerator:
- name: direct-mount-backup-script
files:
- backup.sh
generatorOptions:
disableNameSuffixHash: true
annotations:
kustomize.toolkit.fluxcd.io/substitute: disabled