From 961fbed6c3bfb05dc58491d1efd10f59b5651de3 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Tue, 10 Feb 2026 20:25:34 +0100 Subject: [PATCH] feat(helm): update image registry, enable HTTPRoute, autoscaling, and refactor Dockerfile - Use custom image registry (somegit.dev) with pull secrets and "latest" tag. - Enable HTTPRoute with hostname "heatguard.dev" and TLS via cert-manager. - Activate autoscaling with min/max replicas and resource metrics. - Switch Dockerfile to Alpine runtime with nonroot user. - Add helm directory to .dockerignore. --- .dockerignore | 1 + Dockerfile | 6 ++++-- helm/heatguard/values.yaml | 19 ++++++++++--------- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.dockerignore b/.dockerignore index 5b490f9..d696b6a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,3 +3,4 @@ node_modules/ .git/ *.md heatguard +helm/ diff --git a/Dockerfile b/Dockerfile index e28a251..bd365cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,9 +12,11 @@ RUN npm ci COPY . . -RUN CGO_ENABLED=0 make build +RUN make build -FROM gcr.io/distroless/static-debian12:nonroot +FROM alpine:3 + +RUN adduser -D -u 65532 nonroot COPY --from=build /src/bin/heatguard /heatguard diff --git a/helm/heatguard/values.yaml b/helm/heatguard/values.yaml index 396d845..cedb2ae 100644 --- a/helm/heatguard/values.yaml +++ b/helm/heatguard/values.yaml @@ -1,11 +1,12 @@ replicaCount: 1 image: - repository: heatguard - pullPolicy: IfNotPresent - tag: "" + repository: somegit.dev/vikingowl/heatguard + pullPolicy: Always + tag: "latest" -imagePullSecrets: [] +imagePullSecrets: + - name: somegit service: type: ClusterIP @@ -13,14 +14,14 @@ service: targetPort: 8080 httpRoute: - enabled: false + enabled: true annotations: cert-manager.io/cluster-issuer: letsencrypt-prod parentRefs: - name: default namespace: nginx-gateway - hostnames: [] - # - heatguard.example.com + hostnames: + - heatguard.dev env: [] # - name: API_KEY @@ -42,13 +43,13 @@ resources: memory: 64Mi autoscaling: - enabled: false + enabled: true minReplicas: 1 maxReplicas: 5 targetCPUUtilizationPercentage: 80 serviceAccount: - create: true + create: false name: "" annotations: {}