mirror of
https://github.com/slurm-personal/school-dev-k8s.git
synced 2026-06-27 13:50:24 +00:00
19 lines
446 B
Markdown
19 lines
446 B
Markdown
# Добавляем pre-install hook с миграцией БД
|
||
|
||
## 1. Копируем манифест deployment и job.migrate
|
||
|
||
```
|
||
cp job.migrate.yaml ~/xpaste/.helm/templates/
|
||
cp deployment.yaml ~/xpaste/.helm/templates/
|
||
```
|
||
|
||
## 2. Пушим, ждем запуска, рассматриваем
|
||
|
||
```
|
||
cd ~/xpaste
|
||
git add .helm/templates/job.migrate.yaml
|
||
git add .helm/templates/deployment.yaml
|
||
git commit -m "Add migrate job"
|
||
git push
|
||
```
|