Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5178 from werf/docs-rewrite-charts-doc
doc(usage): move Charts distrubution to separate section
- Loading branch information
Showing
5 changed files
with
83 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Развертывание | ||
permalink: usage/deploy/deployment.html | ||
published: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
title: Чарты | ||
permalink: usage/distribute/charts.html | ||
--- | ||
|
||
## Публикация чартов | ||
|
||
Рекомендуемый способ публикации чарта — публикация бандла (который по существу и является чартом) в OCI-репозиторий: | ||
|
||
1. Разместите чарт в `.helm`; | ||
|
||
2. Если ещё нет `werf.yaml`, то создайте его: | ||
|
||
```yaml | ||
# werf.yaml: | ||
project: mychart | ||
configVersion: 1 | ||
``` | ||
|
||
3. Опубликуйте содержимое `.helm` как чарт `example.org/charts/mychart:v1.0.0` в виде OCI-образа: | ||
|
||
```shell | ||
werf bundle publish --repo example.org/charts --tag v1.0.0 | ||
``` | ||
|
||
### Публикация нескольких чартов из одного Git-репозитория | ||
|
||
Разместите `.helm` с содержимым чарта и соответствующий ему `werf.yaml` в отдельную директорию для каждого чарта: | ||
|
||
``` | ||
chart1/ | ||
.helm/ | ||
werf.yaml | ||
chart2/ | ||
.helm/ | ||
werf.yaml | ||
``` | ||
|
||
Теперь опубликуйте каждый чарт по отдельности: | ||
|
||
```shell | ||
cd chart1 | ||
werf bundle publish --repo example.org/charts --tag v1.0.0 | ||
|
||
cd ../chart2 | ||
werf bundle publish --repo example.org/charts --tag v1.0.0 | ||
``` | ||
|
||
### .helmignore | ||
|
||
Файл `.helmignore`, находящийся в корне чарта, может содержать фильтры по именам файлов, при соответствии которым файлы *не будут добавляться* в чарт при публикации. Формат правил такой же, как и в [.gitignore](https://git-scm.com/docs/gitignore), за исключением: | ||
|
||
- `**` не поддерживается; | ||
|
||
- `!` в начале строки не поддерживается; | ||
|
||
- `.helmignore` не исключает сам себя по умолчанию. |