From 6fa1904a50041c0ad4af04f6ba3ffb3a9bbb678b Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Tue, 8 Oct 2024 18:27:07 -0400 Subject: [PATCH] use internal registry Signed-off-by: Xe Iaso --- .dockerignore | 1 + Earthfile | 3 +-- manifest/autoscale.yaml | 2 +- manifest/deployment.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index e4a18f2..c22f88c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -37,6 +37,7 @@ next-env.d.ts # Kubernetes /manifest/ +Earthfile # Content collections .content-collections \ No newline at end of file diff --git a/Earthfile b/Earthfile index 0655de3..c728199 100644 --- a/Earthfile +++ b/Earthfile @@ -27,9 +27,8 @@ run: COPY +build/app/.next/standalone /app COPY +build/app/.next/static /app/.next/static COPY +build/app/public /app/public - RUN mkdir -p /app/.next/cache EXPOSE 3000 CMD [ "node", "server.js" ] - SAVE IMAGE --push ghcr.io/xe/techaro-lol \ No newline at end of file + SAVE IMAGE --push registry.default.svc.alrest.xeserv.us/techaro/www \ No newline at end of file diff --git a/manifest/autoscale.yaml b/manifest/autoscale.yaml index 7d1d7d3..4ea20d2 100644 --- a/manifest/autoscale.yaml +++ b/manifest/autoscale.yaml @@ -13,7 +13,7 @@ spec: service: techaro-lol port: 80 replicas: - min: 0 + min: 1 max: 10 scaledownPeriod: 300 scalingMetric: diff --git a/manifest/deployment.yaml b/manifest/deployment.yaml index 2e7447c..b6d1ccf 100644 --- a/manifest/deployment.yaml +++ b/manifest/deployment.yaml @@ -16,7 +16,7 @@ spec: claimName: techaro-lol-temp containers: - name: main - image: ghcr.io/xe/techaro-lol:latest + image: registry.default.svc.alrest.xeserv.us/techaro/www:latest imagePullPolicy: "Always" resources: limits: