Remove-Bitnami-Dependencies #7
@ -1,9 +1,9 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: yonote-chart
|
name: yonote-chart
|
||||||
version: 1.2.0
|
version: 1.3.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 Dynix app chart.
|
This chart includes multiple dependencies. The base of this chart is derived from the Dysnix 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: postgresql
|
- name: postgres
|
||||||
version: "11.6.6"
|
version: "0.3.9"
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://groundhog2k.github.io/helm-charts/
|
||||||
condition: yonoteDatabase.enabled
|
condition: yonoteDatabase.enabled
|
||||||
alias: yonoteDatabase
|
alias: yonoteDatabase
|
||||||
|
|
||||||
- name: redis
|
- name: redis
|
||||||
version: "16.12.1"
|
version: "0.7.0"
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://groundhog2k.github.io/helm-charts/
|
||||||
condition: yonote-redis.enabled
|
condition: yonote-redis.enabled
|
||||||
alias: yonote-redis
|
alias: yonote-redis
|
||||||
|
|
||||||
- name: minio
|
- name: minio
|
||||||
version: "12.7.0"
|
version: "12.7.0"
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.min.io/
|
||||||
condition: minio.enabled
|
condition: minio.enabled
|
||||||
alias: minio
|
alias: minio
|
||||||
|
|
||||||
- name: keycloak
|
- name: keycloakx
|
||||||
version: "14.0.0"
|
version: "1.3.2"
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://codecentric.github.io/helm-charts
|
||||||
condition: keycloak.enabled
|
condition: keycloak.enabled
|
||||||
alias: keycloak
|
alias: keycloak
|
||||||
|
|||||||
@ -3,8 +3,8 @@ global:
|
|||||||
config:
|
config:
|
||||||
secret:
|
secret:
|
||||||
stringData:
|
stringData:
|
||||||
DATABASE_URL: 'postgres://{{ .Values.yonoteDatabase.global.postgresql.auth.username }}:{{ .Values.yonoteDatabase.global.postgresql.auth.password }}@yonote-database:5432/{{ .Values.yonoteDatabase.global.postgresql.auth.database }}'
|
DATABASE_URL: 'postgres://{{ .Values.yonoteDatabase.settings.userDatabase.user }}:{{ .Values.yonoteDatabase.settings.userDatabase.password }}@yonote-database:5432/{{ .Values.yonoteDatabase.settings.userDatabase.database }}'
|
||||||
POSTGRES_PASSWORD: "{{ .Values.yonoteDatabase.global.postgresql.auth.password }}"
|
POSTGRES_PASSWORD: "{{ .Values.yonoteDatabase.settings.superuserPassword.password }}"
|
||||||
AWS_ACCESS_KEY_ID: "{{ .Values.minio.customUser }}" # Ваш идентификатор ключа доступа к AWS.
|
AWS_ACCESS_KEY_ID: "{{ .Values.minio.customUser }}" # Ваш идентификатор ключа доступа к AWS.
|
||||||
AWS_SECRET_ACCESS_KEY: "{{ .Values.minio.customAccessKey }}" # Ваш секретный ключ доступа AWS.
|
AWS_SECRET_ACCESS_KEY: "{{ .Values.minio.customAccessKey }}" # Ваш секретный ключ доступа AWS.
|
||||||
OIDC_CLIENT_SECRET: "Kdq8rk5Pv5RW1c5kHXpnyfrmMRzI9xSD" # Секретный ключ клиента для аутентификации по OpenID Connect (OIDC).
|
OIDC_CLIENT_SECRET: "Kdq8rk5Pv5RW1c5kHXpnyfrmMRzI9xSD" # Секретный ключ клиента для аутентификации по OpenID Connect (OIDC).
|
||||||
@ -21,23 +21,21 @@ global:
|
|||||||
# 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"
|
|
||||||
|
|
||||||
# yonote-redis: # Если используете auth для redis
|
yonoteDatabase:
|
||||||
# auth:
|
settings:
|
||||||
# password: "12345678"
|
superuserPassword: "QQYw4UjOU"
|
||||||
|
userDatabase:
|
||||||
|
password: "wsGZ6kXhr5"
|
||||||
|
|
||||||
|
yonote-redis:
|
||||||
|
args:
|
||||||
|
- "--user redis:redis"
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
customAccessKey: "qwer-12314q-qwersa"
|
#customAccessKey: "qwer-12314q-qwersa"
|
||||||
auth:
|
rootPassword: "qwettaas"
|
||||||
rootPassword: "qwettaas"
|
|
||||||
|
|
||||||
keycloak:
|
keycloak:
|
||||||
auth:
|
auth:
|
||||||
adminPassword: "root"
|
adminPassword: "root"
|
||||||
|
|||||||
@ -13,22 +13,22 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: mc-client
|
- name: mc-client
|
||||||
image: "docker.io/bitnami/minio-client:2024.8.13-debian-12-r0"
|
image: "quay.io/minio/mc:RELEASE.2024-12-18T13-15-44Z"
|
||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
until mc alias set myminio http://yonote-minio:9000 {{ .Values.minio.auth.rootUser }} {{ .Values.minio.auth.rootPassword }}; do
|
until mc alias set myminio http://yonote-minio:9000 {{ .Values.minio.rootUser }} {{ .Values.minio.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 admin user add myminio {{ .Values.minio.customUser }} {{ .Values.minio.customAccessKey }}; then
|
#if ! mc admin user add myminio {{ .Values.minio.customUser }} {{ .Values.minio.customAccessKey }}; then
|
||||||
echo "User {{ .Values.minio.customUser }} already exists or failed to create."
|
# echo "User {{ .Values.minio.customUser }} already exists or failed to create."
|
||||||
else
|
#else
|
||||||
echo "User {{ .Values.minio.customUser }} created successfully."
|
# echo "User {{ .Values.minio.customUser }} created successfully."
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# Назначение политики для нового пользователя
|
# Назначение политики для нового пользователя
|
||||||
cat <<EOF > /tmp/minio-user-policy.json
|
cat <<EOF > /tmp/minio-user-policy.json
|
||||||
|
|||||||
@ -476,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
|
||||||
@ -490,103 +490,94 @@ yonote-collaboration:
|
|||||||
|
|
||||||
yonoteDatabase:
|
yonoteDatabase:
|
||||||
enabled: true
|
enabled: true
|
||||||
global:
|
settings:
|
||||||
postgresql:
|
# Default postgres
|
||||||
auth:
|
# superuser:
|
||||||
database: "yonote"
|
|
||||||
username: "yonote"
|
userDatabase:
|
||||||
|
name: yonote
|
||||||
|
user: yonote
|
||||||
|
|
||||||
name: yonote-database
|
name: yonote-database
|
||||||
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
|
|
||||||
|
|
||||||
extraVolumes:
|
storage:
|
||||||
- name: init-scripts
|
requestedSize: 5Gi
|
||||||
configMap:
|
#className: ""
|
||||||
name: postgres-init-scripts
|
|
||||||
|
|
||||||
extraVolumeMounts:
|
resources:
|
||||||
- name: init-scripts
|
limits:
|
||||||
mountPath: /docker-entrypoint-initdb.d
|
cpu: 2
|
||||||
readOnly: true
|
memory: 8Gi
|
||||||
|
requests:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 512Mi
|
||||||
|
|
||||||
|
extraScripts:
|
||||||
|
- name: postgres-init-scripts
|
||||||
|
|
||||||
yonote-redis:
|
yonote-redis:
|
||||||
enabled: true
|
enabled: true
|
||||||
fullnameOverride: yonote-redis
|
fullnameOverride: yonote-redis
|
||||||
nameOverride: redis
|
nameOverride: redis
|
||||||
architecture: standalone
|
|
||||||
image:
|
storage:
|
||||||
tag: 7.2.0-debian-11-r0
|
requestedSize: 5Gi
|
||||||
|
#className: ""
|
||||||
auth:
|
resources:
|
||||||
enabled: false
|
limits:
|
||||||
|
cpu: 1
|
||||||
master:
|
memory: 4Gi
|
||||||
persistence:
|
requests:
|
||||||
size: 5Gi
|
cpu: 500m
|
||||||
resources:
|
memory: 512Mi
|
||||||
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
|
#customUser: yonote
|
||||||
nameOverride: yonote-minio
|
nameOverride: yonote-minio
|
||||||
auth:
|
mode: standalone
|
||||||
rootUser: admin
|
rootUser: admin
|
||||||
|
|
||||||
image:
|
users:
|
||||||
tag: 2024.8.3-debian-12-r1
|
- accessKey: console
|
||||||
|
secretKey: console123
|
||||||
|
policy: readwrite
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
size: 5Gi
|
size: 5Gi
|
||||||
|
#storageClass: ""
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
hostname: 's3.example.com'
|
hosts: '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.example.com # Если используете
|
# cert-manager.io/cluster-issuer: letsencrypt.example.com # Если используете
|
||||||
extraTls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- "s3.example.com"
|
- "s3.example.com"
|
||||||
secretName: "you_tls_secret"
|
secretName: "you_tls_secret"
|
||||||
|
|
||||||
apiIngress:
|
consoleIngress:
|
||||||
enabled: true
|
enabled: true
|
||||||
hostname: 'api-s3.example.com'
|
hosts: 'api-s3.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.example.com # Если используете
|
# cert-manager.io/cluster-issuer: letsencrypt.example.com # Если используете
|
||||||
extraTls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- "api-s3.example.com"
|
- "api-s3.example.com"
|
||||||
secretName: "api-s3.example.com"
|
secretName: "api-s3.example.com"
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
@ -601,7 +592,7 @@ mcJob:
|
|||||||
keycloak:
|
keycloak:
|
||||||
fullnameOverride: yonote-keycloak
|
fullnameOverride: yonote-keycloak
|
||||||
nameOverride: yonote-keycloak
|
nameOverride: yonote-keycloak
|
||||||
|
|
||||||
auth:
|
auth:
|
||||||
adminUser: root
|
adminUser: root
|
||||||
|
|
||||||
@ -662,7 +653,7 @@ keycloak:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
|
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user