Skip to content

Commit

Permalink
Merge pull request #28 from adhoc-dev/ta-41975-4
Browse files Browse the repository at this point in the history
HPA
  • Loading branch information
az-adhoc authored Aug 19, 2024
2 parents ec14d63 + ea60aa8 commit 6131e4c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions charts/adhoc-aeroo-docs/v0.1.3/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ spec:
- name: aero
containerPort: 8989
protocol: TCP
{{- with .Values.startupProbe }}
startupProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 12 }}
Expand Down
16 changes: 11 additions & 5 deletions charts/adhoc-aeroo-docs/v0.1.3/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ image:
repository: adhoc/aeroo-docs
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "9.1"
tag: "9.5"

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -36,6 +36,12 @@ securityContext:
runAsNonRoot: true
runAsUser: 1000

# startupProbe:
# tcpSocket:
# port: aero
# failureThreshold: 30
# periodSeconds: 10

livenessProbe:
failureThreshold: 3
periodSeconds: 10
Expand All @@ -45,10 +51,10 @@ livenessProbe:
timeoutSeconds: 5

readinessProbe:
initialDelaySeconds: 30
initialDelaySeconds: 10
failureThreshold: 3
periodSeconds: 60
successThreshold: 2
successThreshold: 1
timeoutSeconds: 15
httpGet:
path: /?jsonrpc=2.0&method=test&id=1
Expand All @@ -70,8 +76,8 @@ resources:

autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 3
minReplicas: 2
maxReplicas: 5
# targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 85

Expand Down

0 comments on commit 6131e4c

Please sign in to comment.