GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vultr/vcr-credential-provider

BranchesTags
Open more actions menu

Latest commit

 

History

21 Commits
21 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.idea
.idea
 
 
cmd
cmd
 
 
examples
examples
 
 
pkg/provider
pkg/provider
 
 
.gitignore
.gitignore
 
 
.goreleaser.yml
.goreleaser.yml
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 

Repository files navigation

Image Credential Provider for VCR

VCR Credential Provider (Provider) for Vultr Kubernetes Engine (VKE) is the implementation of Kubelet CredentialProvider (v1) APIs for image pulls from the Vultr Container Registry (VCR).

This provider will allow Kubelet to obtain access tokens for VCR from the Vultr API which will be provided to the node, so it is able to authenticate without the need of hosted secrets on the cluster.

How the Provider Works

The plugin implementation leverages the Kubelet capability introduced in v1.26. Kubelet uses CredentialProvider APIs to fetch authentication credentials against Vultr Container Registry and caches it on the worker node level.

The provider is injected into Kubelet via the extra kubelet-extra-args:

  • --image-credential-provider-config sets the path to the Image Credential Provider for VCR config file.
  • --image-credential-provider-bin-dir sets the path to the directory where the Image Credential Provider for VCR binary is located.

In Managed VKE the flags will be set by the cloud provider(Vultr), however, if you are wanting to use it for self-managed Kubernetes clusters on Vultr you will simply need to add the binary to the worker nodes and specify the path as well as the config file which can be found in the examples directory.

Self-managed Kubernetes

Use Kubernetes 1.26 or newer and install the Linux binary on every worker node. The binary name must match providers[].name in examples/config.yaml. For example:

--image-credential-provider-config=/etc/kubernetes/credential-provider.yaml
--image-credential-provider-bin-dir=/usr/local/libexec/kubernetes

Copy the example configuration to the configured path and replace ABC123 with a Vultr API key that can list registries and create Docker credentials. Keep this file readable only by root (for example, mode 0600). Restart kubelet after updating its flags or provider configuration.

Images should use normal container image references, without https://:

ewr.vultrcr.com/my-registry/my-image:latest

The provider requests read-only credentials with a 12-hour expiry. Kubelet caches them per image for 11 hours 55 minutes, leaving a margin before expiration. Credentials are scoped to the VCR registry path, since multiple registries can share a regional hostname. API work has a 45-second overall deadline and a 30-second HTTP request timeout. Failures go to stderr with a nonzero exit status; stdout contains only the kubelet JSON response.

Development

Install Go 1.27.3 or newer, then run:

make build                 # dist/vcr-credential-provider
make build-linux           # static Linux amd64 binary
make build-linux GOARCH=arm64
make test                  # tests with the race detector
make lint                  # requires golangci-lint v2.15.0

Tests use a local mock Vultr API; no API key or cluster is needed. Releases use GoReleaser v2.19.0 and produce Linux amd64, arm64, and arm binaries. Run goreleaser check to validate the release configuration.

Contributing

We are open to contributions. If you are wanting to contribute or open a bug please feel free to raise an issue with more information.

See GitHub releases for published versions.

About

No description, website, or topics provided.

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct
Activity
Custom properties

Stars

1 star

Watchers

2 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.