63 lines
1.6 KiB
YAML
63 lines
1.6 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
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
startupProbe:
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 5
|
|
failureThreshold: 10
|
|
httpGet:
|
|
path: /api/v1/app/version
|
|
port: http
|
|
livenessProbe:
|
|
periodSeconds: 5
|
|
httpGet:
|
|
path: /api/v1/app/version
|
|
port: http
|
|
readinessProbe:
|
|
periodSeconds: 5
|
|
httpGet:
|
|
path: /api/v1/app/version
|
|
port: http
|
|
volumeMounts:
|
|
- name: invoiceshelf-data
|
|
mountPath: /data
|
|
subPath: data
|
|
- name: dot-env
|
|
mountPath: /conf/.env
|
|
subPath: env
|
|
volumes:
|
|
- name: dot-env
|
|
secret:
|
|
secretName: env
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: invoiceshelf-data
|
|
spec:
|
|
accessModes: ["ReadWriteOnce"]
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|