-
Notifications
You must be signed in to change notification settings - Fork 26
Simplest script for DigitalOcean k8s http
Pavel Lobashov edited this page Nov 25, 2020
·
8 revisions
All REAMDE commands in one place, from this version of project https://github.com/ONLYOFFICE/kube-documentserver/commit/4ce2b1ebe91a6cdef9afce0c9fc6240fb0903c92
#!/bin/bash
helm install nfs-server stable/nfs-server-provisioner \
--set persistence.enabled=true \
--set persistence.storageClass=do-block-storage \
--set persistence.size=20Gi
kubectl apply -f ./pvc/ds-files.yaml
sleep 60
kubectl get pvc ds-files
# Should see bound message
helm install rabbitmq stable/rabbitmq
helm install redis stable/redis \
--set cluster.enabled=false \
--set usePassword=false
wget https://raw.githubusercontent.com/ONLYOFFICE/server/master/schema/postgresql/createdb.sql
kubectl create configmap init-db-scripts \
--from-file=./createdb.sql
helm install postgresql stable/postgresql \
--set initdbScriptsConfigMap=init-db-scripts \
--set postgresqlDatabase=postgres \
--set persistence.size=8Gi
kubectl apply -f ./configmaps/statsd.yaml
kubectl apply -f ./pods/statsd.yaml
kubectl apply -f ./services/statsd.yaml
vim ./configmaps/documentserver.yaml # METRICS_ENABLED: "true"
kubectl create secret generic license
kubectl apply -f ./configmaps/documentserver.yaml
kubectl create secret generic jwt \
--from-literal=JWT_ENABLED=true \
--from-literal=JWT_SECRET=jwtsecret
kubectl apply -f ./deployments/spellchecker.yaml
sleep 60
kubectl get deployment spellchecker
# wait to show READY 2/2
kubectl apply -f ./services/spellchecker.yaml
kubectl apply -f ./services/example.yaml
kubectl apply -f ./services/docservice.yaml
kubectl apply -f ./deployments/docservice.yaml
kubectl get deployment docservice
# wait to show READY 2/2
kubectl apply -f ./deployments/converter.yaml
kubectl get deployment converter
# wait to show READY 2/2
kubectl apply -f ./configmaps/example.yaml
kubectl apply -f ./pods/example.yaml
kubectl apply -f ./services/documentserver-lb.yaml
kubectl get service documentserver -o jsonpath="{.status.loadBalancer.ingress[*].hostname}"
# wait until some ip is shown and open it