k8s-image-credential-helper

command module
v0.0.0-...-ae1451e Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 8 Imported by: 0

README

k8s-image-credential-helper

监听 ns 的创建,然后在 ns 级别配置能够拉取私有仓库的私有镜像权限。 所以作用范围是私有仓库的私有镜像。参考 pull-image-private-registry add-imagepullsecrets-to-a-service-account

目前已支持的私有镜像如下:

  • Harbor
环境变量 loader
	envHost     = "IMAGE_HOST"
	envUser     = "IMAGE_USER"
	envPassword = "IMAGE_PASSWORD"

	serviceAccounts = "SERVICE_ACCOUNTS"
	watchNamespaces = "WATCH_NAMESPACES"

功能

监听 ns 创建,在新 ns 上面创建 secret docker-registry,绑定 secret docker-registry 给指定服务账号。 pod 使用上指定的服务账号

流程图

Feature

  1. watch ns create event, and auto add image credential

权限

部署步骤

yaml 部署

helm 部署

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