kubernetes - 来自私有注册表 (Github) 的 Helm 部署映像失败
问题描述
我正在尝试部署已推送到我的 Github 存储库包的图像。为此,我遵循了本指南。
当我创建秘密时,在--docker-server=< your-registry-server > 我把ghcr.io
这是我的猫~/.docker/config.json
{
"auths": {
"ghcr.io": {},
"https://index.docker.io/v1/": {}
},
"credsStore": "desktop",
"experimental": "disabled",
"stackOrchestrator": "swarm"
}
这是 Values.yaml
image:
repository: ghcr.io/myrepo/nginx-lua
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "1.0.0"
imagePullSecrets:
- name: regcred
nameOverride: ""
fullnameOverride: ""
部署后,当我看到我的 pod 时出现错误:
Failed to pull image "ghcr.io/myrepo/nginx-lua:1.0.0": rpc error: code = Unknown desc = Error response from daemon: Head https://ghcr.io/v2/myrepo/nginx-lua/manifests/1.0.0: denied: denied
我在这里想念什么?
解决方案
推荐阅读
- python - 对我的可调用类装饰器的任何建议
- node.js - 如何将 package.json 更新为每个包的最新版本?
- css - 手机上的 webkit 盒子和线夹
- reactjs - 如何更改 recharts 图表中的工具提示 dataKey
- android - 在 android Webview 中写入权限
- java - 如何让滚动按钮使用java放大和缩小对象
- javascript - 从 urql 查询数据存储中设置分页组件中的属性会导致页面挂起
- python-3.x - 我能够在不使用 setter 方法的情况下将私有变量设置为另一个值。这怎么可能?它是在创建新参数吗?
- r - 如何使用 R 将每天 1 列的数据集转换为只有 1 个日期列(天)
- android - 将自定义视图动态添加到 RelativeLayout 时出现 Logcat 错误