gcp-disk-snapshotter

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 10 Imported by: 0

README

gcp-disk-snapshotter

Service to periodically take snapshots of gcp disks, based on particular labels. Snapshots (only the ones created by the service) are deleted when they become older than the specified retention time.

Usage

Usage of /gcp-disk-snapshotter:
 -conf_file string
        (Required) Path of the configuration file tha contains the targets based on label or description
  -log_level string
        Log Level, defaults to INFO (default "info")
  -project string
        (Required) GCP Project to use
  -snap_prefix string
        Prefix for created snapshots
  -watch_interval int
        Interval between watch cycles in seconds. Defaults to 60s (default 60)
  -zones string
        (Required) Comma separated list of zones where projects disks may live

Configuration File

Example Configuration File:

{
  "Descriptions": [
    {
      "retentionPeriodHours" : 2,
      "intervalSeconds" : 100,
      "description": {
        "key": "kubernetes.io/created-for/pvc/name",
        "value": "some-app-pd-pvc"
      }
    }
  ],
  "Labels": [
    {
      "retentionPeriodHours" : 2,
      "intervalSeconds" : 100,
      "label": {
        "key": "name",
        "value": "some-app-name"
      }
    }
  ]
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package metrics is a generated GoMock package.
Package metrics is a generated GoMock package.
Package snapshot is a generated GoMock package.
Package snapshot is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL