diff --git a/cluster/apps/presidential-paradise/zookeeper/deployment.yaml b/cluster/apps/presidential-paradise/zookeeper/deployment.yaml index d753cce..c301bb9 100644 --- a/cluster/apps/presidential-paradise/zookeeper/deployment.yaml +++ b/cluster/apps/presidential-paradise/zookeeper/deployment.yaml @@ -23,7 +23,7 @@ spec: spec: containers: - name: zookeeper - image: docker.io/0x76/zookeeper:latest + image: registry.xirion.net/library/zookeeper:0.2.0 # {"$imagepolicy": "presidential-paradise:zookeeper"} ports: - name: web containerPort: 8085 diff --git a/cluster/apps/presidential-paradise/zookeeper/image-updater.yaml b/cluster/apps/presidential-paradise/zookeeper/image-updater.yaml new file mode 100644 index 0000000..e8cebaf --- /dev/null +++ b/cluster/apps/presidential-paradise/zookeeper/image-updater.yaml @@ -0,0 +1,22 @@ +apiVersion: image.toolkit.fluxcd.io/v1beta1 +kind: ImageRepository +metadata: + name: zookeeper + namespace: presidential-paradise +spec: + image: registry.xirion.net/library/zookeeper + interval: 1m0s + secretRef: + name: xirion-registry-creds +--- +apiVersion: image.toolkit.fluxcd.io/v1beta1 +kind: ImagePolicy +metadata: + name: zookeeper + namespace: presidential-paradise +spec: + imageRepositoryRef: + name: zookeeper + policy: + semver: + range: "*" diff --git a/cluster/apps/presidential-paradise/zookeeper/kustomization.yaml b/cluster/apps/presidential-paradise/zookeeper/kustomization.yaml index 3716bd7..536f4ba 100644 --- a/cluster/apps/presidential-paradise/zookeeper/kustomization.yaml +++ b/cluster/apps/presidential-paradise/zookeeper/kustomization.yaml @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - external-secret.yaml + - image-updater.yaml - deployment.yaml - svc.yaml - ingress.yaml diff --git a/cluster/base/flux-system/image-update-automation.yaml b/cluster/base/flux-system/image-update-automation.yaml new file mode 100644 index 0000000..2c8d235 --- /dev/null +++ b/cluster/base/flux-system/image-update-automation.yaml @@ -0,0 +1,24 @@ +apiVersion: image.toolkit.fluxcd.io/v1beta1 +kind: ImageUpdateAutomation +metadata: + name: flux-system + namespace: flux-system +spec: + interval: 1m0s + sourceRef: + kind: GitRepository + name: flux-system + git: + checkout: + ref: + branch: main + commit: + author: + email: fluxcdbot@users.noreply.github.com + name: fluxcdbot + messageTemplate: '{{range .Updated.Images}}{{println .}}{{end}}' + push: + branch: main + update: + path: ./cluster/ + strategy: Setters diff --git a/cluster/base/flux-system/kustomization.yaml b/cluster/base/flux-system/kustomization.yaml index 2974f2d..e57a2e4 100644 --- a/cluster/base/flux-system/kustomization.yaml +++ b/cluster/base/flux-system/kustomization.yaml @@ -3,4 +3,5 @@ kind: Kustomization resources: - gotk-components.yaml - gotk-sync.yaml +- image-update-automation.yaml - charts