# safeline-lts-helmchart
**Repository Path**: andyhau/safeline-lts-helmchart
## Basic Information
- **Project Name**: safeline-lts-helmchart
- **Description**: 长亭雷池WAF开源LTS长期支持版自制HelmChart
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2024-11-26
- **Last Updated**: 2025-11-04
## Categories & Tags
**Categories**: Uncategorized
**Tags**: waf, web-application-firewall, k8s-deployment, chaitin-waf, helm-chart-deployment
## README
SafeLine - 雷池 - 长期支持TLS版本 - HelmChart
雷池官方网站 |
TLS版GIT仓库 |
预览版GIT仓库 |
中文文档
## ----- Readme -----
**提醒:**
此分支为LTS(长期支持)稳定版本分支,此分支中的仅包含LTS版本。
LTS版本从8.8.0-lts开始,并同时支持国际版部署。
如需使用预览版,请访问如下GIT仓库:
https://github.com/yaencn/safeline-helmchart
- Github的长期支持LTS版本仓库:
https://github.com/yaencn/safeline-lts-helmchart
GIT仓库在中国大陆的加速地址:
- 预览版仓库
https://gitee.com/andyhau/safeline-helmchart.git
- LTS版仓库
https://gitee.com/andyhau/safeline-lts-helmchart.git
- 国际版本部署支持
从appVersion为8.8.2开始支持x86_64架构的国际版部署支持,如需部署国际版本,请将value.yaml文件参数修改为如下值:
`global.image.registry=chaitin`
`global.image.region="-g"`
## ----- HelmChart Install -----
- HelmChart网页地址:
https://helm.yaencn.com
- HelmChart仓库地址:
此链接将在2025年9月1日起失效:
https://g-otkk6267-helm.pkg.coding.net/Charts/safeline
最新helmchart仓库地址:
https://helm.yaencn.com/charts
- 举例:
```shell
# 添加helmchart repo仓库
helm repo add yaencn https://helm.yaencn.com/charts
# 安装中文版举例
helm install safeline --namespace safeline \
--set global.ingress.enabled=true \
--set global.ingress.hostname="waf.local" \
yaencn/safeline-lts
# 安装国际版举例
helm install safeline --namespace safeline \
--set global.ingress.enabled=true \
--set global.ingress.hostname="waf.local" \
--set global.image.registry=chaitin \
--set global.image.region="-g" \
yaencn/safeline-lts
# 升级版本
helm -n safeline upgrade safeline yaencn/safeline-lts
# 检出HelmChart包文件
helm fetch --version 1.0.0 yaencn/safeline-lts
# 卸载版本
helm -n safeline uninstall safeline
```
## ----- Helm Build -----
```shell
# 检测helmchart-template是否有语法问题
cd safeline
helm template charts/ --output-dir ./result
```
```shell
helm package ./safeline/charts/ -d ./assets/safeline
helm repo index --merge ./index.yaml --url assets assets/
rm -f ./index.yaml
mv ./assets/index.yaml ./index.yaml
cd ./assets/safeline/
helm coding-push safeline-lts-${app-version}.tgz safeline-lts
```
## ----- Installation Remind -----
**警告:**
该HelmChart中的任何deployment资源清单只能部署一个pod副本!
如果运行多个pod副本,整个WAF服务将出现未知错误.
## ----- Configuration Description -----
WAF控制台web界面可通过nginx-ingress绑定域名,具体参加values.yaml文件。
```yaml
# 设置雷池WAF控制台通过域名访问,如:demo.waf-ce.chaitin.cn
global:
ingress:
# 是否开启雷池WAF控制通过域名访问,默认未开启
enabled: true
hostname: waf.local
ingressClassName: nginx
pathType: ImplementationSpecific
path: /
tls:
# 是否加载HelmChart外部的HTTPS域名证书的Secret.
# 如果有则请填写Secret名称,默认不填写及域名仅开启http访问.
# 如填写如下项,请在运行该HelmChart前创建好对应的Secret。
secretName: "waf-xxx-com-tls"
```