
Istio
Istio
Linux_白菜
一个IT大白
展开
-
Istio示例-故障注入
#访问“ratings”头部信息带“exact: jason”的请求超时7秒apiVersion: networking.istio.io/v1alpha3kind: VirtualServicemetadata: name: ratingsspec: hosts: - ratings http: - match: - headers: end-user: exact: jason fault: delay:原创 2021-08-31 10:09:34 · 250 阅读 · 0 评论 -
istio服务条目(ServiceEntry)
image: ccr.ccs.tencentyun.com/ imagePullPolicy: IfNotPresent name: test resources: limits: cpu: "2" memory: 2Gi requests:...转载 2021-08-11 14:11:31 · 307 阅读 · 0 评论 -
Istio1.8.2关于解决问题
先看下报错 :↓[root@xmcar-10-7 addons]# kubectl apply -f kiali.yaml unable to recognize "kiali.yaml": no matches for kind "MonitoringDashboard" in version "monitoring.kiali.io/v1alpha1"unable to recognize "kiali.yaml": no matches for kind "MonitoringDashboa原创 2021-01-28 16:02:32 · 582 阅读 · 0 评论 -
istio组件[gateway]
Istio-GateWay:负责控制域名流量的请求(请求/拒绝),以及一些证书配置apiVersion: networking.istio.io/v1alpha3kind: Gatewaymetadata: name: test-gateway-wai namespace: apmspec: #选择定义的ingressgateway,即为外网负载均衡 selector: istio: ingressgateway app: istio-ingressgateway原创 2020-10-23 14:20:17 · 466 阅读 · 0 评论 -
istio安装
istioctl安装安装包地址:https://github.com/istio/istio/releasesexport ISTIO_VERSION=1.6.0curl -L https://istio.io/downloadIstio | sh -30min later...#配置istioctl命令tar -zxvf istio-1.6.0-linux-amd64.tar.gzmv istio-1.6.0 /usr/local/istioecho "export PATH=/usr原创 2020-08-25 14:14:15 · 284 阅读 · 0 评论 -
istio下游的服务无法获取client来源IP
问题描述查看Tomcat或Nginx日志时候,发现日志来源IP均为Node节点IP,无法得到真实请求IP访问流程如下Type=NodePort: client \ ^ \ \ v \ node 1 <--- node 2 | ^ SNAT | | ---> v | endpoint客户端发送 tcp 包 到 node2:nodePo原创 2020-06-30 16:58:18 · 1053 阅读 · 0 评论 -
istio功能[熔断]
在并发的连接和请求数超过一个,在istio-proxy进行进一步的请求和连接时,后续请求活连接将被阻止apiVersion: networking.istio.io/v1alpha3kind: DestinationRulemetadata: name: httpbin #规则名称spec: host: httpbin #后端svc trafficPolicy: connectionPool: tcp:原创 2020-06-28 19:22:31 · 596 阅读 · 0 评论 -
开启Istio-sidecar注入
通过修改namespace实现自动注入kubectl label namespaces auto istio-injection=enabledkubectl edit namespace auto原创 2020-06-11 14:41:38 · 341 阅读 · 0 评论 -
Istio功能[灰度发布]
自定义流量百分比apiVersion: networking.istio.io/v1alpha3kind: VirtualServicemetadata: name: nginx-pubshingspec: hosts: - 'test1.test.com' gateways: - nginx-gateway http: - route: - destination: host: nginx subset: v1 w原创 2020-05-29 15:12:58 · 250 阅读 · 0 评论 -
Istio组件IngressGateway
创建HTTPS证书的secretkubectl create -n istio-system secret generic all-test.com-credential --from-file=key=private.key --from-file=cert=full_chain.pem创建网关kubectl apply -f test-gateway.yamlapiVersion: networking.istio.io/v1beta1kind: Gatewaymetadata:原创 2020-05-27 16:33:39 · 1018 阅读 · 0 评论