mirror of
https://github.com/slurm-personal/school-dev-k8s.git
synced 2026-06-27 13:50:24 +00:00
fix
This commit is contained in:
@@ -19,6 +19,7 @@ deploy:prod:
|
||||
- kubectl config set-context ci --cluster=k8s --user=ci
|
||||
- kubectl config use-context ci
|
||||
- helm upgrade --install xpaste .helm
|
||||
-f .helm/values.prod.yaml
|
||||
--set image=$CI_REGISTRY_IMAGE
|
||||
--set imageTag=$CI_COMMIT_REF_SLUG.$CI_PIPELINE_ID
|
||||
--debug
|
||||
@@ -31,5 +32,25 @@ deploy:prod:
|
||||
|
||||
Или копируем готовый файл `.gitlab-ci.yml` в репозиторий xpaste.
|
||||
|
||||
## 2. Создаем production настройки для чарта
|
||||
|
||||
```bash
|
||||
cd .helm
|
||||
cp values.yaml values.prod.yaml
|
||||
vi values.prod.yaml
|
||||
```
|
||||
|
||||
Исправляем адрес БД в .helm/values.prod.yaml
|
||||
```
|
||||
env:
|
||||
DB_HOST: 10.0.0.19
|
||||
```
|
||||
|
||||
Исправляем host в ingress
|
||||
|
||||
```
|
||||
ingress:
|
||||
host: xpaste.s000005.vkcs.slurm.io
|
||||
```
|
||||
Пушим, смотрим результат.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user