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