Skip to content

Commit

Permalink
Add ability to control minimum number of replicas for Arcane.Ingestion (
Browse files Browse the repository at this point in the history
#23)

* Add ability to control minimum number of replicas for Arcane.Ingestion

* Update cleanup-repository.yaml

* Fixes
  • Loading branch information
s-vitaliy authored Oct 1, 2024
1 parent 2e609cf commit c8c984f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cleanup-repository.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Remove old artifacts
on:
# schedule:
# - cron: '0 12 * * *' # every day at 12:00 UTC
schedule:
- cron: '0 12 * * *' # every day at 12:00 UTC
workflow_dispatch:

jobs:
Expand All @@ -23,7 +23,7 @@ jobs:
package-type: container
token: ${{ secrets.GITHUB_TOKEN }}
min-versions-to-keep: 10
delete-only-pre-release-versions: "true"
ignore-versions: v([0-9]+\.?)+$

- name: Delete old package versions of helm/${{ github.repository }}
uses: actions/[email protected]
Expand All @@ -32,4 +32,4 @@ jobs:
package-type: container
token: ${{ secrets.GITHUB_TOKEN }}
min-versions-to-keep: 10
delete-only-pre-release-versions: "true"
ignore-versions: v([0-9]+\.?)+$
2 changes: 1 addition & 1 deletion .github/workflows/publish-ecr-public.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
publish_image:
name: Publish Docker Image to ECR Public
runs-on: ubuntu-latest
# if: ${{ startsWith(github.ref, 'refs/tags') }}
if: ${{ startsWith(github.ref, 'refs/tags') }}

permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .helm/templates/hpa-ingestion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ spec:
averageUtilization: {{ .Values.hpa.cpuTarget }}
type: Utilization
type: Resource
minReplicas: 3
minReplicas: {{ .Values.hpa.minReplicas }}
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ template "app.name" . }}-ingestion
name: {{ template "app.name" . }}-ingestion
2 changes: 1 addition & 1 deletion .helm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
environment: "Development"
replicaCount: 1

nodes:
taint: "kubernetes.sneaksanddata.com/servicenodetype"
Expand Down Expand Up @@ -27,6 +26,7 @@ hpa:
stabilizationWindow: 120
maxReplicas: 10
cpuTarget: 35
minReplicas: 1

image:
repository: arcane-ingestion
Expand Down

0 comments on commit c8c984f

Please sign in to comment.