我正试图使用FluxCD将Helm图表部署到AKS。该图表已使用Helm-cli-";舵推&";。该图表在ACR中声明为掌舵/发布服务:0.1.0
Flux对账后,我收到以下错误:
'图表拉取错误:无法获取远程引用的图表版本:找不到图表名称">
舵控制器日志如下
{"级别":"信息","ts":"2022-02-02-07T12:40:18.121Z","记录器":"controller.helmlease","消息":">HelmChart‘流量系统/发布服务测试发布服务’未准备就绪","对账器组":"helm.toolkit.fluxcd.io";,"调节器种类":"helmrelease","名称":"发布服务"名称空间":"发布服务测试"}{"级别":"信息","ts":"2022-02-07T12:40:18.135Z","记录器":"控制器.helmlease","消息":"对账在15.458307ms内完成,下一次在5m0s内运行","对账器组":"helm.toolkit.fluxcd.io","对帐器类型":"helmrelease"、"name":"release services"、"names"速度":"发布服务测试"}
以下是AKS中的HelmChart资源:
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmChart
metadata:
creationTimestamp: "2022-02-07T07:30:16Z"
finalizers:
- finalizers.fluxcd.io
generation: 1
name: release-services-test-release-services
namespace: flux-system
resourceVersion: "105266699"
selfLink: /apis/source.toolkit.fluxcd.io/v1beta1/namespaces/flux-system/helmcharts/release-services-test-release-services
uid: e4820a70-8885-44a1-8dfd-0e2bf7256915
spec:
chart: release-services
interval: 5m0s
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: psbombb-helm-acr-dev
version: '>=0.1.0'
status:
conditions:
- lastTransitionTime: "2022-02-07T11:02:49Z"
message: 'chart pull error: failed to get chart version for remote reference:
no chart name found'
reason: ChartPullFailed
status: "False"
type: Ready
observedGeneration: 1
HelmRelease如下
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
creationTimestamp: "2022-02-07T04:34:14Z"
finalizers:
- finalizers.fluxcd.io
generation: 9
labels:
kustomize.toolkit.fluxcd.io/name: apps
kustomize.toolkit.fluxcd.io/namespace: flux-system
name: release-services
namespace: release-services-test
resourceVersion: "105341484"
selfLink: /apis/helm.toolkit.fluxcd.io/v2beta1/namespaces/release-services-test/helmreleases/release-services
uid: 6a6e5f5c-951d-4655-9c15-fa9fe7421a04
spec:
chart:
spec:
chart: release-services
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: psbombb-helm-acr-dev
namespace: flux-system
version: '>=0.1.0'
install:
remediation:
retries: 3
interval: 5m
releaseName: release-services
timeout: 12m
values:
image:
name: release-services
pullPolicy: IfNotPresent
registry: <repository>.azurecr.io
repository: <repository>.azurecr.io/helm/release-services
tag: 0.1.0
postgres:
secret:
create: false
existingName: release-services-secrets
status:
conditions:
- lastTransitionTime: "2022-02-07T08:27:13Z"
message: HelmChart 'flux-system/release-services-test-release-services' is not
ready
reason: ArtifactFailed
status: "False"
type: Ready
failures: 50
helmChart: flux-system/release-services-test-release-services
observedGeneration: 9
有没有我遗漏的东西可以让任何人帮我找到?
谢谢
我认为您的问题是Azure容器注册表将Helm Charts存储为OCI工件。
Flux源控制器将从HTTP Helm Chart repo中提取index.yaml
来查找标记,而这不适用于OCI注册表。
这是GitHub的问题,你可以看到Flux的人将在这方面工作,因为现在OCI功能在Helm 3.8.0中是稳定的。