slime-io / slime

An intelligent ServiceMesh manager based on Istio
https://slime-io.github.io/
Other
424 stars 78 forks source link

lazyload: add switch disableIpv4Passthrough #377

Closed MouceL closed 1 year ago

MouceL commented 1 year ago

我们提供开关禁用ipv4的流量直接透传

使用方式是配置 disableIpv4Passthrough: true

设置后,ipv4流量依旧走到global-sidecar

kind: SlimeBoot
metadata:
  name: lazyload
  namespace: mesh-operator
spec:
  image:
    pullPolicy: Always
    repository: docker.io/slimeio/slime-lazyload
    tag: xx
  namespace: mesh-operator
  istioNamespace: istio-system
  module:
    - name: lazyload
      kind: lazyload
      enable: true
      general:
        disableIpv4Passthrough: true
        autoPort: true
        autoFence: true
        defaultFence: true   
        wormholePort: 
          - "9080"
      global:
        log:
          logLeve
        misc:
          globalSidecarMode: cluster
          metricSourceType: accesslog 
        slimeNamespace: mesh-operator
 //   ..skip

主要针对低版本的istio/envoy 不支持string match,导致懒加载不生效的问题

fix: https://github.com/slime-io/slime/issues/357