-
Notifications
You must be signed in to change notification settings - Fork 0
/
Deployment-pigallery2.yaml
68 lines (68 loc) · 2.32 KB
/
Deployment-pigallery2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: pigallery2
name: pigallery2
namespace: pigallery2
spec:
replicas: 1
selector:
matchLabels:
app: pigallery2
template:
metadata:
labels:
app: pigallery2
spec:
volumes:
- name: pigallery2-data-config
persistentVolumeClaim:
claimName: pigallery2-pvc-data-config
- name: pigallery2-data-db
persistentVolumeClaim:
claimName: pigallery2-pvc-data-db
- name: pigallery2-data-tmp
persistentVolumeClaim:
claimName: pigallery2-pvc-data-tmp
- name: pigallery2-photos
persistentVolumeClaim:
claimName: pigallery2-pvc-photos
containers:
- name: pigallery2
image: docker.io/bpatrik/pigallery2:latest
ports:
- containerPort: 80
volumeMounts:
- mountPath: /app/data/config
name: pigallery2-data-config
- mountPath: /app/data/db
name: pigallery2-data-db
- mountPath: /app/data/tmp
name: pigallery2-data-tmp
- mountPath: /app/data/images
name: pigallery2-photos
resources: {}
env:
- name: NODE_ENV
value: "production"
- name: Server-Log-level
value: "debug"
- name: Server-applicationTitle
value: "imagiPhoto"
- name: "RandomPhoto-enabled"
value: "true"
- name: "Sharing-enabled"
value: "true"
# Enables user management with login to password protect the gallery. (default: true)
- name: Users-authenticationRequired
value: "false"
# Default user right when password protection is disabled. (default: 'Admin')
- name: Users-unAuthenticatedUserRole
value: "User"
# the random links are a "share" and we need to disable the passwords on them.
- name: Sharing-passwordProtected
value: "false"
# Creates these users in the DB during startup if they do not exist. If a user with this name exist, it won't be overwritten, even if the role is different. (default: [])
# - name: Users-enforcedUsers
# value: '["admin", "BMW", "Fiat"]'