Skip to content

kubernetes validating admission webhook and mutating admission webhook.

License

Notifications You must be signed in to change notification settings

Michael754267513/webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webhook

kubernetes validating admission webhook and mutating admission webhook.

说明

  • 编辑deploy/generate-keys.sh 生成证书相关
  • 编辑 deploy/webhook.yaml 可以根据实际运行环境做修改 具体参考官方配置
  • caBundle字段 为CA PEM base64 加密后的密文s
  • demo证书已经生成,可以直接使用

配置说明

  • 利用mutating admission做修改容器环境变量,添加TZ和LANG 变量
  • 利用validating admission做验证对于环境变量不存在TZ的进行拒绝添加

启动参数

--tls-cert-file=./deploy/certs/webhook-server-tls.crt --tls-private-key-file=./deploy/certs/webhook-server-tls.key

注意

参考地址

About

kubernetes validating admission webhook and mutating admission webhook.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published