apiVersion: v1
kind: ConfigMap
metadata:
  name: edgemesh-gateway-cfg
  namespace: kubeedge
  labels:
    k8s-app: kubeedge
    kubeedge: edgemesh-gateway
data:
  edgemesh.yaml: |
    apiVersion: agent.edgemesh.config.kubeedge.io/v1alpha1
    kind: EdgeMeshAgent
    kubeAPIConfig:
      burst: 200
      contentType: application/vnd.kubernetes.protobuf
      kubeConfig: ""
      master: "http://127.0.0.1:10550"
      qps: 100
    goChassisConfig:
      protocol:
        tcpBufferSize: 8192
        tcpClientTimeout: 5
        tcpReconnectTimes: 3
      loadBalancer:
        defaultLBStrategy: RoundRobin
        supportLBStrategies:
          - RoundRobin
          - Random
          - ConsistentHash
        consistentHash:
          partitionCount: 100
          replicationFactor: 10
          load: 1.25
    modules:
      edgeDNS:
        enable: false
        listenInterface: docker0
        listenPort: 53
      edgeProxy:
        enable: false
        subNet: 10.10.0.0/16
        listenInterface: docker0
        listenPort: 40001
      edgeGateway:
        enable: true
        nic: "*"
        includeIP: "*"
        excludeIP: "*"
