Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/utilitywarehouse/gcp-disk-snapshotter
https://github.com/utilitywarehouse/gcp-disk-snapshotter
gcp infrastructure system
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/utilitywarehouse/gcp-disk-snapshotter
- Owner: utilitywarehouse
- License: mit
- Created: 2018-05-31T16:06:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T16:01:04.000Z (3 months ago)
- Last Synced: 2024-10-18T06:30:44.837Z (3 months ago)
- Topics: gcp, infrastructure, system
- Language: Go
- Size: 136 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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"
}
}
]
}
```