Files

62 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: persona-lenz
labels:
app.kubernetes.io/component: api
spec:
selector:
matchLabels:
app.kubernetes.io/name: persona-lenz
app.kubernetes.io/component: api
template:
metadata:
labels:
app.kubernetes.io/name: persona-lenz
app.kubernetes.io/component: api
spec:
serviceAccountName: persona-lenz
automountServiceAccountToken: false
imagePullSecrets:
- name: harbor-registry
containers:
- name: app
image: registry.dahyeon.us/dahyeon/persona-lenz
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 3000
protocol: TCP
env:
- name: PORT
value: "3000"
envFrom:
- configMapRef:
name: persona-lenz-config
optional: true
- secretRef:
name: persona-lenz-secrets
optional: false
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 15
periodSeconds: 20
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL