kubebapps 添加私有harbor 中的helm repo

kubebapps 支持添加私有的helm repo,基于http basic auth ,我们通过添加header 就可以了

备注 harbor helm 以及kubebapps 的搭建可以参考
https://www.cnblogs.com/rongfengliang/p/9974172.html
https://www.cnblogs.com/rongfengliang/p/9649337.html

创建私有helm repo

  • 参考界面

  • 上传helm repo

kubebapps 添加repo

  • 配置添加私有repo
  • catalog 界面
  • 说明
    url 为harbor 中helm 仓库的地址,authz header 为basic 模式的,basic auth 模式如下:
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

basic 后边的内容为用户名以及密码的base64 编码

base64encode(username:password)

可以使用linux 的base64 工具

echo -n "username:password" | base64

实际上这个是helm 自身对于basic auth 的支持,kubebapps 只是添加了一个配置选项

参考资料

https://github.com/kubeapps/kubeapps
https://zh.wikipedia.org/wiki/HTTP%E5%9F%BA%E6%9C%AC%E8%AE%A4%E8%AF%81

原文地址:https://www.cnblogs.com/rongfengliang/p/10481899.html