Loop Enterprise Stack
⚠️ This chart is not compatible with the previous loop chart and should not be used to upgrade the previous chart. All data can be lost
⚠️ **The default values for minio and postgres are specified in the chart, they must be changed by you.
⚠️ **Этот chart несовместим с предыдущим loop chart, и не должн использоваться для обновления предыдущей версии loop chart. Все данные могут быть потеряны
⚠️ **В chart указаны значения для minio и postgres по умолчанию, они должны быть изменены вами
This chart deploys Loop Enterprise Edition, Postgresql and Minio. It is subject to changes. To use external Postgresql and S3 resources deploy the Loop Enterprise Edition chart.
1. Prerequisites
1.1 Kubernetes Cluster
You need a running Kubernetes cluster v1.8+. If you do not have one, find options and installation instructions here:
https://kubernetes.io/docs/setup/pick-right-solution/
1.2 Helm
See: https://docs.helm.sh/using_helm/#quickstart
We recommend installing Helm v2.13.1 or later.
Once Helm is installed and initialized, run the following:
helm repo add loop https://artifacts.wilix.dev/repository/helm-loop
1.3 Ingress
To expose the application outside of your network, configure an ingress if your Kubernetes cluster doesn't already have one.
We suggest using nginx-ingress, which we use internally at Loop.
To install nginx-ingress in your Kubernetes cluster, follow the official installation documentation. You may also use the helm charts directly.
To get the nginx cache to work, adjust the ConfigMap and Deployment from the above instructions.
1.4 Certificate Manager
If you do not want to manually add SSL/TLS certificates, install cert-manager. You can follow this documentation or install the helm charts.
To run with HTTPS you will need to add a Kubernetes secret for your SSL/TLS certificate, whether you use cert-manager or not.
2. Configuration
2.1 Required Settings
At minimum the following settings must be updated:
global.siteURL
- set this to the URL your users will use to access Loop, e.g.https://loop.example.com
global.loopLicense
- set this to the contents of your license file or provide an existing secret.global.existingLicenseSecret.name
global.existingLicenseSecret.key
- Database Configuration
- Object Storage Configuration
Without these settings, Loop will not run correctly.
2.2 Application Version
To set the Loop application version, update:
loopApp.image.tag
- set this to the Loop server version you wish to install (e.g.7.10.2
)
2.3 Ingress
If you are using nginx-ingress, set the following under loopApp
:
ingress:
enabled: true
hosts:
- loop.example.com
where loop.example.com
is your domain name and matches global.siteURL
.
2.3.1 HTTPS
To run with HTTPS, add an SSL/TLS certificate as a secret to your Kubernetes cluster, either manually or using cert-manager.
Set the following under loopApp
to enable HTTPS:
ingress:
enabled: true
hosts:
- loop.example.com
tls:
- secretName: your-tls-secret-name
hosts:
- loop.example.com
2.3.2 DNS
To route users from your domain name to your Loop installation, point your domain name at the external IP or domain that your ingress exposes.
Depending on the DNS service and Ingress you're using, the steps can vary. If you are using nginx-ingress, you would do something like this:
- Run
kubectl describe svc your-nginx-ingress-controller
- Replace
your-nginx-ingress-controller
with the name of your ingress controller service
- Replace
- Copy the domain name beside
LoadBalancer Ingress:
- On your DNS service, create a CNAME record pointing from the domain you'd like to use to the domain name you just copied
- Save, and wait 10-15 minutes for the DNS change to propagate
2.4 Database and Object Storage
2.4.1 Database
We use the Bitnami Postgresql chart.
We recommend updating the following settings:
postgresql.global.postgresql.auth.password
postgresql.global.postgresql.auth.user
postgresql.global.postgresql.auth.database
2.4.2 Storage
We use Minio for file storage.
We recommend updating the following settings:
loop-minio.accessKey
loop-minio.secretKey
loop-minio.defaultBuckets
loop-minio.provisioning.users
2.5 Push Notifications
By default push notifications are enabled using HPNS.
2.5.1
Settings for pushproxy
3. Install
After adding the Loop repo (see section 1.2) you can install a version of the preferred chart by running:
$ helm repo add loop https://artifacts.wilix.dev/repository/helm-loop
$ helm install <name> loop/loop-enterprise-stack --version <version_number>
For example:
$ helm repo add loop https://artifacts.wilix.dev/repository/helm-loop
$ helm install <name> loop/loop-enterprise-stack --version v0.8.2
If no Helm Chart version is specified the latest version will be installed.
To run with your custom config.yaml
, install using:
$ helm install -f config.yaml loop/loop-enterprise-stack
To upgrade an existing release, modify the config.yaml
with your desired changes and then use:
$ helm upgrade -f config.yaml <your-release-name> loop/loop-enterprise-stack
3.1 Uninstalling Loop Enterprise Helm Chart
If you are done with your deployment and want to delete it, use helm delete <your-release-name>
. If you don't know the name of your release, use helm ls
to find it.
[RU Русская версия]
Loop Enterprise Stack
Данный чарт разворачивает Loop Enterprise Edition, Postgresql и Minio.
1. Предварительные требования
1.1 Кластер Kubernetes
Необходим работающий кластер Kubernetes версии v1.8+. Если у вас его нет, ознакомьтесь с доступными вариантами и инструкцией по установке здесь:
https://kubernetes.io/docs/setup/pick-right-solution/
1.2 Helm
См.: https://docs.helm.sh/using_helm/#quickstart
Рекомендуется установить Helm версии v2.13.1 или новее.
После установки и инициализации Helm выполните следующую команду:
helm repo add loop https://artifacts.wilix.dev/repository/helm-loop
1.3 Ingress
Чтобы опубликовать приложение вне вашей локальной сети, настройте ingress, если в вашем кластере Kubernetes он ещё не настроен.
Рекомендуем использовать nginx-ingress, который мы используем внутри Loop.
Чтобы установить nginx-ingress в кластер Kubernetes, следуйте официальной документации по установке. Также можно использовать чарты Helm.
Чтобы nginx-кеш работал корректно, отредактируйте ConfigMap и Deployment согласно вышеуказанной инструкции.
1.4 Менеджер сертификатов
Если вы не хотите вручную добавлять SSL/TLS сертификаты, установите cert-manager. Вы можете следовать этой документации или установить чарты Helm.
Для запуска через HTTPS потребуется добавить Kubernetes-секрет с SSL/TLS сертификатом, независимо от того, используете ли вы cert-manager или нет.
2. Конфигурация
2.1 Обязательные настройки
-
global.siteURL
— установите в адрес, по которому пользователи будут получать доступ к Loop, например:https://loop.example.com
-
global.loopLicense
— укажите содержимое лицензионного файла или задайте существующий Kubernetes-секрет с ключом:global.existingLicenseSecret.name
иglobal.existingLicenseSecret.key
-
Конфигурация базы данных — необходимо настроить подключение к PostgreSQL.
-
Конфигурация объектного хранилища — нужно подключить MinIO или другое совместимое S3-хранилище.
Без этих параметров Loop не будет работать корректно
2.2 Версия приложения
Чтобы указать версию Loop, установите:
loopApp.image.tag
— укажите версию Loop-сервера, которую хотите установить (например:7.10.2
)
2.3 Ingress
Если вы используете nginx-ingress, настройте следующее внутри loopApp
:
ingress:
enabled: true
hosts:
- loop.example.com
где loop.example.com
— это ваше доменное имя, совпадающее с global.siteURL
.
2.3.1 HTTPS
Для работы по HTTPS добавьте SSL/TLS сертификат в виде секрета в кластер Kubernetes вручную или с помощью cert-manager.
Чтобы включить HTTPS, укажите следующее в loopApp
:
ingress:
enabled: true
hosts:
- loop.example.com
tls:
- secretName: your-tls-secret-name
hosts:
- loop.example.com
2.3.2 DNS
Чтобы направить пользователей с вашего домена на установку Loop, укажите домен на внешний IP или имя хоста, которое предоставляет ваш ingress.
В зависимости от используемого DNS-сервиса и Ingress-контроллера шаги могут отличаться. Если вы используете nginx-ingress, выполните следующее:
-
Выполните
kubectl describe svc your-nginx-ingress-controller
- Замените
your-nginx-ingress-controller
на имя сервиса вашего ingress-контроллера
- Замените
-
Скопируйте имя хоста, указанное рядом с
LoadBalancer Ingress:
-
В DNS-сервисе создайте CNAME-запись, указывающую с вашего домена на скопированное имя хоста
-
Сохраните изменения и подождите 10–15 минут, пока DNS-изменения вступят в силу
2.4 База данных и хранилище объектов
2.4.1 База данных
Мы используем чарт Bitnami Postgresql.
Рекомендуется обновить следующие параметры:
postgresql.global.postgresql.auth.password
postgresql.global.postgresql.auth.user
postgresql.global.postgresql.auth.database
2.4.2 Хранилище
Для хранения файлов используется Minio.
Рекомендуется обновить следующие параметры:
loop-minio.accessKey
loop-minio.secretKey
loop-minio.defaultBuckets
loop-minio.provisioning.users
2.5 Push-уведомления
По умолчанию push-уведомления включены и используют HPNS.
3. Установка
После добавления репозитория Loop (см. раздел 1.2), установите нужную версию чарта с помощью команды:
$ helm repo add loop https://artifacts.wilix.dev/repository/helm-loop
$ helm install <name> loop/loop-enterprise-stack --version <version_number>
Пример:
$ helm repo add loop https://artifacts.wilix.dev/repository/helm-loop
$ helm install <name> loop/loop-enterprise-stack --version v0.8.2
Если версия чарта не указана, будет установлена последняя доступная.
Чтобы установить с пользовательским config.yaml
, выполните:
$ helm install -f config.yaml loop/loop-enterprise-stack
Для обновления существующего релиза измените config.yaml
и выполните:
$ helm upgrade -f config.yaml <your-release-name> loop/loop-enterprise-stack
3.1 Удаление Helm-чарта Loop Enterprise
Если вы завершили работу с loop и хотите удалить инстанс, выполните helm delete <your-release-name>
. Если вы не знаете имя релиза, используйте helm ls
для его поиска.