Skip to content

Latest commit

 

History

History
110 lines (66 loc) · 3.02 KB

README.md

File metadata and controls

110 lines (66 loc) · 3.02 KB

----helm package ------

# 检测helmchart-template是否有语法问题
cd safeline
helm template charts/ --output-dir ./result 
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-${app-version}.tgz safeline

------Installation Remind------

Warning:

Any deployment resource in this HelmChart can only deploy one pod replica!

If multiple pod replicas are run, the entire WAF service will encounter unknown errors.

警告:

该HelmChart中的任何deployment资源清单只能部署一个pod副本!

如果运行多个pod副本,整个WAF服务将出现未知错误.

Acceleration address of GIT warehouse in Chinese Mainland:

GIT仓库在中国大陆的加速地址:

https://gitee.com/andyhau/safeline-helmchart.git

Before version 6.1.2:

在6.1.2版本之前,需要手动配置服务暴露方式,默认为NodePort方式。

These services must run on the same workload node in the k8s cluster:

这些服务必须运行在k8s集群中的同一个工作负载节点上。

safeline-chaos, safeline-detector, safeline-tengine

It is recommended to use the nodeSelector setting.

建议使用nodeSelector进行设置。

After version 6.1.2:

在6.1.2版本之后,默认使用NodePort方式暴露服务。

default Expose Services As Ports mode.

默认使用NodePort方式暴露服务。

If you want to use the Ingress mode, you need to configure the global.exposeServicesAsPorts.enabled field in the values file to false.

如果你想使用Ingress方式,需要将values文件中的global.exposeServicesAsPorts.enabled字段设置为false

Can be controlled by the value of the global.exposeServicesAsPorts.enabled field in the values file.

可以通过values文件中的global.exposeServicesAsPorts.enabled字段的值进行控制。

After version 6.9.1:

Add WAF console web interface to bind domain names through nginx-ingress. Specifically participate in the values.yaml file.

增加WAF控制台web界面可通过nginx-ingress绑定域名,具体参加values.yaml文件。

  # 设置雷池WAF控制台通过域名访问,如:demo.waf-ce.chaitin.cn
  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"

------HelmChart Install-----------

Sample:

helm repo add safeline https://g-otkk6267-helm.pkg.coding.net/Charts/safeline