Skip to content

Commit

Permalink
Merge pull request #9 from suda/feature/onlyoffice
Browse files Browse the repository at this point in the history
Add ONLYOFFICE document server chart
  • Loading branch information
suda committed Feb 5, 2022
2 parents 6fb5ebd + f6e9ca5 commit 0050950
Show file tree
Hide file tree
Showing 33 changed files with 3,833 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
ovpn0
*.tgz
.DS_Store
helm-docs
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -20,6 +20,10 @@ See [Artifact Hub](https://artifacthub.io/packages/search?repo=suda) or [charts]

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

## Acknowledgements

* [`documentserver` chart](charts/documentserver) is based on [ONLYOFFICE chart/documentation](https://github.com/ONLYOFFICE/Kubernetes-Docs)

## License

[Apache 2.0 License](./LICENSE)
13 changes: 13 additions & 0 deletions charts/documentserver/Chart.yaml
@@ -0,0 +1,13 @@
apiVersion: v2
appVersion: 7.0.0
description: Helm chart for installing ONLYOFFICE Docs in Kubernetes
name: documentserver
version: 7.0.1
type: application
sources:
- https://github.com/suda/charts/tree/main/charts/documentserver
home: https://github.com/suda/charts/tree/main/charts/documentserver
maintainers:
- name: suda
email: admin@suda.pl
url: https://suda.pl
86 changes: 86 additions & 0 deletions charts/documentserver/README.md
@@ -0,0 +1,86 @@
# documentserver

![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)

Helm chart for installing ONLYOFFICE Docs in Kubernetes

**Homepage:** <https://github.com/suda/charts/tree/main/charts/documentserver>

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| suda | admin@suda.pl | https://suda.pl |

## Source Code

* <https://github.com/suda/charts/tree/main/charts/documentserver>

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| connections.amqpHost | string | `"rabbitmq"` | |
| connections.amqpPasswordSecret | string | `""` | |
| connections.amqpProto | string | `"amqp"` | |
| connections.amqpUser | string | `"user"` | |
| connections.dbHost | string | `"postgresql"` | |
| connections.dbPasswordSecret | string | `""` | |
| connections.dbPort | string | `"5432"` | |
| connections.dbUser | string | `"postgres"` | |
| connections.redisHost | string | `"redis-master"` | |
| converter.containerImage | string | `"onlyoffice/docs-converter-de:7.0.0.132"` | |
| converter.replicas | int | `1` | |
| converter.resources | object | `{}` | |
| docservice.containerImage | string | `"onlyoffice/docs-docservice-de:7.0.0.132"` | |
| docservice.livenessProbe.failureThreshold | int | `5` | |
| docservice.livenessProbe.httpGet.path | string | `"/index.html"` | |
| docservice.livenessProbe.httpGet.port | int | `8000` | |
| docservice.livenessProbe.periodSeconds | int | `10` | |
| docservice.livenessProbe.successThreshold | int | `1` | |
| docservice.livenessProbe.timeoutSeconds | int | `3` | |
| docservice.livenessProbeEnabled | bool | `false` | |
| docservice.readinessProbe.failureThreshold | int | `2` | |
| docservice.readinessProbe.httpGet.path | string | `"/index.html"` | |
| docservice.readinessProbe.httpGet.port | int | `8000` | |
| docservice.readinessProbe.periodSeconds | int | `10` | |
| docservice.readinessProbe.successThreshold | int | `1` | |
| docservice.readinessProbe.timeoutSeconds | int | `3` | |
| docservice.readinessProbeEnabled | bool | `false` | |
| docservice.replicas | int | `1` | |
| docservice.resources | object | `{}` | |
| docservice.startupProbe.failureThreshold | int | `30` | |
| docservice.startupProbe.httpGet.path | string | `"/index.html"` | |
| docservice.startupProbe.httpGet.port | int | `8000` | |
| docservice.startupProbe.periodSeconds | int | `10` | |
| docservice.startupProbeEnabled | bool | `false` | |
| example.containerImage | string | `"onlyoffice/docs-example:7.0.0.132"` | |
| example.enabled | bool | `false` | |
| grafana_ingress.enabled | bool | `false` | |
| ingress.enabled | bool | `false` | |
| ingress.ssl.enabled | bool | `false` | |
| ingress.ssl.host | string | `"example.com"` | |
| ingress.ssl.secret | string | `"tls"` | |
| jwt.enabled | bool | `true` | |
| jwt.secret | string | `"MYSECRET"` | |
| metrics.enabled | bool | `false` | |
| persistence.enabled | bool | `false` | |
| persistence.size | string | `"8Gi"` | |
| persistence.storageClass | string | `""` | |
| product.name | string | `"onlyoffice"` | |
| proxy.livenessProbe.failureThreshold | int | `3` | |
| proxy.livenessProbe.httpGet.path | string | `"/index.html"` | |
| proxy.livenessProbe.httpGet.port | int | `8888` | |
| proxy.livenessProbe.periodSeconds | int | `10` | |
| proxy.livenessProbe.successThreshold | int | `1` | |
| proxy.livenessProbe.timeoutSeconds | int | `3` | |
| proxy.livenessProbeEnabled | bool | `false` | |
| proxy.proxyContainerImage | string | `"onlyoffice/docs-proxy-de:7.0.0.132"` | |
| proxy.resources | object | `{}` | |
| proxy.startupProbe.failureThreshold | int | `30` | |
| proxy.startupProbe.httpGet.path | string | `"/index.html"` | |
| proxy.startupProbe.httpGet.port | int | `8888` | |
| proxy.startupProbe.periodSeconds | int | `10` | |
| proxy.startupProbeEnabled | bool | `false` | |
| service.port | int | `8888` | |
| service.type | string | `"ClusterIP"` | |
51 changes: 51 additions & 0 deletions charts/documentserver/jobs/prepare4shutdown.yaml
@@ -0,0 +1,51 @@
apiVersion: batch/v1
kind: Job
metadata:
name: prepare4shutdown
spec:
backoffLimit: 2
template:
spec:
volumes:
- name: ds-files
persistentVolumeClaim:
claimName: ds-files
- name: remove-db-scripts
configMap:
name: remove-db-scripts
- name: init-db-scripts
configMap:
name: init-db-scripts
- name: stop-scripts
configMap:
name: stop-ds
defaultMode: 0755
containers:
- name: prepare4shutdown
image: postgres
envFrom:
- configMapRef:
name: documentserver
env:
- name: DB_PWD
valueFrom:
secretKeyRef:
name: postgresql
key: postgresql-password
- name: PRODUCT_NAME
value: ${PRODUCT_NAME}
volumeMounts:
- name: ds-files
mountPath: /var/lib/${PRODUCT_NAME}/documentserver/App_Data/cache/files
- name: remove-db-scripts
mountPath: /sql/removetbl.sql
subPath: removetbl.sql
- name: init-db-scripts
mountPath: /sql/createdb.sql
subPath: createdb.sql
- name: stop-scripts
mountPath: /sql/stop.sh
subPath: stop.sh
command: ["/bin/sh", "-c"]
args: ["/sql/stop.sh"]
restartPolicy: Never
51 changes: 51 additions & 0 deletions charts/documentserver/jobs/prepare4update.yaml
@@ -0,0 +1,51 @@
apiVersion: batch/v1
kind: Job
metadata:
name: prepare4update
spec:
backoffLimit: 2
template:
spec:
volumes:
- name: ds-files
persistentVolumeClaim:
claimName: ds-files
- name: remove-db-scripts
configMap:
name: remove-db-scripts
- name: init-db-scripts
configMap:
name: init-db-scripts
- name: stop-scripts
configMap:
name: stop-ds
defaultMode: 0755
containers:
- name: prepare4update
image: postgres
envFrom:
- configMapRef:
name: documentserver
env:
- name: DB_PWD
valueFrom:
secretKeyRef:
name: postgresql
key: postgresql-password
- name: PRODUCT_NAME
value: ${PRODUCT_NAME}
volumeMounts:
- name: ds-files
mountPath: /var/lib/${PRODUCT_NAME}/documentserver/App_Data/cache/files
- name: remove-db-scripts
mountPath: /sql/removetbl.sql
subPath: removetbl.sql
- name: init-db-scripts
mountPath: /sql/createdb.sql
subPath: createdb.sql
- name: stop-scripts
mountPath: /sql/stop.sh
subPath: stop.sh
command: ["/bin/sh", "-c"]
args: ["/sql/stop.sh"]
restartPolicy: Never
5 changes: 5 additions & 0 deletions charts/documentserver/sources/extraScrapeConfigs.yaml
@@ -0,0 +1,5 @@
- job_name: 'statsd'
scrape_interval: 30s
static_configs:
- targets:
- statsd-exporter-prometheus-statsd-exporter:9102
10 changes: 10 additions & 0 deletions charts/documentserver/sources/ingress_values.yaml
@@ -0,0 +1,10 @@
controller:
publishService:
enabled: true
replicaCount: 2
metrics:
enabled: true
service:
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '10254'
1 change: 1 addition & 0 deletions charts/documentserver/sources/license/README.md
@@ -0,0 +1 @@
Сopy the license file here

0 comments on commit 0050950

Please sign in to comment.