• YAML在线编辑器
  • YAML文档
 
  • YAML在线编辑器
  • YAML文档
  • K8S配置示例
  • Istio配置示例
  • 程序读取YAML文件

istio: Gateway 、VirtualService 配置示例


Gateway

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: bookinfo-gateway
spec:
  selector:
    istio: ingressgateway # use istio default controller
  servers:
  - port:
      number: 80
      name: http
      protocol: HTTP
    hosts:
    - "*"

VirtualService

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: bookinfo
spec:
  hosts:
  - "*"
  gateways:
  - bookinfo-gateway
  http:
  - match:
    - uri:
        exact: /productpage
    - uri:
        prefix: /static
    - uri:
        exact: /login
    - uri:
        exact: /logout
    - uri:
        prefix: /api/v1/products
    route:
    - destination:
        host: productpage
        port:
          number: 9080
02/27 posted in  Istio配置示例

YAML的常见使用场景

分类

K8S配置示例 Istio配置示例 程序读取YAML文件

最近文章

  • K8S ingress YAML 配置示例
  • K8S Service YAML 配置示例
  • K8S StatefulSets YAML 配置示例
  • K8S Deployment YAML 配置示例
  • istio: Gateway 、VirtualService 配置示例

Copyright © YAML在线编辑器