欢迎关注我的公众号:
目前刚开始写一个月,一共写了18篇原创文章,文章目录如下:
istio防故障利器,你知道几个,istio新手不要读,太难!
不懂envoyfilter也敢说精通istio系列-http-rbac-不要只会用AuthorizationPolicy配置权限
不懂envoyfilter也敢说精通istio系列-02-http-corsFilter-不要只会vs
不懂envoyfilter也敢说精通istio系列-03-http-csrf filter-再也不用再代码里写csrf逻辑了
不懂envoyfilter也敢说精通istio系列http-jwt_authn-不要只会RequestAuthorization
不懂envoyfilter也敢说精通istio系列-05-fault-filter-故障注入不止是vs
不懂envoyfilter也敢说精通istio系列-06-http-match-配置路由不只是vs
不懂envoyfilter也敢说精通istio系列-07-负载均衡配置不止是dr
不懂envoyfilter也敢说精通istio系列-08-连接池和断路器
不懂envoyfilter也敢说精通istio系列-09-http-route filter
不懂envoyfilter也敢说精通istio系列-network filter-redis proxy
不懂envoyfilter也敢说精通istio系列-network filter-HttpConnectionManager
不懂envoyfilter也敢说精通istio系列-ratelimit-istio ratelimit完全手册
————————————————
chart目录结构
•Chart.yaml: 该chart的描述文件,包括ico地址,版本信息等
•Chart.lock v2 api 具体依赖版本
•values.yaml: 给模板文件使用的变量
•values.schema.json 验证values.yaml
•charts: 依赖其他包的charts文件
•requirements.yaml: 依赖的charts(v1 api)
•requirements.lock v1 api具体依赖的版本
•README.md: 开发人员自己阅读的文件
•LICENSE:版权文件
•crd目录,存放crd资源文件
•templates: 存放k8s模板文件目录
–NOTES.txt 说明文件,helm install之后展示给用户看的内容
–deployment.yaml 创建k8s资源的yaml文件
–_helpers.tpl: 下划线开头的文件,可以被其他模板引用.
V1 Chart.yaml 文件
V2 chart.yaml文件
https://helm.sh/docs/topics/charts
Chart Types
The type field defines the type of chart. There are two types: application and library. Application is the default type and it is the standard chart which can be operated on fully. The library or helper chart provides utilities or functions for the chart builder. A library chart differs from an application chart because it has no resource object and is therefore not installable.
Dependency配置
helm内置对象、
•# Release, release相关属性
•# Chart, Chart.yaml文件中定义的内容
•# Values, values.yaml文件中定义的内容
内置变量
•Release.Name: 实例的名称(注意:不是应用的名称)
•Release.Namespace: 应用实例的命名空间.
•Release.Service: 进行发布的服务。通常这是Tiller .
•Release.IsUpgrade: 如果当前对实例的操作是更新或者回滚,这个变量的值就会被置为true.
•Release.IsInstall: 如果当前对实例的操作是安装,则这边变量被置为true.
•Release.Revision: 版本序号,从1开始,每次使用helm upgrade命令都会增加1.
•Chart: Chart.yaml文件中的内容,所以我们可以使用Chart.Version表示应用版本,Chart.Maintainers函数应用的维护信息.
Files and capabilities
•Files: A map-like object containing all non-special files in the chart. This will not give you access to templates, but will give you access to additional files that are present (unless they are excluded using .helmignore). Files can be accessed using {{ index .Files "file.name" }} or using the {{ .Files.Get name }} or {{ .Files.GetString name }} functions. You can also access the contents of the file as []byte using {{ .Files.GetBytes }}
•Capabilities: A map-like object that contains information about the versions of Kubernetes ({{ .Capabilities.KubeVersion }} and the supported Kubernetes API versions
({{ .Capabilities.APIVersions.Has "batch/v1" }})