使用私有的harbor仓库,https的url配置会报错
fomin-zhu opened this issue · comments
fomin commented
使用https://{ip地址}/chartrepo/abc,自签的https证书,提示下面的错误,
x509:certificate signed by unknown authority
使用helm repo add是没有问题的,是需要传递--ca-file吗?
Kumu commented
使用https://{ip地址}/chartrepo/abc,自签的https证书,提示下面的错误,
x509:certificate signed by unknown authority
使用helm repo add是没有问题的,是需要传递--ca-file吗?
好的,我这边确认一下
Kumu commented
// Entry represents a collection of parameters for chart repository
type Entry struct {
Name string `json:"name"`
URL string `json:"url"`
Username string `json:"username"`
Password string `json:"password"`
CertFile string `json:"certFile"`
KeyFile string `json:"keyFile"`
CAFile string `json:"caFile"`
InsecureSkipTLSverify bool `json:"insecure_skip_tls_verify"`
}
试试添加 insecure_skip_tls_verify 配置为 true 试试,如:
helmRepos:
- name: bitnami
url: https://charts.bitnami.com/bitnami
insecure_skip_tls_verify: true