最近我开始玩 Flux。我已将其安装在 AKS 群集中并从 Azure DevOps 部署组件。但是当我将来尝试图像更新时,我遇到了一个小问题,在我看到一个新图像被推送到 docker 注册表(所以这个位工作正常)但它抱怨错误 gitrepository cannot clone 的事件中'https://dev.azure.com/.../REPORTING', error: SSL error: 0xffffffff - UNKNOWN ERROR CODE (0001)
。然后 imageupdateautomation 说没有更新我怀疑问题不在克隆中,因为我正在从同一个 gitrepo 读取和部署 HealmReleases。如果有人能指出我配置的错误,我将不胜感激。
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
metadata:
name: reporting
namespace: lsng
spec:
interval: 1m
url: https://dev.azure.com/.../_git/REPORTING
gitImplementation: libgit2
secretRef:
name: flux-system
ref:
branch: task/TSDEVOPS-647
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImageUpdateAutomation
metadata:
name: reporting
namespace: lsng
spec:
sourceRef:
kind: GitRepository
name: reporting
interval: 1m0s
update:
strategy: Setters
# path: ./app
git:
checkout:
ref:
branch: task/TSDEVOPS-647
commit:
author:
name: fluxbot
email: fluxbot@mail.ro
messageTemplate: |
An automated update from FluxBot
[ci skip]
signingKey:
secretRef:
name: flux-system
push:
branch: auto
And bellow line is added in reporting repo on the deployment:
image: "{{ $current.image.repository }}:{{ $global.image.tag }}" # {"$imagepolicy": "policy:ts-policy"}