-
Today I pushed a new image to DockerHub (as I have many times before) and it was not reconciled. I thought this may have something to do with the apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImagePolicy
metadata:
name: app
namespace: flux-system
spec:
imageRepositoryRef:
name: app
policy:
semver:
range: ">=4.0.0-0" The latest Tag in DockerHub is flux check
► checking prerequisites
✔ Kubernetes 1.19.13-eks-8df270 >=1.19.0-0
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.14.1
✔ image-automation-controller: deployment ready
► ghcr.io/fluxcd/image-automation-controller:v0.18.0
✔ image-reflector-controller: deployment ready
► ghcr.io/fluxcd/image-reflector-controller:v0.14.0
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v0.18.2
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v0.19.0
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v0.19.2
✔ all checks passed flux logs --since 15m --name app
2021-12-15T22:19:12.846Z info ImageRepository/app.flux-system - reconciliation finished in 766.940532ms, next run in 1m0s
2021-12-15T22:20:13.559Z info ImageRepository/app.flux-system - reconciliation finished in 712.611008ms, next run in 1m0s
2021-12-15T22:21:14.319Z info ImageRepository/app.flux-system - reconciliation finished in 758.814849ms, next run in 1m0s
2021-12-15T22:22:15.032Z info ImageRepository/app.flux-system - reconciliation finished in 711.489965ms, next run in 1m0s
2021-12-15T22:23:15.778Z info ImageRepository/app.flux-system - reconciliation finished in 745.53011ms, next run in 1m0s
2021-12-15T22:24:16.465Z info ImageRepository/app.flux-system - reconciliation finished in 687.11394ms, next run in 1m0s
2021-12-15T22:25:17.220Z info ImageRepository/app.flux-system - reconciliation finished in 753.750375ms, next run in 1m0s
2021-12-15T22:26:17.949Z info ImageRepository/app.flux-system - reconciliation finished in 729.136004ms, next run in 1m0s
2021-12-15T22:27:18.690Z info ImageRepository/app.flux-system - reconciliation finished in 739.822106ms, next run in 1m0s
2021-12-15T22:28:19.383Z info ImageRepository/app.flux-system - reconciliation finished in 691.69087ms, next run in 1m0s
2021-12-15T22:29:20.082Z info ImageRepository/app.flux-system - reconciliation finished in 699.2615ms, next run in 1m0s
2021-12-15T22:30:20.798Z info ImageRepository/app.flux-system - reconciliation finished in 715.670753ms, next run in 1m0s
2021-12-15T22:31:21.590Z info ImageRepository/app.flux-system - reconciliation finished in 790.360675ms, next run in 1m0s
2021-12-15T22:32:22.351Z info ImageRepository/app.flux-system - reconciliation finished in 760.800424ms, next run in 1m0s
2021-12-15T22:33:23.090Z info ImageRepository/app.flux-system - reconciliation finished in 738.723793ms, next run in 1m0s
2021-12-15T22:21:14.355Z info ImagePolicy/app.flux-system - Discarding event, no alerts found for the involved object
2021-12-15T22:26:17.970Z info ImagePolicy/app.flux-system - Discarding event, no alerts found for the involved object
2021-12-15T22:31:21.613Z info ImagePolicy/app.flux-system - Discarding event, no alerts found for the involved object flux get sources git
NAME READY MESSAGE REVISION SUSPENDED
flux-system True Fetched revision: master/xxx master/xxx False flux get image repository
NAME READY MESSAGE LAST SCAN SUSPENDED
app True successful scan, found 10 tags 2021-12-15T15:41:31-07:00 False
... There are 10 tags so Flux knows there are newer images but my app manifest is not being updated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 15 replies
-
I'm just going to document my progress here just in case anyone else runs into this issue. I took another stab at this and everything appears ok yet I'm still running the wrong flux get image policy
NAME READY MESSAGE LATEST IMAGE
app True Latest image tag for 'docker.io/xxx/app' resolved to: 4.8.3 docker.io/xxx/app:4.8.3
[...] Yet when I get the pods the I just manually changed the version in my manifest and pushed it to github then ran |
Beta Was this translation helpful? Give feedback.
-
On the advice of @stefanprodan I restarted the kube get pods -n flux-system
NAME READY STATUS RESTARTS AGE
helm-controller-96dc99bfd-68477 1/1 Running 0 39h
image-automation-controller-64c955c59-drglp 1/1 Running 0 72s << -- This is the one.
image-reflector-controller-55fb7f765d-c2l2f 1/1 Running 0 10d
kustomize-controller-7bc878f768-kj5bj 1/1 Running 0 39h
notification-controller-945795558-57lc6 1/1 Running 0 10d
source-controller-65665fd68f-nv4j5 1/1 Running 0 39h kubectl delete pods image-automation-controller-64c955c59-drglp -n flux-system
pod "image-automation-controller-64c955c59-drglp" deleted After that pod spun back up my pods updated shortly thereafter. |
Beta Was this translation helpful? Give feedback.
On the advice of @stefanprodan I restarted the
image-automation-controller
and it resolved the issue.