Files
school-dev-k8s/practice/22.ci-cd.p2/6.job.migration/README.md
T
Sergey a37bfb6345 Cicd2 (#32)
add cicd part 2 practice
2021-12-14 18:57:25 +03:00

19 lines
446 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Добавляем 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
```