配置

Helm 配置

EdgeMesh

EdgeMesh 的 Helm Chart 配置放在 build/helm/edgemesh 目录下。

1. edgemesh-agent

名称类型使用示例描述
imagestring--set agent.image=kubeedge/edgemesh-agent:v1.12.0指定 edgemesh-agent 使用的镜像
pskstring--set agent.psk=123456PSK 密码
relayNodeslist--set agent.relayNodes[0].nodeName=k8s-master中继节点配置表
metaServerSecretstring--set agent.metaServerSecret=metaserver-certs存放 metaServer 证书文件的 Secret
kubeAPIConfigobject--set agent.kubeAPIConfig.master=https://1.1.1.1:6443与 configmap 的 kubeAPIConfig 含义相同
commonConfigobject--set agent.commonConfig.bridgeDeviceIP=169.254.96.16与 configmap 的 commonConfig 含义相同
modulesobject--set agent.modules.edgeProxy.socks5Proxy.enable=true与 configmap 的 modules 含义相同

EdgeMesh-Gateway

EdgeMesh-Gateway 的 Helm Chart 配置放在 build/helm/edgemesh-gateway 目录下。

名称类型使用示例描述
imagestring--set image=kubeedge/edgemesh-gateway:v1.12.0指定 edgemesh-gateway 使用的镜像
nodeNamestring--set nodeName=k8s-master指定 edgemesh-gateway 部署的节点
pskstring--set psk=123456PSK 密码
relayNodeslist--set relayNodes[0].nodeName=k8s-master中继节点配置表
metaServerSecretstring--set metaServerSecret=metaserver-certs存放 metaServer 证书文件的 Secret
kubeAPIConfigobject--set kubeAPIConfig.master=https://1.1.1.1:6443与 configmap 的 kubeAPIConfig 含义相同
modulesobject--set modules.edgeGateway.nic=eth0与 configmap 的 modules 含义相同

ConfigMap 配置

提示

详细的字段解释,请参考 API定义在新窗口打开

edgemesh-agent-cfg

apiVersion: agent.edgemesh.config.kubeedge.io/v1alpha1
kind: EdgeMeshAgent
kubeAPIConfig:
  master: https://119.8.211.54:6443
  contentType: application/vnd.kubernetes.protobuf
  qps: 100
  burst: 200
  kubeConfig: /root/.kube/config
  metaServer:
    server: http://127.0.0.1:10550
    security:
      requireAuthorization: false
      insecureSkipTLSVerify: false
      tlsCaFile: /etc/edgemesh/metaserver/rootCA.crt
      tlsCertFile: /etc/edgemesh/metaserver/server.crt
      tlsPrivateKeyFile: /etc/edgemesh/metaserver/server.key
  deleteKubeConfig: false
commonConfig:
  bridgeDeviceName: edgemesh0
  bridgeDeviceIP: 169.254.96.16
modules:
  edgeDNS:
    enable: false
    listenPort: 53
    cacheDNS:
      enable: false
      autoDetect: true
      upstreamServers:
      - 10.96.0.10
      - 1.1.1.1
      cacheTTL: 30
  edgeProxy:
    enable: false
    socks5Proxy:
      enable: false
      listenPort: 10800
    loadBalancer:
      consistentHash:
        partitionCount: 100
        replicationFactor: 10
        load: 1.25
    serviceFilterMode: FilterIfLabelExists
  edgeTunnel:
    enable: false
    listenPort: 20006
    transport: tcp
    rendezvous: EDGEMESH_PLAYGOUND
    relayNodes:
    - nodeName: k8s-master
      advertiseAddress:
      - 1.1.1.1
    - nodeName: ke-edge1
      advertiseAddress:
      - 2.2.2.2
      - 3.3.3.3
    enableIpfsLog: false
    maxCandidates: 5
    heartbeatPeriod: 120
    finderPeriod: 60
    psk:
      enable: true
      path: /etc/edgemesh/psk
    tunnelLimitConfig:
      enable: false
      tunnelBaseStreamIn: 10240
      tunnelBaseStreamOut: 10240
      TunnelPeerBaseStreamIn: 1024
      tunnelPeerBaseStreamOut: 1024
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68

edgemesh-gateway-cfg

apiVersion: gateway.edgemesh.config.kubeedge.io/v1alpha1
kind: EdgeMeshGateway
kubeAPIConfig:
  master: https://119.8.211.54:6443
  contentType: application/vnd.kubernetes.protobuf
  qps: 100
  burst: 200
  kubeConfig: /root/.kube/config
  metaServer:
    server: http://127.0.0.1:10550
    security:
      requireAuthorization: false
      insecureSkipTLSVerify: false
      tlsCaFile: /etc/edgemesh/metaserver/rootCA.crt
      tlsCertFile: /etc/edgemesh/metaserver/server.crt
      tlsPrivateKeyFile: /etc/edgemesh/metaserver/server.key
  deleteKubeConfig: false
modules:
  edgeGateway:
    enable: false
    nic: "lo,eth0",
    includeIP: "192.168.0.1,172.16.0.1",
    excludeIP: "10.0.0.1",
    loadBalancer:
      consistentHash:
        partitionCount: 100
        replicationFactor: 10
        load: 1.25
  edgeTunnel:
    enable: false
    listenPort: 20006
    transport: tcp
    rendezvous: EDGEMESH_PLAYGOUND
    relayNodes:
    - nodeName: k8s-master
      advertiseAddress:
      - 1.1.1.1
    - nodeName: ke-edge1
      advertiseAddress:
      - 2.2.2.2
      - 3.3.3.3
    enableIpfsLog: false
    maxCandidates: 5
    heartbeatPeriod: 120
    finderPeriod: 60
    psk:
      enable: true
      path: /etc/edgemesh/psk
    tunnelLimitConfig:
      enable: false
      tunnelBaseStreamIn: 10240
      tunnelBaseStreamOut: 10240
      TunnelPeerBaseStreamIn: 1024
      tunnelPeerBaseStreamOut: 1024
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54