kubes/shaarli/deployment.yaml
2023-07-06 01:52:48 +00:00

40 lines
935 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
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
name: shaarli-storage
subPath: data
- mountPath: /var/www/shaarli/cache
name: shaarli-storage
subPath: cache
restartPolicy: Always
volumes:
- name: shaarli-storage
persistentVolumeClaim:
claimName: shaarli-storage-claim
status: {}