FluxCD | ImageUpdate missconfiguration | GitRepository SSL error

8/23/2021

Recently I started to play with Flux. I have installed it in an AKS cluster and deploying components from Azure DevOps. But I got a noobish issue when I try Image Update future, in the events I see when a new image was pushed to docker registry (so this bit works fine) but it complains with error gitrepository unable to clone 'https://dev.azure.com/.../REPORTING', error: SSL error: 0xffffffff - UNKNOWN ERROR CODE (0001) . Then imageupdateautomation says no updates I suspect that the issue is not in clone, because I am reading and deploying HealmReleases from the same gitrepo. I would be grateful, if anyone could point me what's miss configured.

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"}
-- salsa_moreca
argocd
fluxcd
gitops
kubernetes
weave

0 Answers