forked from public/stack
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
|
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
|