80 lines
1.9 KiB
YAML
80 lines
1.9 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: afterwork-api
|
|
namespace: applications
|
|
labels:
|
|
app: afterwork-api
|
|
version: "1.0.0"
|
|
environment: production
|
|
spec:
|
|
replicas: 2
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxUnavailable: 0
|
|
selector:
|
|
matchLabels:
|
|
app: afterwork-api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: afterwork-api
|
|
version: "1.0.0"
|
|
annotations:
|
|
prometheus.io/scrape: "true"
|
|
prometheus.io/port: "8080"
|
|
prometheus.io/path: "/afterwork/q/metrics"
|
|
spec:
|
|
containers:
|
|
- name: afterwork-api
|
|
image: registry.lions.dev/lionsdev/mic-after-work-server-impl-quarkus-main:d659416
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
protocol: TCP
|
|
envFrom:
|
|
- configMapRef:
|
|
name: afterwork-config
|
|
- secretRef:
|
|
name: afterwork-secrets
|
|
resources:
|
|
requests:
|
|
memory: "512Mi"
|
|
cpu: "250m"
|
|
limits:
|
|
memory: "1Gi"
|
|
cpu: "1000m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /afterwork/q/health/live
|
|
port: 8080
|
|
scheme: HTTP
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 30
|
|
timeoutSeconds: 10
|
|
successThreshold: 1
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /afterwork/q/health/ready
|
|
port: 8080
|
|
scheme: HTTP
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
successThreshold: 1
|
|
failureThreshold: 3
|
|
volumeMounts:
|
|
- name: temp-uploads
|
|
mountPath: /tmp/uploads
|
|
volumes:
|
|
- name: temp-uploads
|
|
emptyDir:
|
|
sizeLimit: 1Gi
|
|
imagePullSecrets:
|
|
- name: lionsregistry-secret
|
|
restartPolicy: Always
|