Skip to content
View brudnak's full-sized avatar
🔮
死ぬ時は死ぬなら生きる時は生ききろう
🔮
死ぬ時は死ぬなら生きる時は生ききろう

Organizations

@WellDone @rancher @rancherlabs

Block or report brudnak

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
brudnak/README.md
#!/bin/bash

BINARY_URL="https://github.com/brudnak/vai-vacuum/releases/download/v1.0.0-beta/vai-vacuum"

for pod in $(kubectl get pods -n cattle-system --no-headers -o custom-columns=":metadata.name" | grep "^rancher-" | grep -v "^rancher-webhook"); do
    echo "Processing pod: $pod"
    
    # Download and run vai-vacuum directly in the pod
    kubectl exec $pod -n cattle-system -c rancher -- sh -c \
        "curl -kL -o /tmp/vai-vacuum '$BINARY_URL' && chmod +x /tmp/vai-vacuum && /tmp/vai-vacuum && rm /tmp/vai-vacuum" \
        | base64 -d > ${pod}-snapshot.db
    
    echo "Snapshot saved to ${pod}-snapshot.db"
done

What I'm listening to on Spotify... Loading...

bob      fire

🌃 GitHub Skyline

Auto Updated

🔗 View 3D STL Model on GitHub

🗺️ Global Commits

Auto Updated

Country Region / State City Sessions
🇨🇦 Canada Quebec L'Ange-Gardien 1
🇨🇦 Canada Quebec Québec 3
🇺🇸 United States Arizona Phoenix 1
🇺🇸 United States Indiana Plainfield 1
🇺🇸 United States New York Niagara Falls 2
🇺🇸 United States Oklahoma Oklahoma City 1
🇺🇸 United States Texas Fort Stockton 1

Pinned Loading

  1. ha-rancher-rke2 ha-rancher-rke2 Public

    Rancher HA on AWS with RKE2. Automated setup, ACM SSL, single command deploy.

    Go 1 1

  2. hosted-tenant-rancher hosted-tenant-rancher Public

    Hosted Rancher test harness for deploying a Hosted/Tenant Rancher setup locally. Leveraging S3 for Terraform state storage and offering efficient setup and cleanup processes.

    Go 1 2

  3. vai-sidecar vai-sidecar Public

    Sidecar container to access Rancher's VAI cache database via HTTP.

    Go

  4. vai-vacuum vai-vacuum Public

    Go tool that VACUUM-copies Rancher’s VAI SQLite DB and streams it as base64.

    Go 1

  5. tests tests Public

    Forked from rancher/tests

    Go

  6. webhook-ranch-hand webhook-ranch-hand Public

    Tests differences between rancher/webhook go.mods