Adds bookstack app.
This commit is contained in:
106
bookstack/versions/26/deployment.yaml
Normal file
106
bookstack/versions/26/deployment.yaml
Normal file
@@ -0,0 +1,106 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: bookstack
|
||||
namespace: {{ .namespace }}
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
component: web
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
component: web
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
runAsNonRoot: false
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
- name: bookstack
|
||||
image: lscr.io/linuxserver/bookstack:26.05.1
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
- name: APP_URL
|
||||
value: https://{{ .domain }}
|
||||
- name: DB_HOST
|
||||
value: {{ .db.host }}
|
||||
- name: DB_PORT
|
||||
value: "{{ .db.port }}"
|
||||
- name: DB_DATABASE
|
||||
value: {{ .db.name }}
|
||||
- name: DB_USERNAME
|
||||
value: {{ .db.user }}
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: bookstack-secrets
|
||||
key: dbPassword
|
||||
- name: APP_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: bookstack-secrets
|
||||
key: appKey
|
||||
- name: MAIL_DRIVER
|
||||
value: smtp
|
||||
- name: MAIL_HOST
|
||||
value: {{ .smtp.host }}
|
||||
- name: MAIL_PORT
|
||||
value: "{{ .smtp.port }}"
|
||||
- name: MAIL_FROM
|
||||
value: {{ .smtp.from }}
|
||||
- name: MAIL_USERNAME
|
||||
value: {{ .smtp.user }}
|
||||
- name: MAIL_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: bookstack-secrets
|
||||
key: smtpPassword
|
||||
- name: MAIL_ENCRYPTION
|
||||
value: tls
|
||||
resources:
|
||||
limits:
|
||||
cpu: "1"
|
||||
ephemeral-storage: 1Gi
|
||||
memory: 512Mi
|
||||
requests:
|
||||
cpu: 50m
|
||||
ephemeral-storage: 50Mi
|
||||
memory: 128Mi
|
||||
volumeMounts:
|
||||
- name: bookstack-data
|
||||
mountPath: /config
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 90
|
||||
timeoutSeconds: 5
|
||||
periodSeconds: 15
|
||||
failureThreshold: 6
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 60
|
||||
timeoutSeconds: 3
|
||||
periodSeconds: 10
|
||||
failureThreshold: 3
|
||||
securityContext:
|
||||
readOnlyRootFilesystem: false
|
||||
volumes:
|
||||
- name: bookstack-data
|
||||
persistentVolumeClaim:
|
||||
claimName: bookstack-data
|
||||
restartPolicy: Always
|
||||
Reference in New Issue
Block a user