2 Commits

Author SHA1 Message Date
Valery Petrov 31a0ae75d5 issues/27: docs.test.sova.local ingress on test contour 2026-06-04 13:19:02 +03:00
Valery Petrov e8c1a194a9 issues/27: autotesting hooks documentation 2026-06-04 12:52:28 +03:00
15 changed files with 30 additions and 119 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
ingress:
host: adm.dev.sovamed.ru
env:
API_BASE_URL: https://api.dev.sovamed.ru
host: admin.test.sova.local
runtimeEnv:
API_BASE_URL: http://api.test.sova.local
image:
tag: adminpanel-v1.0.10-test
tag: adminpanel-v1.0.4-test
pullPolicy: IfNotPresent
repository: git.sova.local/sova/adminpanel
imagePullSecrets:
+4 -4
View File
@@ -1,11 +1,11 @@
ingress:
host: api.dev.sovamed.ru
host: api.test.sova.local
image:
tag: backend-v1.0.10-test
tag: backend-v1.0.4-test
pullPolicy: IfNotPresent
repository: git.sova.local/sova/backend
imagePullSecrets:
- name: gitea-registry
env:
API_PUBLIC_URL: https://api.dev.sovamed.ru
API_BASE_URL: https://api.dev.sovamed.ru
API_PUBLIC_URL: http://api.test.sova.local
API_BASE_URL: http://api.test.sova.local
+2 -2
View File
@@ -1,7 +1,7 @@
ingress:
host: cabinet.dev.sovamed.ru
host: cabinet.test.sova.local
image:
tag: cabinet-v1.0.10-test
tag: cabinet-v1.0.3-test
pullPolicy: IfNotPresent
repository: git.sova.local/sova/cabinet
imagePullSecrets:
+2 -2
View File
@@ -1,7 +1,7 @@
ingress:
host: docs.dev.sovamed.ru
host: docs.test.sova.local
image:
tag: docs-v1.0.10-test
tag: docs-v1.0.8-test
pullPolicy: IfNotPresent
repository: git.sova.local/sova/docs
imagePullSecrets:
+1 -1
View File
@@ -7,7 +7,7 @@ spec:
project: default
source:
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
targetRevision: prod
targetRevision: main
path: argocd/apps
destination:
server: https://kubernetes.default.svc
@@ -1,4 +1,3 @@
# Только для локальной фермы (Multipass). На удалённом test — не применять.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
@@ -8,7 +7,7 @@ spec:
project: sova
source:
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
targetRevision: prod
targetRevision: main
path: apps/redmine
helm:
valueFiles:
+1 -1
View File
@@ -7,7 +7,7 @@ spec:
project: default
source:
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
targetRevision: prod
targetRevision: main
path: argocd/projects
destination:
server: https://kubernetes.default.svc
+6 -6
View File
@@ -7,7 +7,7 @@ spec:
project: sova
source:
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
targetRevision: test
targetRevision: main
path: data/test
helm:
valueFiles:
@@ -31,7 +31,7 @@ spec:
project: sova
source:
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-mocks.git
targetRevision: prod
targetRevision: main
path: charts/mocks
destination:
server: https://kubernetes.default.svc
@@ -52,7 +52,7 @@ spec:
project: sova
source:
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
targetRevision: test
targetRevision: main
path: apps/backend
helm:
valueFiles:
@@ -77,7 +77,7 @@ spec:
project: sova
source:
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
targetRevision: test
targetRevision: main
path: apps/adminpanel
helm:
valueFiles:
@@ -102,7 +102,7 @@ spec:
project: sova
source:
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
targetRevision: test
targetRevision: main
path: apps/docs
helm:
valueFiles:
@@ -127,7 +127,7 @@ spec:
project: sova
source:
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
targetRevision: test
targetRevision: main
path: apps/cabinet
helm:
valueFiles:
@@ -1,2 +1,4 @@
SELECT 'CREATE DATABASE sova_cabinet_test OWNER sova_test'
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'sova_cabinet_test')\gexec
SELECT 'CREATE DATABASE redmine_test OWNER sova_test'
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'redmine_test')\gexec
+7
View File
@@ -0,0 +1,7 @@
# Autotesting (issues/27-test)
Pre-deploy tests run in app repos on tags `*-test` and `*-stage` only.
Post-deploy E2E: repository `sova/sova-e2e`, workflow `e2e-tests.yml` after Argo CD sync.
See `sova/docs` → [Автотестирование](http://git.sova.local:30300/sova/docs/src/branch/issues/27-test/infrastructure/autotesting).
@@ -1,14 +0,0 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: devops@sovamed.ru
privateKeySecretRef:
name: letsencrypt-prod
solvers:
- http01:
ingress:
class: nginx
@@ -1,14 +0,0 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
server: https://acme-staging-v02.api.letsencrypt.org/directory
email: devops@sovamed.ru
privateKeySecretRef:
name: letsencrypt-staging
solvers:
- http01:
ingress:
class: nginx
-20
View File
@@ -1,20 +0,0 @@
# Single-node test (812 GB): SQLite, без PostgreSQL HA
postgresql:
enabled: false
postgresql-ha:
enabled: false
gitea:
config:
database:
DB_TYPE: sqlite3
actions:
ENABLED: true
packages:
ENABLED: true
resources:
requests:
memory: 128Mi
limits:
memory: 512Mi
-25
View File
@@ -1,25 +0,0 @@
# Remote test server — 12 GB RAM (kube-prometheus-stack)
grafana:
enabled: true
resources:
requests:
memory: 128Mi
limits:
memory: 256Mi
prometheus:
prometheusSpec:
retention: 3d
scrapeInterval: 60s
evaluationInterval: 60s
resources:
requests:
memory: 512Mi
limits:
memory: 1Gi
# Раскомментировать при нехватке RAM:
# kubeStateMetrics:
# enabled: false
# nodeExporter:
# enabled: false
-24
View File
@@ -1,24 +0,0 @@
---
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: sova-critical
value: 1000000
globalDefault: false
description: "API, PostgreSQL, MySQL — не убивать при OOM"
---
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: sova-normal
value: 100000
globalDefault: true
description: "Gitea, ArgoCD, ingress"
---
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: sova-low
value: 10000
globalDefault: false
description: "Runner, Grafana, Loki — жертвы OOM"