iac/infrastructure/s3-proxy/vad/deployment.yaml

52 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: s3-proxy
namespace: s3-proxy
spec:
replicas: 2
selector:
matchLabels:
app: s3-proxy
template:
metadata:
labels:
app: s3-proxy
spec:
nodeSelector:
dedicated: generic
tolerations: []
containers:
- name: nginx
image: nginx:1.25-alpine
volumeMounts:
- name: nginx-conf
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
ports:
- name: http
containerPort: 8080
readinessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 15
periodSeconds: 20
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 500m
memory: 256Mi
volumes:
- name: nginx-conf
configMap:
name: s3-proxy-nginx-conf