Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: pvc mounting script and template #708

Open
DerekRoberts opened this issue Oct 24, 2024 · 3 comments
Open

feat: pvc mounting script and template #708

DerekRoberts opened this issue Oct 24, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@DerekRoberts
Copy link
Member

DerekRoberts commented Oct 24, 2024

Idea and template courtesy of @craigyu.

apiVersion: v1
kind: Pod
metadata:
    name: pvc-inspect-pod
    namespace: a4b31c-test
spec:
    containers:
        - name: pvc-inspector
          image: busybox
          command: ["sleep", "3600"]
          volumeMounts:
              - mountPath: "/mnt/pvc"
                name: db-backup-pvc
    volumes:
        - name: db-backup-pvc
          persistentVolumeClaim:
              claimName: fom-test-database-backup
    restartPolicy: Never
@DerekRoberts DerekRoberts added the enhancement New feature or request label Oct 24, 2024
@DerekRoberts DerekRoberts self-assigned this Oct 24, 2024
@DerekRoberts DerekRoberts moved this from New to Active in DevOps (NR) Oct 24, 2024
@paulushcgcj
Copy link

Looks nice, but what's that for?

As a pod, it will always be there consuming resources, which is not great for dev env, for example, but ok for other envs.

This pod will be checking the backup folder on this pvc? What else do you think will be good to add as commands for this specific pod?

@DerekRoberts
Copy link
Member Author

@paulushcgcj It's tied to a script and won't be long lived. Just for checking PVC backups right now.

@DerekRoberts
Copy link
Member Author

@paulushcgcj It does give me more ideas, like scripting backup verification! Unfortunately that's out of scope for the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Sprint
Development

No branches or pull requests

2 participants