Compare commits
6 Commits
issues/27-test
...
prod
| Author | SHA1 | Date | |
|---|---|---|---|
| 3c30b86826 | |||
| 558f955af0 | |||
| 6f2ec4f944 | |||
| 8a9a96d8bc | |||
| b16e3eaace | |||
| a99498db80 |
@@ -1,9 +1,9 @@
|
|||||||
ingress:
|
ingress:
|
||||||
host: admin.test.sova.local
|
host: adm.dev.sovamed.ru
|
||||||
runtimeEnv:
|
env:
|
||||||
API_BASE_URL: http://api.test.sova.local
|
API_BASE_URL: https://api.dev.sovamed.ru
|
||||||
image:
|
image:
|
||||||
tag: adminpanel-v1.0.4-test
|
tag: adminpanel-v1.0.10-test
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
repository: git.sova.local/sova/adminpanel
|
repository: git.sova.local/sova/adminpanel
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
ingress:
|
ingress:
|
||||||
host: api.test.sova.local
|
host: api.dev.sovamed.ru
|
||||||
image:
|
image:
|
||||||
tag: backend-v1.0.4-test
|
tag: backend-v1.0.10-test
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
repository: git.sova.local/sova/backend
|
repository: git.sova.local/sova/backend
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: gitea-registry
|
- name: gitea-registry
|
||||||
env:
|
env:
|
||||||
API_PUBLIC_URL: http://api.test.sova.local
|
API_PUBLIC_URL: https://api.dev.sovamed.ru
|
||||||
API_BASE_URL: http://api.test.sova.local
|
API_BASE_URL: https://api.dev.sovamed.ru
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
ingress:
|
ingress:
|
||||||
host: cabinet.test.sova.local
|
host: cabinet.dev.sovamed.ru
|
||||||
image:
|
image:
|
||||||
tag: cabinet-v1.0.3-test
|
tag: cabinet-v1.0.10-test
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
repository: git.sova.local/sova/cabinet
|
repository: git.sova.local/sova/cabinet
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
ingress:
|
ingress:
|
||||||
host: docs.sova.local
|
host: docs.dev.sovamed.ru
|
||||||
image:
|
image:
|
||||||
tag: docs-v1.0.8-test
|
tag: docs-v1.0.10-test
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
repository: git.sova.local/sova/docs
|
repository: git.sova.local/sova/docs
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ spec:
|
|||||||
project: default
|
project: default
|
||||||
source:
|
source:
|
||||||
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
||||||
targetRevision: main
|
targetRevision: prod
|
||||||
path: argocd/apps
|
path: argocd/apps
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# Только для локальной фермы (Multipass). На удалённом test — не применять.
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
@@ -7,7 +8,7 @@ spec:
|
|||||||
project: sova
|
project: sova
|
||||||
source:
|
source:
|
||||||
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
||||||
targetRevision: main
|
targetRevision: prod
|
||||||
path: apps/redmine
|
path: apps/redmine
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
@@ -7,7 +7,7 @@ spec:
|
|||||||
project: default
|
project: default
|
||||||
source:
|
source:
|
||||||
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
||||||
targetRevision: main
|
targetRevision: prod
|
||||||
path: argocd/projects
|
path: argocd/projects
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ spec:
|
|||||||
project: sova
|
project: sova
|
||||||
source:
|
source:
|
||||||
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
||||||
targetRevision: main
|
targetRevision: test
|
||||||
path: data/test
|
path: data/test
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
@@ -31,7 +31,7 @@ spec:
|
|||||||
project: sova
|
project: sova
|
||||||
source:
|
source:
|
||||||
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-mocks.git
|
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-mocks.git
|
||||||
targetRevision: main
|
targetRevision: prod
|
||||||
path: charts/mocks
|
path: charts/mocks
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
@@ -52,7 +52,7 @@ spec:
|
|||||||
project: sova
|
project: sova
|
||||||
source:
|
source:
|
||||||
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
||||||
targetRevision: main
|
targetRevision: test
|
||||||
path: apps/backend
|
path: apps/backend
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
@@ -77,7 +77,7 @@ spec:
|
|||||||
project: sova
|
project: sova
|
||||||
source:
|
source:
|
||||||
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
||||||
targetRevision: main
|
targetRevision: test
|
||||||
path: apps/adminpanel
|
path: apps/adminpanel
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
@@ -102,7 +102,7 @@ spec:
|
|||||||
project: sova
|
project: sova
|
||||||
source:
|
source:
|
||||||
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
||||||
targetRevision: main
|
targetRevision: test
|
||||||
path: apps/docs
|
path: apps/docs
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
@@ -127,7 +127,7 @@ spec:
|
|||||||
project: sova
|
project: sova
|
||||||
source:
|
source:
|
||||||
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
||||||
targetRevision: main
|
targetRevision: test
|
||||||
path: apps/cabinet
|
path: apps/cabinet
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
|
|||||||
@@ -1,4 +1,2 @@
|
|||||||
SELECT 'CREATE DATABASE sova_cabinet_test OWNER sova_test'
|
SELECT 'CREATE DATABASE sova_cabinet_test OWNER sova_test'
|
||||||
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'sova_cabinet_test')\gexec
|
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
|
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
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
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
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
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
# Single-node test (8–12 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
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
# 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
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
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"
|
||||||
Reference in New Issue
Block a user