Files
nextgen-be/manifests/03-deployment.yaml
T

61 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nextgen-be
namespace: nextgen-be
labels:
app: nextgen-be
spec:
replicas: 1
selector:
matchLabels:
app: nextgen-be
template:
metadata:
labels:
app: nextgen-be
spec:
imagePullSecrets:
- name: registry-credentials
containers:
- name: nextgen-be
image: gitea.infrastructure.helmholz.cloud/gitea_admin/nextgen-be:latest
ports:
- containerPort: 8000
envFrom:
- configMapRef:
name: nextgen-be-config
- secretRef:
name: nextgen-be-db
- secretRef:
name: nextgen-be-jwt
- secretRef:
name: nextgen-be-radius
readinessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
livenessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 15
periodSeconds: 20
timeoutSeconds: 3
failureThreshold: 3
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
securityContext:
runAsNonRoot: true
runAsUser: 1000
allowPrivilegeEscalation: false