Skip to content

Commit

Permalink
Rename deploy template
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf committed Jan 31, 2024
1 parent 0d988c7 commit 756244f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions kubernetes/deployment-production.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: thumbnailer
labels:
app: thumbnailer
spec:
selector:
matchLabels:
app: thumbnailer
template:
metadata:
labels:
app: thumbnailer
spec:
containers:
- name: thumbnailer-nginx
image: ghcr.io/zooniverse/thumbnailer:__IMAGE_TAG__
resources:
requests:
memory: "150Mi"
cpu: "500m"
limits:
memory: "1000Mi"
cpu: "1000m"
ports:
- containerPort: 80
---
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: thumbnailer
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: thumbnailer
minReplicas: 2
maxReplicas: 6
targetCPUUtilizationPercentage: 80

0 comments on commit 756244f

Please sign in to comment.