-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
396 additions
and
256 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: 注解 | ||
lang: zh-cn | ||
--- | ||
|
||
# Pod 可用注解 | ||
|
||
| name | 类型 | 介绍 | | ||
| ----------------------------------------- | ------------------------ | ----------------------- | | ||
| mars.duc-cnzj.github.io/ignore-containers | string "istio-proxy,app" | 过滤 sidecar 这样的容器 | | ||
| mars.duc-cnzj.github.io/order-index | string "10" | 数值高的在前面 | |
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,45 @@ | ||
--- | ||
title: ingress 域名插件 | ||
lang: zh-cn | ||
--- | ||
|
||
# ingress 域名插件 | ||
|
||
## 同步指定 namespace secret(推荐) | ||
|
||
```yaml | ||
domain_manager_plugin: | ||
name: sync_secret_domain_manager | ||
args: | ||
wildcard_domain: "*.mars.local" | ||
secret_name: "" | ||
secret_namespace: "" | ||
``` | ||
|
||
## 手动配置注入证书 | ||
|
||
```yaml | ||
domain_manager_plugin: | ||
name: manual_domain_manager | ||
args: | ||
wildcard_domain: "*.mars.local" | ||
tls_key: "" | ||
tls_crt: "" | ||
``` | ||
|
||
## cert-manager issue 插件(不推荐) | ||
|
||
```yaml | ||
domain_manager_plugin: | ||
name: cert-manager_domain_manager | ||
args: | ||
wildcard_domain: "*.mars.local" | ||
cluster_issuer: "letsencrypt-mars" | ||
``` | ||
|
||
## default_domain_manager (fake domain) | ||
|
||
```yaml | ||
domain_manager_plugin: | ||
name: default_domain_manager | ||
``` |
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,39 @@ | ||
--- | ||
title: 环境变量 | ||
lang: zh-cn | ||
--- | ||
|
||
# 环境变量 | ||
|
||
|
||
| 变量名称 | 介绍 | | ||
| ------------------- | ------------------------------------ | | ||
| <.Branch> | 分支名称,动态: dev/master... | | ||
| <.Commit> | commit sha, 6位 | | ||
| <.Pipeline> | gitlab 流水线id, github 目前获取不到 | | ||
| <.ClusterIssuer> | Cert-manager 的issuer | | ||
| <.Host1-10> | 域名 | | ||
| <.TlsSecret1-10> | 域名对应的secret | | ||
| <.ImagePullSecrets> | 拉取镜像的秘钥 | | ||
|
||
|
||
|
||
```yaml | ||
imagePullSecrets: <.ImagePullSecrets> | ||
image: | ||
tag: "<.Branch>-<.Pipeline>" | ||
|
||
ingress: | ||
enabled: false | ||
annotations: | ||
cert-manager.io/cluster-issuer: <.ClusterIssuer> | ||
hosts: | ||
- host: <.Host1> | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
tls: | ||
- secretName: <.Secret1> | ||
hosts: | ||
- <.Host1> | ||
``` |
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,27 @@ | ||
--- | ||
title: Git 仓库 | ||
lang: zh-cn | ||
--- | ||
|
||
# Git 仓库 | ||
|
||
## gitlab(推荐) | ||
|
||
```yaml | ||
git_server_plugin: | ||
name: gitlab | ||
args: | ||
token: "" | ||
baseurl: "https://gitlab.com/api/v4" | ||
``` | ||
|
||
## github | ||
|
||
> github 接口不太好用,集成较差,无法使用 `pipeline` 变量 | ||
```yaml | ||
git_server_plugin: | ||
name: github | ||
args: | ||
token: "" | ||
``` |
Oops, something went wrong.