ecr-credential-provider

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

README

ecr-credential-provider

CI | Go Report | Go Release

Fork of cmd/ecr-credential-provider to provide public available sources for binary download.

Cobebase will remain in-sync with parent repo but in here we provide building binary for multiple OS and archs.

Operating System Architecture Supported Artifact
Linux amd64 Download
Linux arm64 Download
Windows amd64 Download
Windows arm64 Download

How to Use

Kubernetes Docs Ref: https://kubernetes.io/docs/tasks/administer-cluster/kubelet-credential-provider/

  1. Put ecr-credential-provider binary at a given destination (/usr/bin/) after trailing OS/arch suffixes:
$ wget https://github.com/dntosas/ecr-credential-provider/releases/download/v1.0.0/ecr-credential-provider-linux-amd64
$ mv ecr-credential-provider-linux-amd64 /usr/bin/ecr-credential-provider
  1. Create a Kubelet creds config (/etc/smth/kubelet-creds.yaml)
apiVersion: kubelet.config.k8s.io/v1
kind: CredentialProviderConfig
providers:
  - name: ecr-credential-provider
    matchImages:
      - "*.dkr.ecr.*.amazonaws.com"
      - "*.dkr.ecr.*.amazonaws.com.cn"
      - "*.dkr.ecr-fips.*.amazonaws.com"
      - "*.dkr.ecr.*.c2s.ic.gov"
      - "*.dkr.ecr.*.sc2s.sgov.gov"
      - "public.ecr.aws"
    defaultCacheDuration: "12h"
    apiVersion: credentialprovider.kubelet.k8s.io/v1
  1. Add Kubelet flags to utilize above configuration:
$ kubelet [..] \
    --image-credential-provider-config='/etc/smth/kubelet-creds.yaml'
    --image-credential-provider-bin-dir='/usr/bin'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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