summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduard Ardeleanu <eduard-andrei.ardeleanu@1and1.ro>2019-12-16 15:04:03 +0200
committerMichael Meeks <michael.meeks@collabora.com>2019-12-16 14:12:56 +0100
commit599919abd08050bf514dbd212fb7f5b3e7dc659e (patch)
tree51cc51851d067574f1c719479652604d805e9534
parentd0fee8c6addf0cb8d3e0680af303e519c612ed2c (diff)
kubernetes: libreoffice-online helm chart improvements
* switch monitoring path to REST endpoint for admin metrics * update service type to ClusterIP from NodePort * adding environment variables for deployment customization * switch /tmp folder mapping from memory to disk Change-Id: I78dab256343c20bf84060bb4fbae203d4769be35 Reviewed-on: https://gerrit.libreoffice.org/85217 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
-rw-r--r--kubernetes/helm/README.md21
-rw-r--r--kubernetes/helm/libreoffice-online/templates/deployment.yaml7
-rw-r--r--kubernetes/helm/libreoffice-online/templates/service.yaml1
-rw-r--r--kubernetes/helm/libreoffice-online/values.yaml23
4 files changed, 32 insertions, 20 deletions
diff --git a/kubernetes/helm/README.md b/kubernetes/helm/README.md
index d038dbe38..3088c1fd7 100644
--- a/kubernetes/helm/README.md
+++ b/kubernetes/helm/README.md
@@ -1,11 +1,20 @@
-# OnlineOffice Helm-Charts
+# LibreOffice Online Helm Chart
-# Available Charts
+Chart for deploying LibreOffice Online in Kubernetes cluster.</br>
+
+How to test:
+ 1. Install Kubernetes cluster locally - minikube - https://minikube.sigs.k8s.io/docs/start/linux/
+ 2. Install helm - needed version >= 3.0.0 - https://helm.sh/docs/intro/install/
+ 3. Update libreoffice-online/values.yaml with your required settings for environmentVariablesLool
+ username/password/domain settings
+ 4. Install helm-chart using below command
-## LibreOffice-Online
-Chart for deploying C++ application [LibreOffice Online] in Kubernetes cluster.</br>
-To install the chart a command similar to the one above needs to be issued.</br>
```
-.. cd helm-charts
helm install --namespace=${your desired namespace} --generate-name libreoffice-online
```
+
+Access LibreOffice Online locally through service ClusterIP and port 9980.
+
+```
+kubectl -n ${your desired namespace} describe service libreoffice-online
+``` \ No newline at end of file
diff --git a/kubernetes/helm/libreoffice-online/templates/deployment.yaml b/kubernetes/helm/libreoffice-online/templates/deployment.yaml
index f0e600c68..390d8a995 100644
--- a/kubernetes/helm/libreoffice-online/templates/deployment.yaml
+++ b/kubernetes/helm/libreoffice-online/templates/deployment.yaml
@@ -27,7 +27,6 @@ spec:
app: {{ template "name" . }}
release: {{ .Release.Name }}
version: "{{ .Values.global.app.version }}"
- exposed: "true"
annotations:
{{- if .Values.global.app.monitoring.activate }}
prometheus.io/scrape: "true"
@@ -43,9 +42,6 @@ spec:
- containerPort: {{ .Values.global.app.service.internalPort }}
securityContext:
readOnlyRootFilesystem: false
- runAsNonRoot: true
- #Lool user id
- runAsUser: 101
{{- if .Values.probes.liveness.activate }}
livenessProbe:
httpGet:
@@ -85,5 +81,4 @@ spec:
{{- end }}
volumes:
- name: tmp
- emptyDir:
- medium: "Memory" \ No newline at end of file
+ emptyDir: {} \ No newline at end of file
diff --git a/kubernetes/helm/libreoffice-online/templates/service.yaml b/kubernetes/helm/libreoffice-online/templates/service.yaml
index 29498c904..c3e8f9879 100644
--- a/kubernetes/helm/libreoffice-online/templates/service.yaml
+++ b/kubernetes/helm/libreoffice-online/templates/service.yaml
@@ -8,7 +8,6 @@ metadata:
release: {{ .Release.Name }}
spec:
type: {{ .Values.global.app.service.type }}
- externalTrafficPolicy: Local
ports:
- port: {{ .Values.global.app.service.externalPort }}
targetPort: {{ .Values.global.app.service.internalPort }}
diff --git a/kubernetes/helm/libreoffice-online/values.yaml b/kubernetes/helm/libreoffice-online/values.yaml
index f464d62ac..f12c09c6f 100644
--- a/kubernetes/helm/libreoffice-online/values.yaml
+++ b/kubernetes/helm/libreoffice-online/values.yaml
@@ -4,6 +4,7 @@
global:
app:
name: libreoffice-online
+ version: 6.5.0
urlScheme: HTTP # either HTTP or HTTPS
scaling:
enabled: true
@@ -11,14 +12,14 @@ global:
max: 10
target:
cpu: 70
- memory: 70
+ memory: 70
monitoring:
activate: false
port: 9980
- path: "/lool/adminMonitorInfo"
+ path: "/lool/getMetrics"
service:
name: libreoffice-online
- type: NodePort
+ type: ClusterIP
externalPort: 9980
internalPort: 9980
ingress: {}
@@ -35,7 +36,7 @@ probes:
readiness:
activate: true
path: /
- initialDelaySeconds: 60
+ initialDelaySeconds: 180
periodSeconds: 10
timeoutSeconds: 30
successThreshold: 1
@@ -43,7 +44,7 @@ probes:
liveness:
activate: true
path: /
- initialDelaySeconds: 60
+ initialDelaySeconds: 180
periodSeconds: 10
timeoutSeconds: 30
successThreshold: 1
@@ -53,10 +54,18 @@ deployment:
name: libreoffice-online
type: RollingUpdate
minReadySeconds: 0
- maxUnavailable: 1
+ maxUnavailable: 0
maxSurge: 1
-environmentVariablesLool: {}
+environmentVariablesLool:
+ - name: extra_params
+ value: --o:ssl.enable=false
+ - name: username
+ value:
+ - name: password
+ value:
+ - name: domain
+ value:
service:
name: libreoffice-online