Fix(hedgedoc): use statefulset and iscsi
All checks were successful
Lint yaml / build-package (push) Successful in 3s
All checks were successful
Lint yaml / build-package (push) Successful in 3s
This commit is contained in:
@@ -10,7 +10,8 @@
|
||||
"allowEmailRegister": false,
|
||||
"defaultPermission": "limited",
|
||||
"allowAnonymous": false,
|
||||
"imageUploadType": "minio",
|
||||
"uploadsPath": "/uploads",
|
||||
"imageUploadType": "filesystem",
|
||||
"hsts": {
|
||||
"enable": true,
|
||||
"maxAgeSeconds": 31536000,
|
||||
@@ -38,14 +39,6 @@
|
||||
"searchFilter": "(&(uid={{username}})(objectClass=person))",
|
||||
"useridField": "uid",
|
||||
"tlsca": "/etc/hedgedoc/rootca.pem"
|
||||
},
|
||||
"minio": {
|
||||
"accessKey": "********",
|
||||
"secretKey": "********",
|
||||
"endPoint": "minio.konchin.com",
|
||||
"port": 9000,
|
||||
"secure": false
|
||||
},
|
||||
"s3bucket": "hedgedoc"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ generatorOptions:
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- deploy.yaml
|
||||
- statefulset.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: hedgedoc
|
||||
spec:
|
||||
@@ -8,6 +8,17 @@ spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: hedgedoc
|
||||
serviceName: hedgedoc
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: uploads
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 32G
|
||||
storageClassName: iscsi
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
@@ -26,6 +37,8 @@ spec:
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /etc/hedgedoc/
|
||||
- name: uploads
|
||||
mountPath: /uploads/
|
||||
env:
|
||||
- name: CMD_CONFIG_FILE
|
||||
value: /etc/hedgedoc/config.json
|
||||
Reference in New Issue
Block a user