kubes/shaarli/deployment.yaml

40 lines
935 B
YAML
Raw Normal View History

2023-07-05 16:09:13 +00:00
apiVersion: apps/v1
kind: Deployment
2023-07-05 16:50:45 +00:00
metadata:
2023-07-05 16:09:13 +00:00
creationTimestamp: null
labels:
io.kompose.service: shaarli
name: shaarli
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: shaarli
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
io.kompose.service: shaarli
spec:
containers:
- image: ghcr.io/shaarli/shaarli:latest
name: bmarkz
ports:
- containerPort: 80
resources: {}
volumeMounts:
- mountPath: /var/www/shaarli/data
2023-07-05 18:14:40 +00:00
name: shaarli-storage
subPath: data
2023-07-05 16:09:13 +00:00
- mountPath: /var/www/shaarli/cache
2023-07-05 18:14:40 +00:00
name: shaarli-storage
subPath: cache
2023-07-05 16:09:13 +00:00
restartPolicy: Always
volumes:
2023-07-05 18:14:40 +00:00
- name: shaarli-storage
persistentVolumeClaim:
claimName: shaarli-storage-claim
2023-07-05 16:09:13 +00:00
status: {}