stack/kustomizations/invoiceshelf/deployment.yaml

40 lines
1.0 KiB
YAML
Raw Normal View History

2024-03-31 09:08:56 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: invoiceshelf
labels:
app.kubernetes.io/name: invoiceshelf
app.kubernetes.io/component: server
spec:
selector:
matchLabels:
app.kubernetes.io/name: invoiceshelf
app.kubernetes.io/component: server
template:
metadata:
labels:
app.kubernetes.io/name: invoiceshelf
app.kubernetes.io/component: server
spec:
containers:
- name: invoiceshelf
image: invoiceshelf/invoiceshelf
envFrom:
- secretRef:
name: env
- configMapRef:
name: env
ports:
- name: http
containerPort: 80
# Create the flag the install check needs to bypass
lifecycle:
postStart:
exec:
command:
- /bin/sh
- -c
- "touch /var/www/html/InvoiceShelf/storage/app/database_created"
securityContext:
allowPrivilegeEscalation: false