https://github.com/tilt-dev/localregistry-go
Go implementation of the local registry discovery protocol
https://github.com/tilt-dev/localregistry-go
Last synced: about 1 year ago
JSON representation
Go implementation of the local registry discovery protocol
- Host: GitHub
- URL: https://github.com/tilt-dev/localregistry-go
- Owner: tilt-dev
- License: apache-2.0
- Created: 2020-06-11T19:45:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T02:54:45.000Z (over 3 years ago)
- Last Synced: 2025-04-18T07:52:04.670Z (about 1 year ago)
- Language: Go
- Size: 58.6 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Local Registry Discovery
A Go implementation of the local registry discovery protocol.
[](https://circleci.com/gh/tilt-dev/localregistry-go)
[](https://pkg.go.dev/github.com/tilt-dev/localregistry-go)
## Background
Local clusters like Kind, K3d, Minikube, and Microk8s let users iterate on
Kubernetes quickly in a hermetic environment. To avoid network round-trip
latency, these clusters can be configured to pull from a local, insecure
registry.
[KEP 1755](https://github.com/kubernetes/enhancements/issues/1755) proposes a
standard for how these clusters should expose their support for this feature, so
that tooling can interoperate with them without redundant configuration.
## Try it
Install the `kubectl` plugin:
```
go install github.com/tilt-dev/localregistry-go/cmd/kubectl-local_registry
```
Run:
```
kubectl local-registry get
```
If your cluster explicitly advertises a local registry, this tool will print
the fields of `LocalRegistryHostingV1`.
## Use it in your tool
This repo contains library code that reads the local registry configuration
from a Kubernetes cluster, given a instance of the Go Kubernetes client.
## License
Copyright 2020 Windmill Engineering
Licensed under [the Apache License, Version 2.0](LICENSE)