Skip to content

Commit 0050950

Browse files
authored
Merge pull request #9 from suda/feature/onlyoffice
Add ONLYOFFICE document server chart
2 parents 6fb5ebd + f6e9ca5 commit 0050950

33 files changed

+3833
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
ovpn0
22
*.tgz
33
.DS_Store
4+
helm-docs

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ See [Artifact Hub](https://artifacthub.io/packages/search?repo=suda) or [charts]
2020

2121
[All contributions (no matter if small) are always welcome](http://contributionswelcome.org/).
2222

23+
## Acknowledgements
24+
25+
* [`documentserver` chart](charts/documentserver) is based on [ONLYOFFICE chart/documentation](https://github.com/ONLYOFFICE/Kubernetes-Docs)
26+
2327
## License
2428

2529
[Apache 2.0 License](./LICENSE)

charts/documentserver/Chart.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: v2
2+
appVersion: 7.0.0
3+
description: Helm chart for installing ONLYOFFICE Docs in Kubernetes
4+
name: documentserver
5+
version: 7.0.1
6+
type: application
7+
sources:
8+
- https://github.com/suda/charts/tree/main/charts/documentserver
9+
home: https://github.com/suda/charts/tree/main/charts/documentserver
10+
maintainers:
11+
- name: suda
12+
13+
url: https://suda.pl

charts/documentserver/README.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# documentserver
2+
3+
![Version: 7.0.1](https://img.shields.io/badge/Version-7.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 7.0.0](https://img.shields.io/badge/AppVersion-7.0.0-informational?style=flat-square)
4+
5+
Helm chart for installing ONLYOFFICE Docs in Kubernetes
6+
7+
**Homepage:** <https://github.com/suda/charts/tree/main/charts/documentserver>
8+
9+
## Maintainers
10+
11+
| Name | Email | Url |
12+
| ---- | ------ | --- |
13+
| suda | [email protected] | https://suda.pl |
14+
15+
## Source Code
16+
17+
* <https://github.com/suda/charts/tree/main/charts/documentserver>
18+
19+
## Values
20+
21+
| Key | Type | Default | Description |
22+
|-----|------|---------|-------------|
23+
| connections.amqpHost | string | `"rabbitmq"` | |
24+
| connections.amqpPasswordSecret | string | `""` | |
25+
| connections.amqpProto | string | `"amqp"` | |
26+
| connections.amqpUser | string | `"user"` | |
27+
| connections.dbHost | string | `"postgresql"` | |
28+
| connections.dbPasswordSecret | string | `""` | |
29+
| connections.dbPort | string | `"5432"` | |
30+
| connections.dbUser | string | `"postgres"` | |
31+
| connections.redisHost | string | `"redis-master"` | |
32+
| converter.containerImage | string | `"onlyoffice/docs-converter-de:7.0.0.132"` | |
33+
| converter.replicas | int | `1` | |
34+
| converter.resources | object | `{}` | |
35+
| docservice.containerImage | string | `"onlyoffice/docs-docservice-de:7.0.0.132"` | |
36+
| docservice.livenessProbe.failureThreshold | int | `5` | |
37+
| docservice.livenessProbe.httpGet.path | string | `"/index.html"` | |
38+
| docservice.livenessProbe.httpGet.port | int | `8000` | |
39+
| docservice.livenessProbe.periodSeconds | int | `10` | |
40+
| docservice.livenessProbe.successThreshold | int | `1` | |
41+
| docservice.livenessProbe.timeoutSeconds | int | `3` | |
42+
| docservice.livenessProbeEnabled | bool | `false` | |
43+
| docservice.readinessProbe.failureThreshold | int | `2` | |
44+
| docservice.readinessProbe.httpGet.path | string | `"/index.html"` | |
45+
| docservice.readinessProbe.httpGet.port | int | `8000` | |
46+
| docservice.readinessProbe.periodSeconds | int | `10` | |
47+
| docservice.readinessProbe.successThreshold | int | `1` | |
48+
| docservice.readinessProbe.timeoutSeconds | int | `3` | |
49+
| docservice.readinessProbeEnabled | bool | `false` | |
50+
| docservice.replicas | int | `1` | |
51+
| docservice.resources | object | `{}` | |
52+
| docservice.startupProbe.failureThreshold | int | `30` | |
53+
| docservice.startupProbe.httpGet.path | string | `"/index.html"` | |
54+
| docservice.startupProbe.httpGet.port | int | `8000` | |
55+
| docservice.startupProbe.periodSeconds | int | `10` | |
56+
| docservice.startupProbeEnabled | bool | `false` | |
57+
| example.containerImage | string | `"onlyoffice/docs-example:7.0.0.132"` | |
58+
| example.enabled | bool | `false` | |
59+
| grafana_ingress.enabled | bool | `false` | |
60+
| ingress.enabled | bool | `false` | |
61+
| ingress.ssl.enabled | bool | `false` | |
62+
| ingress.ssl.host | string | `"example.com"` | |
63+
| ingress.ssl.secret | string | `"tls"` | |
64+
| jwt.enabled | bool | `true` | |
65+
| jwt.secret | string | `"MYSECRET"` | |
66+
| metrics.enabled | bool | `false` | |
67+
| persistence.enabled | bool | `false` | |
68+
| persistence.size | string | `"8Gi"` | |
69+
| persistence.storageClass | string | `""` | |
70+
| product.name | string | `"onlyoffice"` | |
71+
| proxy.livenessProbe.failureThreshold | int | `3` | |
72+
| proxy.livenessProbe.httpGet.path | string | `"/index.html"` | |
73+
| proxy.livenessProbe.httpGet.port | int | `8888` | |
74+
| proxy.livenessProbe.periodSeconds | int | `10` | |
75+
| proxy.livenessProbe.successThreshold | int | `1` | |
76+
| proxy.livenessProbe.timeoutSeconds | int | `3` | |
77+
| proxy.livenessProbeEnabled | bool | `false` | |
78+
| proxy.proxyContainerImage | string | `"onlyoffice/docs-proxy-de:7.0.0.132"` | |
79+
| proxy.resources | object | `{}` | |
80+
| proxy.startupProbe.failureThreshold | int | `30` | |
81+
| proxy.startupProbe.httpGet.path | string | `"/index.html"` | |
82+
| proxy.startupProbe.httpGet.port | int | `8888` | |
83+
| proxy.startupProbe.periodSeconds | int | `10` | |
84+
| proxy.startupProbeEnabled | bool | `false` | |
85+
| service.port | int | `8888` | |
86+
| service.type | string | `"ClusterIP"` | |
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
apiVersion: batch/v1
2+
kind: Job
3+
metadata:
4+
name: prepare4shutdown
5+
spec:
6+
backoffLimit: 2
7+
template:
8+
spec:
9+
volumes:
10+
- name: ds-files
11+
persistentVolumeClaim:
12+
claimName: ds-files
13+
- name: remove-db-scripts
14+
configMap:
15+
name: remove-db-scripts
16+
- name: init-db-scripts
17+
configMap:
18+
name: init-db-scripts
19+
- name: stop-scripts
20+
configMap:
21+
name: stop-ds
22+
defaultMode: 0755
23+
containers:
24+
- name: prepare4shutdown
25+
image: postgres
26+
envFrom:
27+
- configMapRef:
28+
name: documentserver
29+
env:
30+
- name: DB_PWD
31+
valueFrom:
32+
secretKeyRef:
33+
name: postgresql
34+
key: postgresql-password
35+
- name: PRODUCT_NAME
36+
value: ${PRODUCT_NAME}
37+
volumeMounts:
38+
- name: ds-files
39+
mountPath: /var/lib/${PRODUCT_NAME}/documentserver/App_Data/cache/files
40+
- name: remove-db-scripts
41+
mountPath: /sql/removetbl.sql
42+
subPath: removetbl.sql
43+
- name: init-db-scripts
44+
mountPath: /sql/createdb.sql
45+
subPath: createdb.sql
46+
- name: stop-scripts
47+
mountPath: /sql/stop.sh
48+
subPath: stop.sh
49+
command: ["/bin/sh", "-c"]
50+
args: ["/sql/stop.sh"]
51+
restartPolicy: Never
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
apiVersion: batch/v1
2+
kind: Job
3+
metadata:
4+
name: prepare4update
5+
spec:
6+
backoffLimit: 2
7+
template:
8+
spec:
9+
volumes:
10+
- name: ds-files
11+
persistentVolumeClaim:
12+
claimName: ds-files
13+
- name: remove-db-scripts
14+
configMap:
15+
name: remove-db-scripts
16+
- name: init-db-scripts
17+
configMap:
18+
name: init-db-scripts
19+
- name: stop-scripts
20+
configMap:
21+
name: stop-ds
22+
defaultMode: 0755
23+
containers:
24+
- name: prepare4update
25+
image: postgres
26+
envFrom:
27+
- configMapRef:
28+
name: documentserver
29+
env:
30+
- name: DB_PWD
31+
valueFrom:
32+
secretKeyRef:
33+
name: postgresql
34+
key: postgresql-password
35+
- name: PRODUCT_NAME
36+
value: ${PRODUCT_NAME}
37+
volumeMounts:
38+
- name: ds-files
39+
mountPath: /var/lib/${PRODUCT_NAME}/documentserver/App_Data/cache/files
40+
- name: remove-db-scripts
41+
mountPath: /sql/removetbl.sql
42+
subPath: removetbl.sql
43+
- name: init-db-scripts
44+
mountPath: /sql/createdb.sql
45+
subPath: createdb.sql
46+
- name: stop-scripts
47+
mountPath: /sql/stop.sh
48+
subPath: stop.sh
49+
command: ["/bin/sh", "-c"]
50+
args: ["/sql/stop.sh"]
51+
restartPolicy: Never
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- job_name: 'statsd'
2+
scrape_interval: 30s
3+
static_configs:
4+
- targets:
5+
- statsd-exporter-prometheus-statsd-exporter:9102
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
controller:
2+
publishService:
3+
enabled: true
4+
replicaCount: 2
5+
metrics:
6+
enabled: true
7+
service:
8+
annotations:
9+
prometheus.io/scrape: 'true'
10+
prometheus.io/port: '10254'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Сopy the license file here

0 commit comments

Comments
 (0)