regcred-injector

command module
v0.0.0-...-3cc5faf Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

README

regcred-injector

regcred-injector is a Kubernetes admission controller which allows you to globally set a registry credential.

This is achieved by hooking into pod creation and mutating the pod with an imagePullSecrets entry. This is currently limited to adding a single imagePullSecret.

Along with mutating the pod, credentials will be created in the target namespace, provided they don't already exist.

Architecture

Limitations

regcred-injector does not yet support overriding credentials in existing namespaces. That is, if regcred creates a secret and the registry PAT is changed, namespaces will not automatically receive the new credentials and they must be manually removed to be updated.

regcred-injector has no way to skip injection of credentials, all namespaces will receive the registry secrets as pods are created.

Usage

Installation into a Kubernetes cluster is possible with helm. Required parameters are the docker username and password (PAT), as well as a self-signed TLS keypair which Kubernetes uses to authenticate with the deployed service.

helm install --set docker.username=<username> --set docker.password=<PAT> my-release chart

Installation with a Scaleway private registry.

helm install --set docker.username=<accesskey> --set docker.password=<secretkey> --set docker.registry=rg.fr-par.scw.cloud --set-file cert=certs/regcred-injector-crt.pem --set-file key=certs/regcred-injector-key.pem my-release chart

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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