Skip to content

Commit

Permalink
fix: priority and resources
Browse files Browse the repository at this point in the history
  • Loading branch information
akurilov committed Sep 20, 2024
1 parent 6563360 commit d49b10b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ RUN \
npm install -D tailwindcss && \
npx tailwindcss -i ./tailwind.input.css -o ./web/tailwind.output.css

FROM nginx:1.27.0-alpine3.19
FROM nginx:1.27.1-alpine3.20
COPY --from=builder /tmp/web /usr/share/nginx/html
EXPOSE 80
1 change: 1 addition & 0 deletions helm/webapp/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
serviceAccountName: {{ include "webapp.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
priorityClassName: "{{ .Values.priority.class }}"
containers:
- name: {{ .Chart.Name }}
env:
Expand Down
17 changes: 10 additions & 7 deletions helm/webapp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,21 @@ ingress:

resources:
requests:
cpu: 10m
memory: 128Mi
cpu: 1m
memory: 16Mi
limits:
cpu: 1000m
memory: 256Mi
cpu: 100m
memory: 64Mi

autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationValue: 1000m
targetMemoryUtilizationValue: 128Mi
maxReplicas: 10
targetCPUUtilizationValue: 100m
targetMemoryUtilizationValue: 64Mi

priority:
class: "awk-critical"

nodeSelector: {}

Expand Down

0 comments on commit d49b10b

Please sign in to comment.