garage/src/util
Max Audron 9d44127245
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
add support for kubernetes service discovery
This commit adds support to discover garage instances running in
kubernetes.

Once enabled by setting `kubernetes_namespace` and
`kubernetes_service_name` garage will create a Custom Resources
`garagenodes.deuxfleurs.fr` with nodes public key as the resource name.
and IP and Port information as spec in the namespace configured by
`kubernetes_namespace`.

For discovering nodes the resources are filtered with the optionally set
`kubernetes_service_name` which sets a label
`garage.deuxfleurs.fr/service` on the resources.

This allows to separate multiple garage deployments in a single
namespace.

the `kubernetes_skip_crd` variable allows to disable the creation of the
CRD by garage itself. The user must deploy this manually.
2022-03-12 13:05:52 +01:00
..
crdt Implement {Put,Get,Delete}BucketCors and CORS in general 2022-01-24 11:58:00 +01:00
background.rs run cargo fmt on util and make missing doc warning 2021-04-27 16:37:10 +02:00
Cargo.toml add support for kubernetes service discovery 2022-03-12 13:05:52 +01:00
config.rs add support for kubernetes service discovery 2022-03-12 13:05:52 +01:00
data.rs New buckets for 0.6.0: small changes 2022-01-04 12:52:47 +01:00
error.rs add support for kubernetes service discovery 2022-03-12 13:05:52 +01:00
lib.rs Improve how node roles are assigned in Garage 2021-11-16 16:05:53 +01:00
persister.rs fix clippy warnings on util and rpc 2021-05-03 22:11:41 +02:00
time.rs New buckets for 0.6.0: small fixes, including: 2022-01-04 12:46:41 +01:00
token_bucket.rs Refactoring on repair commands 2021-10-27 11:14:55 +02:00
tranquilizer.rs Add tranquilizer mechanism to improve on token bucket mechanism 2021-11-04 13:26:59 +01:00