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.
This commit is contained in:
2026-02-10 20:25:34 +01:00
parent e9703e49b9
commit 961fbed6c3
3 changed files with 15 additions and 11 deletions

View File

@@ -3,3 +3,4 @@ node_modules/
.git/
*.md
heatguard
helm/

View File

@@ -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

View File

@@ -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: {}