安全访问私有头盔存储库

Den*_*dic 2 kubernetes kubernetes-helm kubernetes-security

  1. 掌舵甚至有可能吗?
  2. 可以使用哪些安全选项(BasicAuth?客户端证书?OAuth2?)
  3. 是否有与此相关的示例/文档(服务器端和客户端)?

cod*_*nio 5

使用私有GitHub存储库的Helm私有存储库

脚步:

  1. 创建一个名为private-helm-registry或的私有GitHub存储库。
  2. 放置您的原始头盔图表。
  3. 创建一个charts文件夹,index.yaml.tgz在该文件夹内以格式放置和打包图表。

  4. 创建具有只读访问权限的GitHub 个人访问令牌

  5. 使用以下命令将您的存储库添加到头盔:

    $ helm repo add helm-registry 'https://<git_hub_personal_access_token>@raw.githubusercontent.com/myGitHubAccountName/private-helm-registry/master/charts/'
    "helm-registry" has been added to your repositories
    
    Run Code Online (Sandbox Code Playgroud)

    注意:

    1. Enclose the Url with single quotes ' '.
    2. The trailing / is mandatory.
    
    Run Code Online (Sandbox Code Playgroud)
  6. 要将开发或其他分支添加为Helm存储库,请使用分支名称:

    $ helm repo add helm-registry-dev 'https://<git_hub_personal_access_token>@raw.githubusercontent.com/myGitHubAccountName/private-helm-registry/<branch>/charts/'
    "helm-registry-dev" has been added to your repositories
    
    Run Code Online (Sandbox Code Playgroud)

有关更多信息,请参见使用私有github存储库作为掌舵图表存储库