Compare commits
No commits in common. "2.0.0" and "main" have entirely different histories.
29
README.md
29
README.md
@ -1,14 +1,5 @@
|
|||||||
# Yonote Helm Chart
|
# Yonote Helm Chart
|
||||||
|
|
||||||
**Критическое изменение**
|
|
||||||
|
|
||||||
Данный чарт предназначен только для новых развертываний!
|
|
||||||
|
|
||||||
Версия 2.x.x не совместима с предыдущими версиями 1.x.x данного чарта. Если вы попытаетесь использовать этот чарт для обновления существующего развертывания Yonote, это приведет к потере данных.
|
|
||||||
|
|
||||||
Руководство по миграции будет предоставлено в ближайшее время.
|
|
||||||
|
|
||||||
|
|
||||||
## Обзор
|
## Обзор
|
||||||
|
|
||||||
Этот Helm chart позволяет развернуть **Yonote** в Kubernetes. Он предоставляет быстрый и простой способ установки, настройки и управления приложением с помощью Helm.
|
Этот Helm chart позволяет развернуть **Yonote** в Kubernetes. Он предоставляет быстрый и простой способ установки, настройки и управления приложением с помощью Helm.
|
||||||
@ -57,26 +48,6 @@ helm install app -f values.yaml -f secret-values.yaml -n yonote-onprem .
|
|||||||
```
|
```
|
||||||
После выполнения команды начнётся установка приложения и всех дополнительных сервисов к нему. Остаётся только подождать, пока все сервисы запустятся.
|
После выполнения команды начнётся установка приложения и всех дополнительных сервисов к нему. Остаётся только подождать, пока все сервисы запустятся.
|
||||||
|
|
||||||
### 5. Keycloak
|
|
||||||
|
|
||||||
Перед первым входом в Yonote необходимо обновить поле **Valid redirect URIs** клиента yonote в области (realm) Yonote в системе Keycloak.
|
|
||||||
|
|
||||||
Уже существуют две записи, поэтому достаточно просто скопировать их и отредактировать.
|
|
||||||
|
|
||||||
Например:
|
|
||||||
|
|
||||||
Существующие записи:
|
|
||||||
* http://example.com/*
|
|
||||||
* https://example.com/*
|
|
||||||
|
|
||||||
Добавить следующие:
|
|
||||||
* http://app.example.com/*
|
|
||||||
* https://app.example.com/*
|
|
||||||
* https://app.example.com/auth/oidc.callback/*
|
|
||||||
* https://team.example.com/*
|
|
||||||
|
|
||||||
Примечание: символы * в URL-адресах являются подстановочными знаками и обозначают любые дополнительные пути после указанного базового URL.
|
|
||||||
|
|
||||||
### Обратная связь
|
### Обратная связь
|
||||||
|
|
||||||
Если у вас есть вопросы или вам нужна помощь, пишите на email: hello@yonote.ru
|
Если у вас есть вопросы или вам нужна помощь, пишите на email: hello@yonote.ru
|
||||||
@ -14,17 +14,17 @@ dependencies:
|
|||||||
- name: app
|
- name: app
|
||||||
repository: https://dysnix.github.io/charts
|
repository: https://dysnix.github.io/charts
|
||||||
version: 0.3.15
|
version: 0.3.15
|
||||||
- name: postgres
|
- name: postgresql
|
||||||
repository: https://groundhog2k.github.io/helm-charts/
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 0.3.9
|
version: 11.6.6
|
||||||
- name: redis
|
- name: redis
|
||||||
repository: https://groundhog2k.github.io/helm-charts/
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 0.7.0
|
version: 16.12.1
|
||||||
- name: minio
|
- name: minio
|
||||||
repository: https://charts.min.io/
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 5.4.0
|
version: 12.7.0
|
||||||
- name: keycloakx
|
- name: keycloak
|
||||||
repository: https://codecentric.github.io/helm-charts
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 1.3.2
|
version: 14.0.0
|
||||||
digest: sha256:ad0128ad6d526a8946d659481ec5dc19d1faf785919efbcc689a37ae80bc820e
|
digest: sha256:928723e189de54fafe19316743b8f9d08d7c74f9728b0c4afb1f5cd3ee1e83dc
|
||||||
generated: "2025-10-30T14:17:59.001901626+03:00"
|
generated: "2024-08-25T00:46:01.648512702+03:00"
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: yonote-chart
|
name: yonote-chart
|
||||||
version: 2.0.0
|
version: 1.2.0
|
||||||
description:
|
description:
|
||||||
Generic application Helm chart.
|
Generic application Helm chart.
|
||||||
This chart includes multiple dependencies. The base of this chart is derived from the Dysnix app chart.
|
This chart includes multiple dependencies. The base of this chart is derived from the Dynix app chart.
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Dysnix
|
- name: Dysnix
|
||||||
email: support@dysnix.com
|
email: support@dysnix.com
|
||||||
@ -29,32 +29,32 @@ dependencies:
|
|||||||
version: "0.3.15"
|
version: "0.3.15"
|
||||||
repository: https://dysnix.github.io/charts
|
repository: https://dysnix.github.io/charts
|
||||||
alias: yonote-worker
|
alias: yonote-worker
|
||||||
|
|
||||||
- name: app
|
- name: app
|
||||||
version: "0.3.15"
|
version: "0.3.15"
|
||||||
repository: https://dysnix.github.io/charts
|
repository: https://dysnix.github.io/charts
|
||||||
alias: yonote-collaboration
|
alias: yonote-collaboration
|
||||||
|
|
||||||
- name: postgres
|
- name: postgresql
|
||||||
version: "0.3.9"
|
version: "11.6.6"
|
||||||
repository: https://groundhog2k.github.io/helm-charts/
|
repository: https://charts.bitnami.com/bitnami
|
||||||
condition: postgres.enabled
|
condition: yonoteDatabase.enabled
|
||||||
alias: postgres
|
alias: yonoteDatabase
|
||||||
|
|
||||||
- name: redis
|
- name: redis
|
||||||
version: "0.7.0"
|
version: "16.12.1"
|
||||||
repository: https://groundhog2k.github.io/helm-charts/
|
repository: https://charts.bitnami.com/bitnami
|
||||||
condition: redis.enabled
|
condition: yonote-redis.enabled
|
||||||
alias: redis
|
alias: yonote-redis
|
||||||
|
|
||||||
- name: minio
|
- name: minio
|
||||||
version: "5.4.0"
|
version: "12.7.0"
|
||||||
repository: https://charts.min.io/
|
repository: https://charts.bitnami.com/bitnami
|
||||||
condition: minio.enabled
|
condition: minio.enabled
|
||||||
alias: minio
|
alias: minio
|
||||||
|
|
||||||
- name: keycloakx
|
- name: keycloak
|
||||||
version: "1.3.2"
|
version: "14.0.0"
|
||||||
repository: https://codecentric.github.io/helm-charts
|
repository: https://charts.bitnami.com/bitnami
|
||||||
condition: keycloak.enabled
|
condition: keycloak.enabled
|
||||||
alias: keycloak
|
alias: keycloak
|
||||||
@ -3,43 +3,41 @@ global:
|
|||||||
config:
|
config:
|
||||||
secret:
|
secret:
|
||||||
stringData:
|
stringData:
|
||||||
DATABASE_URL: 'postgres://{{ .Values.postgres.userDatabase.user }}:{{ .Values.postgres.userDatabase.password }}@yonote-database:5432/{{ .Values.postgres.userDatabase.name }}'
|
DATABASE_URL: 'postgres://{{ .Values.yonoteDatabase.global.postgresql.auth.username }}:{{ .Values.yonoteDatabase.global.postgresql.auth.password }}@yonote-database:5432/{{ .Values.yonoteDatabase.global.postgresql.auth.database }}'
|
||||||
POSTGRES_PASSWORD: "{{ .Values.postgres.userDatabase.password }}"
|
POSTGRES_PASSWORD: "{{ .Values.yonoteDatabase.global.postgresql.auth.password }}"
|
||||||
AWS_ACCESS_KEY_ID: "qwer12314q" # Ваш идентификатор ключа доступа к AWS.
|
AWS_ACCESS_KEY_ID: "{{ .Values.minio.customUser }}" # Ваш идентификатор ключа доступа к AWS.
|
||||||
AWS_SECRET_ACCESS_KEY: "qwer-12314q-qwersa" # Ваш секретный ключ доступа AWS.
|
AWS_SECRET_ACCESS_KEY: "{{ .Values.minio.customAccessKey }}" # Ваш секретный ключ доступа AWS.
|
||||||
OIDC_CLIENT_SECRET: "{{ .Values.keycloak.secrets.secrets.stringData.OIDC_CLIENT_SECRET }}" # Секретный ключ клиента для аутентификации по OpenID Connect (OIDC).
|
OIDC_CLIENT_SECRET: "Kdq8rk5Pv5RW1c5kHXpnyfrmMRzI9xSD" # Секретный ключ клиента для аутентификации по OpenID Connect (OIDC).
|
||||||
SECRET_KEY: "659a8881b186198c3146e316f6dab67df25496534d1fa156d624b037260df688" # Сгенерируйте 32-байтовый случайный ключ в шестнадцатеричном коде. Вам следует использовать `openssl rand -hex 32` в вашем терминале для генерации случайного значения.
|
SECRET_KEY: "659a8881b186198c3146e316f6dab67df25496534d1fa156d624b037260df688" # Сгенерируйте 32-байтовый случайный ключ в шестнадцатеричном коде. Вам следует использовать `openssl rand -hex 32` в вашем терминале для генерации случайного значения.
|
||||||
SMTP_PASSWORD: "1234"
|
SMTP_PASSWORD: "1234"
|
||||||
UTILS_SECRET: "7bd5e9ac4415dd0dbf6b7721e2a21e9427b268cd0140c7516d13dece5024d479" # Сгенерируйте уникальный случайный ключ. Формат не важен, но вы все равно можете использовать`openssl rand -hex 32` в вашем терминале, чтобы создать это.
|
UTILS_SECRET: "7bd5e9ac4415dd0dbf6b7721e2a21e9427b268cd0140c7516d13dece5024d479" # Сгенерируйте уникальный случайный ключ. Формат не важен, но вы все равно можете использовать`openssl rand -hex 32` в вашем терминале, чтобы создать это.
|
||||||
TELEGRAM_BOT_TOKEN: "1234"
|
TELEGRAM_BOT_TOKEN: "1234"
|
||||||
UNSPLASH_API_ACCESS_KEY: "a-yGo6HpRP6jNfravx4Bz-oiPrRnH_5-24Xa9ZPlePE"
|
UNSPLASH_API_ACCESS_KEY: "a-yGo6HpRP6jNfravx4Bz-oiPrRnH_5-24Xa9ZPlePE"
|
||||||
LICENSE_KEY: "" # Обратитесь в отдел продаж для получения
|
LICENSE_KEY: "qwerty-123456-zxcvb" # Обратитесь в отдел продаж для получения
|
||||||
SERVICE_WORKER_PUBLIC_KEY: "1234"
|
SERVICE_WORKER_PUBLIC_KEY: "1234"
|
||||||
SERVICE_WORKER_PRIVATE_KEY: "1234"
|
SERVICE_WORKER_PRIVATE_KEY: "1234"
|
||||||
# Генерация ключей (web-push) Service Worker
|
# Генерация ключей (web-push) Service Worker
|
||||||
# 1) Установить Node.js и npm
|
# 1) Установить Node.js и npm
|
||||||
# 2) Выполнить команду для генерации ключей
|
# 2) Выполнить команду для генерации ключей
|
||||||
# npx web-push generate-vapid-keys
|
# npx web-push generate-vapid-keys
|
||||||
# 3) Полученные значения ввести в .env файл (SERVICE_WORKER_PUBLIC_KEY, SERVICE_WORKER_PRIVATE_KEY)
|
# 3) Полученные значения ввести в .env файл (SERVICE_WORKER_PUBLIC_KEY, SERVICE_WORKER_PRIVATE_KEY)
|
||||||
|
|
||||||
|
yonoteDatabase:
|
||||||
|
global:
|
||||||
|
postgresql:
|
||||||
|
auth:
|
||||||
|
password: "wsGZ6kXhr5"
|
||||||
|
postgresPassword: "QQYw4UjOU"
|
||||||
|
|
||||||
postgres:
|
# yonote-redis: # Если используете auth для redis
|
||||||
settings:
|
# auth:
|
||||||
superuserPassword: "QQYw4UjOU"
|
# password: "12345678"
|
||||||
userDatabase:
|
|
||||||
password: "wsGZ6kXhr5"
|
|
||||||
|
|
||||||
redis:
|
|
||||||
args:
|
|
||||||
- "--user redis:redis"
|
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
rootPassword: "qwettaas"
|
customAccessKey: "qwer-12314q-qwersa"
|
||||||
|
auth:
|
||||||
|
rootPassword: "qwettaas"
|
||||||
|
|
||||||
keycloak:
|
keycloak:
|
||||||
database:
|
auth:
|
||||||
password: keycloakdbpassword
|
adminPassword: "root"
|
||||||
secrets:
|
|
||||||
secrets:
|
|
||||||
stringData:
|
|
||||||
KEYCLOAK_ADMIN_PASSWORD: secret
|
|
||||||
OIDC_CLIENT_SECRET: "iS3jOA3Z7zXBwSN8EzJm36ybz57JNgpR"
|
|
||||||
@ -3,12 +3,5 @@ kind: ConfigMap
|
|||||||
metadata:
|
metadata:
|
||||||
name: postgres-init-scripts
|
name: postgres-init-scripts
|
||||||
data:
|
data:
|
||||||
init-keycloak-db.sh: |
|
init.sql: |
|
||||||
!/bin/bash
|
CREATE DATABASE "{{ .Values.keycloak.externalDatabase.database }}";
|
||||||
set -e
|
|
||||||
|
|
||||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
|
||||||
CREATE DATABASE {{ .Values.keycloak.database.database }};
|
|
||||||
CREATE USER {{ .Values.keycloak.database.username }} WITH PASSWORD '{{ .Values.keycloak.database.password }}';
|
|
||||||
GRANT ALL PRIVILEGES ON DATABASE keycloak TO {{ .Values.keycloak.database.username }};
|
|
||||||
EOSQL
|
|
||||||
@ -13,22 +13,54 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: mc-client
|
- name: mc-client
|
||||||
image: "minio/mc:RELEASE.2025-01-17T23-25-50Z"
|
image: "docker.io/bitnami/minio-client:2024.8.13-debian-12-r0"
|
||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
until mc alias set myminio http://yonote-minio:9000 {{ .Values.minio.rootUser }} {{ .Values.minio.rootPassword }}; do
|
until mc alias set myminio http://yonote-minio:9000 {{ .Values.minio.auth.rootUser }} {{ .Values.minio.auth.rootPassword }}; do
|
||||||
echo "Waiting for MinIO to be ready..."
|
echo "Waiting for MinIO to be ready..."
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
echo "MinIO is ready and alias is set."
|
echo "MinIO is ready and alias is set."
|
||||||
|
|
||||||
# Создание бакета
|
# Создание пользователя
|
||||||
if ! mc ls myminio/{{ .Values.global.yonote.config.plain.data.AWS_S3_UPLOAD_BUCKET_NAME }}; then
|
if ! mc admin user add myminio {{ .Values.minio.customUser }} {{ .Values.minio.customAccessKey }}; then
|
||||||
mc mb myminio/{{ .Values.global.yonote.config.plain.data.AWS_S3_UPLOAD_BUCKET_NAME }}
|
echo "User {{ .Values.minio.customUser }} already exists or failed to create."
|
||||||
echo "Bucket {{ .Values.global.yonote.config.plain.data.AWS_S3_UPLOAD_BUCKET_NAME }} created successfully."
|
|
||||||
else
|
else
|
||||||
echo "Bucket {{ .Values.global.yonote.config.plain.data.AWS_S3_UPLOAD_BUCKET_NAME }} already exists."
|
echo "User {{ .Values.minio.customUser }} created successfully."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Назначение политики для нового пользователя
|
||||||
|
cat <<EOF > /tmp/minio-user-policy.json
|
||||||
|
{
|
||||||
|
"Version": "2012-10-17",
|
||||||
|
"Statement": [
|
||||||
|
{
|
||||||
|
"Sid": "VisualEditor",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Action": [
|
||||||
|
"s3:DeleteObject",
|
||||||
|
"s3:GetObject",
|
||||||
|
"s3:PutObject"
|
||||||
|
],
|
||||||
|
"Resource": [
|
||||||
|
"arn:aws:s3:::yonote-bucket/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
echo "User policy JSON file created."
|
||||||
|
|
||||||
|
mc admin policy create myminio yonote-policy /tmp/minio-user-policy.json
|
||||||
|
echo "User policy created and applied."
|
||||||
|
|
||||||
|
# Создание бакета
|
||||||
|
if ! mc ls myminio/yonote-bucket; then
|
||||||
|
mc mb myminio/yonote-bucket
|
||||||
|
echo "Bucket yonote-bucket created successfully."
|
||||||
|
else
|
||||||
|
echo "Bucket yonote-bucket already exists."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Установка политик для бакета
|
# Установка политик для бакета
|
||||||
@ -47,7 +79,7 @@ spec:
|
|||||||
"s3:GetBucketLocation"
|
"s3:GetBucketLocation"
|
||||||
],
|
],
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"arn:aws:s3:::{{ .Values.global.yonote.config.plain.data.AWS_S3_UPLOAD_BUCKET_NAME }}"
|
"arn:aws:s3:::yonote-bucket"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -61,7 +93,7 @@ spec:
|
|||||||
"s3:GetObject"
|
"s3:GetObject"
|
||||||
],
|
],
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"arn:aws:s3:::{{ .Values.global.yonote.config.plain.data.AWS_S3_UPLOAD_BUCKET_NAME }}/*"
|
"arn:aws:s3:::yonote-bucket/*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -69,9 +101,12 @@ spec:
|
|||||||
EOF
|
EOF
|
||||||
echo "Bucket policy JSON file created."
|
echo "Bucket policy JSON file created."
|
||||||
|
|
||||||
mc anonymous set-json /tmp/minio-bucket-policy.json myminio/{{ .Values.global.yonote.config.plain.data.AWS_S3_UPLOAD_BUCKET_NAME }}
|
mc anonymous set-json /tmp/minio-bucket-policy.json myminio/yonote-bucket
|
||||||
echo "Bucket policy applied."
|
echo "Bucket policy applied."
|
||||||
|
|
||||||
|
mc admin policy attach myminio yonote-policy --user={{ .Values.minio.customUser }}
|
||||||
|
echo "Policy attached to user {{ .Values.minio.customUser }}."
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "128Mi"
|
memory: "128Mi"
|
||||||
|
|||||||
169
yonote-chart-service/templates/realm-configmap.yaml
Normal file
169
yonote-chart-service/templates/realm-configmap.yaml
Normal file
@ -0,0 +1,169 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: realm-export
|
||||||
|
data:
|
||||||
|
realm-export.json: |
|
||||||
|
{
|
||||||
|
"realm": "yonote",
|
||||||
|
"enabled": true,
|
||||||
|
"notBefore": 1647809856,
|
||||||
|
"defaultSignatureAlgorithm": "RS256",
|
||||||
|
"revokeRefreshToken": false,
|
||||||
|
"refreshTokenMaxReuse": 0,
|
||||||
|
"accessTokenLifespan": 300,
|
||||||
|
"accessTokenLifespanForImplicitFlow": 900,
|
||||||
|
"ssoSessionIdleTimeout": 1800,
|
||||||
|
"ssoSessionMaxLifespan": 36000,
|
||||||
|
"ssoSessionIdleTimeoutRememberMe": 0,
|
||||||
|
"ssoSessionMaxLifespanRememberMe": 0,
|
||||||
|
"offlineSessionIdleTimeout": 2592000,
|
||||||
|
"offlineSessionMaxLifespanEnabled": false,
|
||||||
|
"offlineSessionMaxLifespan": 5184000,
|
||||||
|
"clientSessionIdleTimeout": 0,
|
||||||
|
"clientSessionMaxLifespan": 0,
|
||||||
|
"clientOfflineSessionIdleTimeout": 0,
|
||||||
|
"clientOfflineSessionMaxLifespan": 0,
|
||||||
|
"accessCodeLifespan": 60,
|
||||||
|
"accessCodeLifespanUserAction": 300,
|
||||||
|
"accessCodeLifespanLogin": 1800,
|
||||||
|
"actionTokenGeneratedByAdminLifespan": 43200,
|
||||||
|
"actionTokenGeneratedByUserLifespan": 300,
|
||||||
|
"oauth2DeviceCodeLifespan": 600,
|
||||||
|
"oauth2DevicePollingInterval": 5,
|
||||||
|
"sslRequired": "external",
|
||||||
|
"registrationAllowed": true,
|
||||||
|
"registrationEmailAsUsername": true,
|
||||||
|
"rememberMe": true,
|
||||||
|
"verifyEmail": false,
|
||||||
|
"loginWithEmailAllowed": true,
|
||||||
|
"duplicateEmailsAllowed": false,
|
||||||
|
"resetPasswordAllowed": true,
|
||||||
|
"editUsernameAllowed": false,
|
||||||
|
"bruteForceProtected": false,
|
||||||
|
"permanentLockout": false,
|
||||||
|
"maxFailureWaitSeconds": 900,
|
||||||
|
"minimumQuickLoginWaitSeconds": 60,
|
||||||
|
"waitIncrementSeconds": 60,
|
||||||
|
"quickLoginCheckMilliSeconds": 1000,
|
||||||
|
"maxDeltaTimeSeconds": 43200,
|
||||||
|
"failureFactor": 30,
|
||||||
|
"clients": [
|
||||||
|
{
|
||||||
|
"clientId": "{{ .Values.global.yonote.config.plain.data.OIDC_CLIENT_ID }}",
|
||||||
|
"secret": "{{ .Values.global.yonote.config.secret.stringData.OIDC_CLIENT_SECRET }}",
|
||||||
|
"redirectUris": [
|
||||||
|
"https://*.{{ .Values.global.yonote.baseListenAddress }}/*",
|
||||||
|
"http://*.{{ .Values.global.yonote.baseListenAddress }}/*",
|
||||||
|
"http://app.{{ .Values.global.yonote.baseListenAddress }}/*",
|
||||||
|
"https://app.{{ .Values.global.yonote.baseListenAddress }}/*",
|
||||||
|
"https://app.{{ .Values.global.yonote.baseListenAddress }}/auth/oidc.callback/*"
|
||||||
|
],
|
||||||
|
"baseUrl": "https://app.{{ .Values.global.yonote.baseListenAddress }}",
|
||||||
|
"enabled": true,
|
||||||
|
"publicClient": false,
|
||||||
|
"protocol": "openid-connect",
|
||||||
|
"attributes": {
|
||||||
|
"client.secret": "{{ .Values.global.yonote.config.secret.stringData.OIDC_CLIENT_SECRET }}",
|
||||||
|
"display.on.consent.screen": "true"
|
||||||
|
},
|
||||||
|
"authenticationFlowBindingOverrides": {},
|
||||||
|
"fullScopeAllowed": false,
|
||||||
|
"protocolMappers": [
|
||||||
|
{
|
||||||
|
"name": "oidc-display-name",
|
||||||
|
"protocol": "openid-connect",
|
||||||
|
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
||||||
|
"consentRequired": false,
|
||||||
|
"config": {
|
||||||
|
"userinfo.token.claim": "true",
|
||||||
|
"user.attribute": "{{ .Values.global.yonote.config.plain.data.OIDC_DISPLAY_NAME }}",
|
||||||
|
"id.token.claim": "true",
|
||||||
|
"access.token.claim": "true",
|
||||||
|
"claim.name": "{{ .Values.global.yonote.config.plain.data.OIDC_DISPLAY_NAME }}",
|
||||||
|
"jsonType.label": "String"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"defaultClientScopes": ["openid", "email"]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"identityProviders": [],
|
||||||
|
"internationalizationEnabled": true,
|
||||||
|
"clientScopes": [
|
||||||
|
{
|
||||||
|
"name": "openid",
|
||||||
|
"protocol": "openid-connect",
|
||||||
|
"attributes": {
|
||||||
|
"include.in.token.scope": "true",
|
||||||
|
"display.on.consent.screen": "true",
|
||||||
|
"consent.screen.text": "{{ .Values.global.yonote.config.plain.data.OIDC_DISPLAY_NAME }}"
|
||||||
|
},
|
||||||
|
"protocolMappers": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "email",
|
||||||
|
"protocol": "openid-connect",
|
||||||
|
"attributes": {
|
||||||
|
"include.in.token.scope": "true",
|
||||||
|
"display.on.consent.screen": "true"
|
||||||
|
},
|
||||||
|
"protocolMappers": [
|
||||||
|
{
|
||||||
|
"id": "56fe6d23-690a-465c-bc36-99bff8fef6eb",
|
||||||
|
"name": "email verified",
|
||||||
|
"protocol": "openid-connect",
|
||||||
|
"protocolMapper": "oidc-usermodel-property-mapper",
|
||||||
|
"consentRequired": false,
|
||||||
|
"config": {
|
||||||
|
"userinfo.token.claim": "true",
|
||||||
|
"user.attribute": "emailVerified",
|
||||||
|
"id.token.claim": "true",
|
||||||
|
"access.token.claim": "true",
|
||||||
|
"claim.name": "email_verified",
|
||||||
|
"jsonType.label": "boolean"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "2c6acd0e-b776-48f5-9c3b-7bfdbbe712dc",
|
||||||
|
"name": "email",
|
||||||
|
"protocol": "openid-connect",
|
||||||
|
"protocolMapper": "oidc-usermodel-property-mapper",
|
||||||
|
"consentRequired": false,
|
||||||
|
"config": {
|
||||||
|
"userinfo.token.claim": "true",
|
||||||
|
"user.attribute": "email",
|
||||||
|
"id.token.claim": "true",
|
||||||
|
"access.token.claim": "true",
|
||||||
|
"claim.name": "email",
|
||||||
|
"jsonType.label": "String"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"browserSecurityHeaders": {
|
||||||
|
"contentSecurityPolicy": "frame-src 'self'; frame-ancestors 'self'; object-src 'none';"
|
||||||
|
},
|
||||||
|
"webAuthnPolicyRpEntityName": "keycloak",
|
||||||
|
"webAuthnPolicySignatureAlgorithms": ["ES256"],
|
||||||
|
"webAuthnPolicyRpId": "",
|
||||||
|
"webAuthnPolicyAttestationConveyancePreference": "not specified",
|
||||||
|
"webAuthnPolicyAuthenticatorAttachment": "not specified",
|
||||||
|
"webAuthnPolicyRequireResidentKey": "not specified",
|
||||||
|
"webAuthnPolicyUserVerificationRequirement": "not specified",
|
||||||
|
"webAuthnPolicyCreateTimeout": 0,
|
||||||
|
"webAuthnPolicyAvoidSameAuthenticatorRegister": false,
|
||||||
|
"webAuthnPolicyAcceptableAaguids": [],
|
||||||
|
"webAuthnPolicyPasswordlessRpEntityName": "keycloak",
|
||||||
|
"webAuthnPolicyPasswordlessSignatureAlgorithms": ["ES256"],
|
||||||
|
"webAuthnPolicyPasswordlessRpId": "",
|
||||||
|
"webAuthnPolicyPasswordlessAttestationConveyancePreference": "not specified",
|
||||||
|
"webAuthnPolicyPasswordlessAuthenticatorAttachment": "not specified",
|
||||||
|
"webAuthnPolicyPasswordlessRequireResidentKey": "not specified",
|
||||||
|
"webAuthnPolicyPasswordlessUserVerificationRequirement": "not specified",
|
||||||
|
"webAuthnPolicyPasswordlessCreateTimeout": 0,
|
||||||
|
"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
|
||||||
|
"webAuthnPolicyPasswordlessAcceptableAaguids": [],
|
||||||
|
"smtpServer": {}
|
||||||
|
}
|
||||||
@ -7,28 +7,25 @@ global:
|
|||||||
config:
|
config:
|
||||||
plain:
|
plain:
|
||||||
data:
|
data:
|
||||||
DEBUG: debug
|
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
FORCE_HTTPS: "false"
|
FORCE_HTTPS: "false"
|
||||||
PGSSLMODE: disable # Отключает SSL подключение к базе данных. Уберите эту строку, если вы используете SSL подключение к PostgreSQL
|
PGSSLMODE: disable # Отключает SSL подключение к базе данных. Уберите эту строку, если вы используете SSL подключение к PostgreSQL
|
||||||
WEB_CONCURRENCY: "1"
|
WEB_CONCURRENCY: "1"
|
||||||
|
|
||||||
BIND_HOST: 0.0.0.0 # Хост по умолчанию
|
BIND_HOST: 0.0.0.0 # Хост по умолчанию
|
||||||
PORT: "3000" # Порт по умолчанию
|
PORT: "3000" # Порт по умолчанию
|
||||||
|
|
||||||
REDIS_URL: redis://yonote-redis:6379
|
REDIS_URL: redis://yonote-redis-master:6379
|
||||||
|
|
||||||
DEFAULT_LANGUAGE: ru_RU # Язык по умолчанию
|
DEFAULT_LANGUAGE: ru_RU # Язык по умолчанию
|
||||||
ENABLE_UPDATES: "false"
|
ENABLE_UPDATES: "false"
|
||||||
|
|
||||||
AI_URL: "1234"
|
AI_URL: "1234"
|
||||||
AI_API_KEY: "1234"
|
AI_API_KEY: "1234"
|
||||||
|
|
||||||
URL: 'https://app.{{ .Values.global.yonote.baseListenAddress }}' # Базовый url приложения
|
URL: 'https://app.{{ .Values.global.yonote.baseListenAddress }}' # Базовый url приложения
|
||||||
COLLABORATION_URL: 'wss://app.{{ .Values.global.yonote.baseListenAddress }}' # Cервер, для нормальной работы это не нужно устанавливать
|
COLLABORATION_URL: 'wss://app.{{ .Values.global.yonote.baseListenAddress }}' # Cервер, для нормальной работы это не нужно устанавливать
|
||||||
|
|
||||||
#DEPLOYMENT: 'hosted'
|
|
||||||
|
|
||||||
OIDC_DISPLAY_NAME: email
|
OIDC_DISPLAY_NAME: email
|
||||||
OIDC_SCOPES: openid email
|
OIDC_SCOPES: openid email
|
||||||
OIDC_CLIENT_ID: yonote
|
OIDC_CLIENT_ID: yonote
|
||||||
@ -38,7 +35,7 @@ global:
|
|||||||
OIDC_USERINFO_URI: 'https://auth.example.com/realms/yonote/protocol/openid-connect/userinfo' # URL для получения информации о пользователе. Используется для получения данных профиля пользователя на основе его токена.
|
OIDC_USERINFO_URI: 'https://auth.example.com/realms/yonote/protocol/openid-connect/userinfo' # URL для получения информации о пользователе. Используется для получения данных профиля пользователя на основе его токена.
|
||||||
|
|
||||||
AWS_S3_ACL: private
|
AWS_S3_ACL: private
|
||||||
AWS_S3_UPLOAD_BUCKET_URL: 'https://s3.example.com' # Адрес API S3 хранилища
|
AWS_S3_UPLOAD_BUCKET_URL: 'https://api-s3.example.com' # Адрес API S3 хранилища
|
||||||
AWS_S3_UPLOAD_BUCKET_NAME: yonote-bucket # Имя хранилища
|
AWS_S3_UPLOAD_BUCKET_NAME: yonote-bucket # Имя хранилища
|
||||||
AWS_REGION: "RU"
|
AWS_REGION: "RU"
|
||||||
AWS_S3_UPLOAD_MAX_SIZE: "226214400" # Максимальный размер хранилища
|
AWS_S3_UPLOAD_MAX_SIZE: "226214400" # Максимальный размер хранилища
|
||||||
@ -56,11 +53,11 @@ global:
|
|||||||
|
|
||||||
RESERVED_SUBDOMAINS: about,account,admin,advertising,api,app,assets,archive,beta,billing,blog,cache,cdn,code,community,dashboard,developer,developers,forum,help,home,http,https,imap,localhost,mail,marketing,mobile,multiplayer,new,news,newsletter,ns1,ns2,ns3,ns4,password,profile,realtime,sandbox,script,scripts,setup,signin,signup,site,smtp,support,status,static,stats,test,update,updates,ws,wss,web,websockets,www,www1,www2,www3,www4
|
RESERVED_SUBDOMAINS: about,account,admin,advertising,api,app,assets,archive,beta,billing,blog,cache,cdn,code,community,dashboard,developer,developers,forum,help,home,http,https,imap,localhost,mail,marketing,mobile,multiplayer,new,news,newsletter,ns1,ns2,ns3,ns4,password,profile,realtime,sandbox,script,scripts,setup,signin,signup,site,smtp,support,status,static,stats,test,update,updates,ws,wss,web,websockets,www,www1,www2,www3,www4
|
||||||
|
|
||||||
SMTP_HOST: "smtp.wilix.dev"
|
SMTP_HOST: ""
|
||||||
SMTP_USERNAME: ""
|
SMTP_USERNAME: ""
|
||||||
SMTP_FROM_EMAIL: ""
|
SMTP_FROM_EMAIL: ""
|
||||||
SMTP_REPLY_EMAIL: ""
|
SMTP_REPLY_EMAIL: ""
|
||||||
SMTP_PORT: "456"
|
SMTP_PORT: ""
|
||||||
SMTP_SECURE: "" # connection will be upgraded: https://nodemailer.com/smtp/
|
SMTP_SECURE: "" # connection will be upgraded: https://nodemailer.com/smtp/
|
||||||
SMTP_REQUIRE_TLS: ""
|
SMTP_REQUIRE_TLS: ""
|
||||||
|
|
||||||
@ -78,59 +75,59 @@ ingress:
|
|||||||
namespace: yonote-onprem
|
namespace: yonote-onprem
|
||||||
ingressClassName: traefik
|
ingressClassName: traefik
|
||||||
tls:
|
tls:
|
||||||
secretName: "example.com-tls"
|
secretName: "you_tls_secret"
|
||||||
hosts:
|
hosts:
|
||||||
- "app.example.com"
|
- "app.example.com"
|
||||||
- "team.example.com"
|
- "team.example.com"
|
||||||
rules:
|
rules:
|
||||||
- host: "app.example.com"
|
- host: "app.example.com"
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
service:
|
service:
|
||||||
name: yonote-web
|
name: yonote-web
|
||||||
port: 80
|
port: 80
|
||||||
- path: /realtime
|
- path: /realtime
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
service:
|
service:
|
||||||
name: yonote-websockets
|
name: yonote-websockets
|
||||||
port: 80
|
port: 80
|
||||||
- path: /whiteboard
|
- path: /whiteboard
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
service:
|
service:
|
||||||
name: yonote-whiteboard
|
name: yonote-whiteboard
|
||||||
port: 80
|
port: 80
|
||||||
- path: /collaboration
|
- path: /collaboration
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
service:
|
service:
|
||||||
name: yonote-collaboration
|
name: yonote-collaboration
|
||||||
port: 80
|
port: 80
|
||||||
- host: "team.example.com"
|
- host: "team.example.com"
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
service:
|
service:
|
||||||
name: yonote-web
|
name: yonote-web
|
||||||
port: 80
|
port: 80
|
||||||
- path: /realtime
|
- path: /realtime
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
service:
|
service:
|
||||||
name: yonote-websockets
|
name: yonote-websockets
|
||||||
port: 80
|
port: 80
|
||||||
- path: /whiteboard
|
- path: /whiteboard
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
service:
|
service:
|
||||||
name: yonote-whiteboard
|
name: yonote-whiteboard
|
||||||
port: 80
|
port: 80
|
||||||
- path: /collaboration
|
- path: /collaboration
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
service:
|
service:
|
||||||
name: yonote-collaboration
|
name: yonote-collaboration
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
#annotations:
|
|
||||||
# cert-manager.io/cluster-issuer: # Если используете
|
|
||||||
|
|
||||||
|
annotations:
|
||||||
|
# cert-manager.io/cluster-issuer: letsencrypt.example.com # Если используете
|
||||||
|
|
||||||
yonote-web:
|
yonote-web:
|
||||||
fullnameOverride: yonote-web
|
fullnameOverride: yonote-web
|
||||||
nameOverride: yonote-web
|
nameOverride: yonote-web
|
||||||
@ -139,7 +136,7 @@ yonote-web:
|
|||||||
image:
|
image:
|
||||||
registry: images.updates.yonote.ru
|
registry: images.updates.yonote.ru
|
||||||
repository: yonote
|
repository: yonote
|
||||||
tag: 1.22.11
|
tag: 1.19.8
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
@ -147,7 +144,7 @@ yonote-web:
|
|||||||
|
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: yonote-migration
|
- name: yonote-migration
|
||||||
image: images.updates.yonote.ru/yonote:1.22.11
|
image: images.updates.yonote.ru/yonote:1.19.8
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
@ -169,17 +166,17 @@ yonote-web:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
|
|
||||||
containerPorts:
|
containerPorts:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
name: app
|
name: app
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: app
|
targetPort: app
|
||||||
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: yonote-configs
|
name: yonote-configs
|
||||||
@ -188,11 +185,11 @@ yonote-web:
|
|||||||
|
|
||||||
podLabels:
|
podLabels:
|
||||||
redis-client: 'true'
|
redis-client: 'true'
|
||||||
|
|
||||||
podAnnotations:
|
podAnnotations:
|
||||||
checksum/configmap: "{{ toJson .Values.global.yonote.config.plain | sha256sum }}"
|
checksum/configmap: "{{ toJson .Values.global.yonote.config.plain | sha256sum }}"
|
||||||
checksum/secret: "{{ toJson .Values.global.yonote.config.secret | sha256sum }}"
|
checksum/secret: "{{ toJson .Values.global.yonote.config.secret | sha256sum }}"
|
||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
@ -203,7 +200,7 @@ yonote-web:
|
|||||||
httpGet:
|
httpGet:
|
||||||
path: /_health
|
path: /_health
|
||||||
port: app
|
port: app
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
@ -219,13 +216,13 @@ yonote-websocket:
|
|||||||
fullnameOverride: yonote-websockets
|
fullnameOverride: yonote-websockets
|
||||||
nameOverride: yonote-websockets
|
nameOverride: yonote-websockets
|
||||||
name: websockets
|
name: websockets
|
||||||
|
|
||||||
image:
|
image:
|
||||||
registry: images.updates.yonote.ru
|
registry: images.updates.yonote.ru
|
||||||
repository: yonote
|
repository: yonote
|
||||||
tag: 1.22.11
|
tag: 1.19.8
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
args: ['IS_COMPILED=true yarn bytenode ./build/server/main.jsc --services=websockets']
|
args: ['IS_COMPILED=true yarn bytenode ./build/server/main.jsc --services=websockets']
|
||||||
|
|
||||||
@ -236,32 +233,32 @@ yonote-websocket:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 150m
|
cpu: 150m
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
|
|
||||||
checksums: null
|
checksums: null
|
||||||
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: yonote-configs
|
name: yonote-configs
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: yonote-secrets
|
name: yonote-secrets
|
||||||
|
|
||||||
containerPorts:
|
containerPorts:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
name: app
|
name: app
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: app
|
targetPort: app
|
||||||
|
|
||||||
podLabels:
|
podLabels:
|
||||||
redis-client: 'true'
|
redis-client: 'true'
|
||||||
|
|
||||||
podAnnotations:
|
podAnnotations:
|
||||||
checksum/configmap: "{{ toJson .Values.global.yonote.config.plain | sha256sum }}"
|
checksum/configmap: "{{ toJson .Values.global.yonote.config.plain | sha256sum }}"
|
||||||
checksum/secret: "{{ toJson .Values.global.yonote.config.secret | sha256sum }}"
|
checksum/secret: "{{ toJson .Values.global.yonote.config.secret | sha256sum }}"
|
||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
@ -272,7 +269,7 @@ yonote-websocket:
|
|||||||
httpGet:
|
httpGet:
|
||||||
path: /_health
|
path: /_health
|
||||||
port: app
|
port: app
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
@ -288,11 +285,11 @@ yonote-whiteboard:
|
|||||||
fullnameOverride: yonote-whiteboard
|
fullnameOverride: yonote-whiteboard
|
||||||
nameOverride: yonote-whiteboard
|
nameOverride: yonote-whiteboard
|
||||||
name: whiteboard
|
name: whiteboard
|
||||||
|
|
||||||
image:
|
image:
|
||||||
registry: images.updates.yonote.ru
|
registry: images.updates.yonote.ru
|
||||||
repository: yonote
|
repository: yonote
|
||||||
tag: 1.22.11
|
tag: 1.19.8
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
@ -330,7 +327,7 @@ yonote-whiteboard:
|
|||||||
podAnnotations:
|
podAnnotations:
|
||||||
checksum/configmap: "{{ toJson .Values.global.yonote.config.plain | sha256sum }}"
|
checksum/configmap: "{{ toJson .Values.global.yonote.config.plain | sha256sum }}"
|
||||||
checksum/secret: "{{ toJson .Values.global.yonote.config.secret | sha256sum }}"
|
checksum/secret: "{{ toJson .Values.global.yonote.config.secret | sha256sum }}"
|
||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
@ -341,7 +338,7 @@ yonote-whiteboard:
|
|||||||
httpGet:
|
httpGet:
|
||||||
path: /_health
|
path: /_health
|
||||||
port: app
|
port: app
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
@ -361,7 +358,7 @@ yonote-worker:
|
|||||||
image:
|
image:
|
||||||
registry: images.updates.yonote.ru
|
registry: images.updates.yonote.ru
|
||||||
repository: yonote
|
repository: yonote
|
||||||
tag: 1.22.11
|
tag: 1.19.8
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
@ -399,7 +396,7 @@ yonote-worker:
|
|||||||
podAnnotations:
|
podAnnotations:
|
||||||
checksum/configmap: "{{ toJson .Values.global.yonote.config.plain | sha256sum }}"
|
checksum/configmap: "{{ toJson .Values.global.yonote.config.plain | sha256sum }}"
|
||||||
checksum/secret: "{{ toJson .Values.global.yonote.config.secret | sha256sum }}"
|
checksum/secret: "{{ toJson .Values.global.yonote.config.secret | sha256sum }}"
|
||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
@ -410,7 +407,7 @@ yonote-worker:
|
|||||||
httpGet:
|
httpGet:
|
||||||
path: /_health
|
path: /_health
|
||||||
port: app
|
port: app
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
@ -430,7 +427,7 @@ yonote-collaboration:
|
|||||||
image:
|
image:
|
||||||
registry: images.updates.yonote.ru
|
registry: images.updates.yonote.ru
|
||||||
repository: yonote
|
repository: yonote
|
||||||
tag: 1.22.11
|
tag: 1.19.8
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
@ -455,20 +452,20 @@ yonote-collaboration:
|
|||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: app
|
targetPort: app
|
||||||
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: yonote-configs
|
name: yonote-configs
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: yonote-secrets
|
name: yonote-secrets
|
||||||
|
|
||||||
podLabels:
|
podLabels:
|
||||||
redis-client: 'true'
|
redis-client: 'true'
|
||||||
|
|
||||||
podAnnotations:
|
podAnnotations:
|
||||||
checksum/configmap: "{{ toJson .Values.global.yonote.config.plain | sha256sum }}"
|
checksum/configmap: "{{ toJson .Values.global.yonote.config.plain | sha256sum }}"
|
||||||
checksum/secret: "{{ toJson .Values.global.yonote.config.secret | sha256sum }}"
|
checksum/secret: "{{ toJson .Values.global.yonote.config.secret | sha256sum }}"
|
||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
@ -479,7 +476,7 @@ yonote-collaboration:
|
|||||||
httpGet:
|
httpGet:
|
||||||
path: /_health
|
path: /_health
|
||||||
port: app
|
port: app
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
@ -491,107 +488,105 @@ yonote-collaboration:
|
|||||||
path: /_health
|
path: /_health
|
||||||
port: app
|
port: app
|
||||||
|
|
||||||
postgres:
|
yonoteDatabase:
|
||||||
enabled: true
|
enabled: true
|
||||||
#settings:
|
global:
|
||||||
# Default postgres
|
postgresql:
|
||||||
# superuser:
|
auth:
|
||||||
|
database: "yonote"
|
||||||
userDatabase:
|
username: "yonote"
|
||||||
name: yonote
|
name: yonote-database
|
||||||
user: yonote
|
|
||||||
|
|
||||||
fullnameOverride: yonote-database
|
fullnameOverride: yonote-database
|
||||||
nameOverride: yonote-database
|
nameOverride: yonote-database
|
||||||
|
|
||||||
|
primary:
|
||||||
|
persistence:
|
||||||
|
size: 5Gi
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 2
|
||||||
|
memory: 8Gi
|
||||||
|
requests:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 512Mi
|
||||||
|
|
||||||
storage:
|
extraVolumes:
|
||||||
requestedSize: 5Gi
|
- name: init-scripts
|
||||||
className: ""
|
configMap:
|
||||||
|
name: postgres-init-scripts
|
||||||
|
|
||||||
resources:
|
extraVolumeMounts:
|
||||||
limits:
|
- name: init-scripts
|
||||||
cpu: 2
|
mountPath: /docker-entrypoint-initdb.d
|
||||||
memory: 5Gi
|
readOnly: true
|
||||||
requests:
|
|
||||||
cpu: 500m
|
|
||||||
memory: 512Mi
|
|
||||||
|
|
||||||
extraScripts: postgres-init-scripts
|
yonote-redis:
|
||||||
|
|
||||||
redis:
|
|
||||||
enabled: true
|
enabled: true
|
||||||
fullnameOverride: yonote-redis
|
fullnameOverride: yonote-redis
|
||||||
nameOverride: redis
|
nameOverride: redis
|
||||||
|
architecture: standalone
|
||||||
storage:
|
image:
|
||||||
requestedSize: 1Gi
|
tag: 7.2.0-debian-11-r0
|
||||||
className: ""
|
|
||||||
resources:
|
auth:
|
||||||
limits:
|
enabled: false
|
||||||
cpu: 1
|
|
||||||
memory: 4Gi
|
master:
|
||||||
requests:
|
persistence:
|
||||||
cpu: 500m
|
size: 5Gi
|
||||||
memory: 512Mi
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 1
|
||||||
|
memory: 4Gi
|
||||||
|
requests:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 512Mi
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
enabled: true
|
enabled: true
|
||||||
name: minio
|
name: minio
|
||||||
fullnameOverride: yonote-minio
|
fullnameOverride: yonote-minio
|
||||||
|
customUser: yonote
|
||||||
nameOverride: yonote-minio
|
nameOverride: yonote-minio
|
||||||
mode: standalone
|
auth:
|
||||||
rootUser: admin
|
rootUser: admin
|
||||||
|
|
||||||
policies:
|
image:
|
||||||
- name: yonote_user_policy
|
tag: 2024.8.3-debian-12-r1
|
||||||
statements:
|
|
||||||
- resources:
|
|
||||||
- 'arn:aws:s3:::yonote-bucket/*'
|
|
||||||
actions:
|
|
||||||
- "s3:GetObject"
|
|
||||||
- "s3:PutObject"
|
|
||||||
- "s3:DeleteObject"
|
|
||||||
|
|
||||||
users:
|
|
||||||
- accessKey: qwer12314q
|
|
||||||
secretKey: qwer-12314q-qwersa
|
|
||||||
policy: yonote_user_policy
|
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
annotations:
|
size: 5Gi
|
||||||
helm.sh/resource-policy: keep
|
|
||||||
size: 1Gi
|
|
||||||
storageClass: ""
|
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
hosts:
|
hostname: 's3.example.com'
|
||||||
- s3.example.com
|
|
||||||
ingressClassName: traefik
|
ingressClassName: traefik
|
||||||
path: '/'
|
path: '/'
|
||||||
|
pathType: ImplementationSpecific
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: traefik
|
kubernetes.io/ingress.class: traefik
|
||||||
#cert-manager.io/cluster-issuer: letsencrypt.rancher.wilix.dev # Если используете
|
# cert-manager.io/cluster-issuer: letsencrypt.example.com # Если используете
|
||||||
tls:
|
extraTls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- "s3.example.com"
|
- "s3.example.com"
|
||||||
secretName: "example.com-tls"
|
secretName: "you_tls_secret"
|
||||||
|
|
||||||
consoleIngress:
|
apiIngress:
|
||||||
enabled: true
|
enabled: true
|
||||||
hosts:
|
hostname: 'api-s3.example.com'
|
||||||
- s3-console.example.com
|
|
||||||
ingressClassName: traefik
|
ingressClassName: traefik
|
||||||
path: '/'
|
path: '/'
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
servicePort: minio-api
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: traefik
|
kubernetes.io/ingress.class: traefik
|
||||||
#cert-manager.io/cluster-issuer: letsencrypt.rancher.wilix.dev # Если используете
|
# cert-manager.io/cluster-issuer: letsencrypt.example.com # Если используете
|
||||||
tls:
|
extraTls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- "s3-console.example.com"
|
- "api-s3.example.com"
|
||||||
secretName: "example.com-tls"
|
secretName: "api-s3.example.com"
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
@ -604,76 +599,58 @@ mcJob:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
keycloak:
|
keycloak:
|
||||||
enabled: true
|
|
||||||
fullnameOverride: yonote-keycloak
|
fullnameOverride: yonote-keycloak
|
||||||
nameOverride: yonote-keycloak
|
nameOverride: yonote-keycloak
|
||||||
|
|
||||||
|
auth:
|
||||||
|
adminUser: root
|
||||||
|
|
||||||
image:
|
proxy: "edge"
|
||||||
repository: images.updates.yonote.ru/yonote-keycloak
|
|
||||||
tag: latest
|
|
||||||
|
|
||||||
args:
|
command:
|
||||||
- start-dev --spi-login-protocol-openid-connect-legacy-logout-redirect-uri=true --import-realm
|
- /bin/bash
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
/opt/bitnami/keycloak/bin/kc.sh start --import-realm --hostname={{ .Values.ingress.hostname }} --hostname-strict=true --hostname-strict-backchannel=true --https-protocols=TLSv1.2 --proxy=edge --db postgres --db-url-host yonote-database --db-username postgres --db-password="$(DB_PASSWORD)"
|
||||||
|
|
||||||
cache:
|
extraEnvVars:
|
||||||
stack: custom
|
- name: DB_PASSWORD
|
||||||
|
|
||||||
proxy:
|
|
||||||
enabled: "false"
|
|
||||||
|
|
||||||
extraEnv: |
|
|
||||||
- name: KEYCLOAK_ADMIN
|
|
||||||
value: root
|
|
||||||
- name: KEYCLOAK_ADMIN_PASSWORD
|
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "keycloak.fullname" . }}-secrets
|
name: yonote-database
|
||||||
key: KEYCLOAK_ADMIN_PASSWORD
|
key: postgres-password
|
||||||
- name: OIDC_CLIENT_SECRET
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: {{ include "keycloak.fullname" . }}-secrets
|
|
||||||
key: OIDC_CLIENT_SECRET
|
|
||||||
- name: BASENAME_FOR_SUBDOMAIN
|
|
||||||
value: example.com
|
|
||||||
- name: KC_HOSTNAME_STRICT
|
|
||||||
value: "false"
|
|
||||||
- name: KC_HOSTNAME
|
|
||||||
value: auth.example.com
|
|
||||||
- name: KC_HOSTNAME_STRICT_HTTPS
|
|
||||||
value: "false"
|
|
||||||
- name: KC_HOSTNAME_PATH
|
|
||||||
value: "/"
|
|
||||||
- name: KC_HTTP_ENABLED
|
|
||||||
value: "true"
|
|
||||||
- name: PROXY_ADDRESS_FORWARDING
|
|
||||||
value: "true"
|
|
||||||
|
|
||||||
http:
|
extraVolumes:
|
||||||
relativePath: "/"
|
- name: realm-export
|
||||||
|
configMap:
|
||||||
|
name: realm-export
|
||||||
|
|
||||||
|
extraVolumeMounts:
|
||||||
|
- name: realm-export
|
||||||
|
mountPath: /opt/bitnami/keycloak/data/import/realm-export.json
|
||||||
|
subPath: realm-export.json
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
hostname: auth.example.com
|
hostname: auth.example.com
|
||||||
ingressClassName: traefik
|
ingressClassName: traefik
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- "auth.example.com"
|
- "auth.example.com"
|
||||||
secretName: "example.com-tls"
|
secretName: "auth.example.com-tls"
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: traefik
|
kubernetes.io/ingress.class: traefik
|
||||||
#cert-manager.io/cluster-issuer: #Если используете
|
# cert-manager.io/cluster-issuer: letsencrypt.example.com #Если используете
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- host: "auth.example.com"
|
- host: "auth.example.com"
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: Prefix
|
||||||
service:
|
service:
|
||||||
name: yonote-keycloak
|
name: yonote-keycloak
|
||||||
port: http
|
port: http
|
||||||
- path: /admin
|
- path: /admin
|
||||||
pathType: ImplementationSpecific
|
pathType: Prefix
|
||||||
service:
|
service:
|
||||||
name: yonote-keycloak
|
name: yonote-keycloak
|
||||||
port: http
|
port: http
|
||||||
@ -685,28 +662,20 @@ keycloak:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
|
|
||||||
|
postgresql:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
dbchecker:
|
externalDatabase:
|
||||||
enabled: "true"
|
host: jdbc:postgresql://yonote-database
|
||||||
|
|
||||||
database:
|
|
||||||
vendor: postgres
|
|
||||||
hostname: yonote-database
|
|
||||||
port: 5432
|
port: 5432
|
||||||
|
user: postgres
|
||||||
database: keycloak
|
database: keycloak
|
||||||
username: keycloak
|
|
||||||
|
|
||||||
livenessProbe: |
|
livenessProbe:
|
||||||
httpGet:
|
|
||||||
path: '{{ trimSuffix "/" .Values.http.relativePath}}/'
|
|
||||||
port: http
|
|
||||||
initialDelaySeconds: 240
|
initialDelaySeconds: 240
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
|
|
||||||
# Readiness probe configuration
|
readinessProbe:
|
||||||
readinessProbe: |
|
|
||||||
httpGet:
|
|
||||||
path: '{{ trimSuffix "/" .Values.http.relativePath}}/realms/master'
|
|
||||||
port: http
|
|
||||||
initialDelaySeconds: 120
|
initialDelaySeconds: 120
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 5
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user