From 633df4d441a3dc9558917b864a3df37c76d27d6e Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Fri, 9 Oct 2026 23:21:09 +1100 Subject: [PATCH 1/2] bump artifactapi to v3.13.1 from docker-internal --- apps/base/artifactapi/api-deployment.yaml | 2 +- apps/base/artifactapi/ui-deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/base/artifactapi/api-deployment.yaml b/apps/base/artifactapi/api-deployment.yaml index 8fc173a..6bfe867 100644 --- a/apps/base/artifactapi/api-deployment.yaml +++ b/apps/base/artifactapi/api-deployment.yaml @@ -36,7 +36,7 @@ spec: mountPath: /combined-certs containers: - name: api - image: git.unkin.net/unkin/artifactapi:v3.12.0 + image: artifactapi.k8s.syd1.au.unkin.net/docker-internal/artifactapi:v3.13.1 imagePullPolicy: IfNotPresent ports: - containerPort: 8000 diff --git a/apps/base/artifactapi/ui-deployment.yaml b/apps/base/artifactapi/ui-deployment.yaml index b05b1f1..62f5c9d 100644 --- a/apps/base/artifactapi/ui-deployment.yaml +++ b/apps/base/artifactapi/ui-deployment.yaml @@ -22,7 +22,7 @@ spec: automountServiceAccountToken: true containers: - name: ui - image: git.unkin.net/unkin/artifactapi-ui:v3.12.0 + image: artifactapi.k8s.syd1.au.unkin.net/docker-internal/artifactapi-ui:v3.13.1 imagePullPolicy: IfNotPresent ports: - containerPort: 80 -- 2.47.3 From 65dcd9543fcc53e7c202814d40dbbd3097568252 Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Fri, 9 Oct 2026 23:30:01 +1100 Subject: [PATCH 2/2] add image-keeper daemonset caching artifactapi images on every node --- apps/base/artifactapi/image-keeper.yaml | 105 +++++++++++++++++++++++ apps/base/artifactapi/kustomization.yaml | 1 + 2 files changed, 106 insertions(+) create mode 100644 apps/base/artifactapi/image-keeper.yaml diff --git a/apps/base/artifactapi/image-keeper.yaml b/apps/base/artifactapi/image-keeper.yaml new file mode 100644 index 0000000..49488cd --- /dev/null +++ b/apps/base/artifactapi/image-keeper.yaml @@ -0,0 +1,105 @@ +--- +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: image-keeper + namespace: artifactapi +spec: + selector: + matchLabels: + app: image-keeper + updateStrategy: + rollingUpdate: + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + labels: + app: image-keeper + spec: + automountServiceAccountToken: false + priorityClassName: low + tolerations: + - operator: Exists + securityContext: + runAsNonRoot: true + runAsUser: 65532 + runAsGroup: 65532 + seccompProfile: + type: RuntimeDefault + initContainers: + # artifactapi is distroless with no exit-0 flag, so run a static busybox as `true` + - name: copy-true + image: busybox:1.37.0-musl + imagePullPolicy: IfNotPresent + command: ["cp", "/bin/busybox", "/keeper/true"] + volumeMounts: + - name: keeper + mountPath: /keeper + resources: + limits: + cpu: 10m + memory: 16Mi + requests: + cpu: 1m + memory: 4Mi + securityContext: + allowPrivilegeEscalation: false + readOnlyRootFilesystem: true + capabilities: + drop: ["ALL"] + - name: api + image: artifactapi.k8s.syd1.au.unkin.net/docker-internal/artifactapi:v3.13.1 + imagePullPolicy: IfNotPresent + command: ["/keeper/true"] + volumeMounts: + - name: keeper + mountPath: /keeper + readOnly: true + resources: + limits: + cpu: 10m + memory: 16Mi + requests: + cpu: 1m + memory: 4Mi + securityContext: + allowPrivilegeEscalation: false + readOnlyRootFilesystem: true + capabilities: + drop: ["ALL"] + - name: ui + image: artifactapi.k8s.syd1.au.unkin.net/docker-internal/artifactapi-ui:v3.13.1 + imagePullPolicy: IfNotPresent + command: ["true"] + resources: + limits: + cpu: 10m + memory: 16Mi + requests: + cpu: 1m + memory: 4Mi + securityContext: + allowPrivilegeEscalation: false + readOnlyRootFilesystem: true + capabilities: + drop: ["ALL"] + containers: + - name: pause + image: rancher/mirrored-pause:3.6 + imagePullPolicy: IfNotPresent + resources: + limits: + cpu: 10m + memory: 16Mi + requests: + cpu: 1m + memory: 4Mi + securityContext: + allowPrivilegeEscalation: false + readOnlyRootFilesystem: true + capabilities: + drop: ["ALL"] + volumes: + - name: keeper + emptyDir: {} diff --git a/apps/base/artifactapi/kustomization.yaml b/apps/base/artifactapi/kustomization.yaml index 6053989..27b0815 100644 --- a/apps/base/artifactapi/kustomization.yaml +++ b/apps/base/artifactapi/kustomization.yaml @@ -11,6 +11,7 @@ resources: - cnpg_pooler.yaml - gateway.yaml - httproute.yaml + - image-keeper.yaml - namespace.yaml - oauth2-proxy-configmap.yaml - oauth2-proxy-deployment.yaml -- 2.47.3