当前位置: 首页 > news >正文

网站敏感字wordpress添加多个下载地址

网站敏感字,wordpress添加多个下载地址,阜阳做网站的网络公司,wordpress html生成app文章目录 原理实现DeploymentVirtualServiceDestinationRule 约束部署 目的: 根据不同的引擎版本#xff0c;可以把请求发送到指定的引擎上。可以实现版本降级。 原理 Istio通过VirtualService和DestinationRule两个资源对象来实现流量管理#xff0c;其中VirtualService用于… 文章目录 原理实现DeploymentVirtualServiceDestinationRule 约束部署 目的: 根据不同的引擎版本可以把请求发送到指定的引擎上。可以实现版本降级。 原理 Istio通过VirtualService和DestinationRule两个资源对象来实现流量管理其中VirtualService用于定义流量路由规则而DestinationRule用于定义服务的负载均衡策略和TLS设置 VirtualService: 实现服务请求路由规则的动能DestinationRule: 实现⽬标服务的负载均衡、服务发现、故障处理和故障注⼊的功能Gateway: 让服务⽹格内的服务可以被全世界看到ServiceEntry: 让服务⽹格内的服务可以看到外⾯的世界 实现 Deployment {{- $revisionHistoryLimit : .Values.revisionHistoryLimit -}} {{- $replicaCount : .Values.replicaCount -}} {{- $autoscaling : .Values.autoscaling.enabled -}} {{- $podAnnotations : .Values.podAnnotations -}} {{- $imagePullSecrets : .Values.imagePullSecrets -}} {{- $podSecurityContext : .Values.podSecurityContext -}} {{- $securityContext : .Values.securityContext -}} {{- $pullPolicy : .Values.pullPolicy -}} {{- $port : .Values.service.port -}} {{- $resources : .Values.resources -}} {{- $nodeSelector : .Values.nodeSelector -}} {{- $repository : .Values.image.repository -}} {{- $affinity : .Values.affinity -}} {{- $tolerations : .Values.tolerations -}} {{- range $num,$tag : .Values.image.tag -}} {{- $version : add $num 1 -}} apiVersion: apps/v1 kind: Deployment metadata:name: {{ include grpc-manifest.fullname $ }}-v{{ $version }}labels:{{- include grpc-manifest.labels $ | nindent 4 }}app.kubernetes.io/tag: v{{ $version }}app.kubernetes.io/type: grpc spec:revisionHistoryLimit: {{ $revisionHistoryLimit | default 5 }}{{- if not $autoscaling }}replicas: {{ $replicaCount }}{{- end }}selector:matchLabels:{{- include grpc-manifest.selectorLabels $ | nindent 6 }}app.kubernetes.io/tag: v{{ $version }}app.kubernetes.io/type: grpc...{{end }}作用可以根据版本生成对应的服务 VirtualService {{- define grpc-manifest.gateway -}} {{- $port : .Values.services.port }} {{- range $num,$image : .Values.image.tag }} {{- $version : add $num 1 }}- match:- headers:grpcsvc:exact: v{{ $version }}route:- destination:host: {{ include grpc-manifest.fullname $ }}port:number: {{ $port }}subset: v{{ $version }} {{- end }} {{- end }}例子中虚拟服务将流量分发服务的两个子集v$version。也可设置权重默认是 100表示 携带 header为grpcsvc: v$version 的流量将全量被路由到 v$version DestinationRule 目标规则定义了如何将请求路由到实际的服务实例。每个目标规则关联到一个虚拟服务的子集 {{- define grpc-manifest.route -}} {{- range $num,$image : .Values.image.tag }} {{- $version : add $num 1 }}- name: v{{ $version }}labels:app.kubernetes.io/instance: {{ include grpc-manifest.fullname $ }}app.kubernetes.io/tag: v{{ $version }} {{- end }} {{- end }}例子中目标规则将子集 v$version 分别映射到具有相应标签的实际服务实例。 需要多个版本同时部署时会根据镜像自动更新资源配置 [rootycloud grpc-manifest]# cat env/devel/image_tag.yaml image:tag:- v1.0.1- v1.0.2- v1.0.3- v1.0.4约束 根据定义好的行为实现 访问通过添加metadata的方式来选择指定的版本并且如果访问中 metadata 指定有误要做降级策略给默认且可正常运行的版本 eg: (案例仅限测试生产根据实际需求更新) apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter metadata:name: {{ include grpc-manifest.fullname . }} spec:workloadSelector:labels:app: istio-ingressgatewayconfigPatches:- applyTo: HTTP_FILTERmatch:context: GATEWAYlistener:filterChain:filter:name: envoy.filters.network.http_connection_managersubFilter:name: envoy.filters.http.routerpatch:operation: INSERT_BEFOREvalue:name: envoy.filters.http.luatyped_config:type: type.googleapis.com/envoy.extensions.filters.http.lua.v3.LuainlineCode: |function envoy_on_request(request_handle)local contentType request_handle:headers():get(content-type)if contentType and string.find(contentType, grpc) thenlocal grpcSvcHeader request_handle:headers():get(grpcsvc)local allowedVersions {v1, v2, v3, v4}local isInAllowedVersions falsefor _, allowedVersion in ipairs(allowedVersions) doif grpcSvcHeader allowedVersion thenisInAllowedVersions truebreakendendif not isInAllowedVersions thenrequest_handle:headers():replace(grpcsvc, v1)endendend部署 待实现 自动部署和之前服务有出入需要针对这个服务做调整主要判断通过版本引擎来自动更新旧版本 具体 Helm 案例届时会更新到 GitHub
http://www.dnsts.com.cn/news/128529.html

相关文章:

  • 网站建设华网天下制作作做视频网站用哪个模板
  • 扬州网站建设价格深圳深圳建设网站
  • 网站模糊效果今天秦皇岛最新通知公告
  • 电脑店免费建站抖音推广项目计划书
  • 上海做网站公司排名免费的个人简历模板表格
  • 中小企业网站建设教程大型网站需要什么样的团队
  • 网站开发如何修改字体wordpress按钮拨电话
  • 石家庄专业建站公司重庆网络seo
  • 那个装修公司的网站做的好wordpress建娱乐站
  • 推广 高端网站建设网站同城在线哪里做
  • 高端品牌网站定制设计网站规划建设方案模板
  • 外贸公司网站开发阿里云域名注册优惠口令
  • wordpress网站响应时间钱宝网站怎么做任务
  • 怎么做网站的内链微信公众号平台建立
  • 微信平台制作网站开发信息发布类网站模板
  • 网站优化的内容wordpress访问量
  • 做网站免费服务器哪家好老五wordpress
  • 天津做网站公司做淘宝保健品药品在哪个网站找素材
  • 怎么建设食品网站在线免费制作头像logo设计
  • 做定制校服的网站物业管理系统有哪些模块
  • 个人网站做论坛谷歌在线搜索
  • 什么是网站模块自助建站广告发布
  • 网站设计 线框图广州市学校安全教育平台官网
  • 网站建设时间及简介建设银行杭州招聘网站
  • 网站开发需要多少钱推荐涟水建设银行网站
  • 怎么搜索到自己网站怎样建网站买东西
  • 网址模板建站电子商务企业网站制作
  • 论前端对网站建设的重要性怎样给响应式网站提速
  • 凡科做 淘宝客网站asp.net 手机网站开发教程
  • 网站页面的优化旅游政务网站建设方案