52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: joossam-app
|
|
labels:
|
|
app: joossam-app
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: joossam-app
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxUnavailable: 1
|
|
maxSurge: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: joossam-app
|
|
spec:
|
|
containers:
|
|
- name: joossam-app
|
|
image: ghcr.io/mayne0213/joossam:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8000
|
|
protocol: TCP
|
|
env:
|
|
- name: ENV
|
|
value: production
|
|
resources:
|
|
requests:
|
|
memory: "150Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "300Mi"
|
|
cpu: "300m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8000
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8000
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
restartPolicy: Always
|