43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
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
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
volumeMounts:
|
|
- name: invoiceshelf-data
|
|
mountPath: /var/www/html/InvoiceShelf/storage
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: invoiceshelf-data
|
|
spec:
|
|
accessModes: ["ReadWriteOnce"]
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|