All Products
Search
Document Center

Container Service for Kubernetes:Special configurations of ACK Edge clusters when Express Connect circuits are used

Last Updated:May 17, 2024

In edge computing scenarios that require cloud-edge collaboration, ACK Edge clusters provide multiple network solutions to enable cloud-edge communication. Edge computing resources and services can communicate with the control planes in the cloud over the Internet. Cloud-edge communication can also be enabled by using Express Connect circuits to connect data centers to virtual private clouds (VPCs). This topic describes the special configurations of ACK Edge clusters that you must take note of when Express Connect circuits are used.

1. You do not need to configure SNAT and EIPs

SNAT allows clusters to access the Internet. An elastic IP address (EIP) allows you to access the API server of a cluster over the Internet. If you do not have these requirements when Express Connect circuits are used, you do not need to configure SNAT or EIPs when you create a cluster.

Important
  • If your business requires Internet access, you must configure SNAT for the cluster.

  • If you want to access the API server of a cluster over the Internet, you must use an EIP.

Warning

To use an EIP, configure the EIP when you create an ACK Edge cluster. You cannot associate an EIP with the API server of a cluster after the cluster is created.

2. Configure the edge-tunnel-server and edge-tunnel-agent components after the cluster is created

Note
  • You can change the configuration of the edge-tunnel component only for ACK Edge clusters of V1.20.11 and earlier versions.

  • ACK Edge V1.22 and later versions support node pools that connect to the cloud over Express Connect circuits. You need to only create a node pool of this type and connect it to the cloud. For more information, see Create an edge node pool.

In most edge computing scenarios, edge resources are deployed in private networks and cannot be directly accessed from the cloud. You can use the edge-tunnel-server and edge-tunnel-agent components to enable cloud-edge O&M data exchange. You can use Express Connect circuits to connect edge-tunnel-agent at the edge and the pod of edge-tunnel-server in the cloud to enable cloud-edge communication. To use Express Connect circuits in an efficient manner, perform the following steps to configure the components:

  1. Run the following command to change the type of the x-tunnel-server-svc Service that is used by edge-tunnel-server from LoadBalancer to ClusterIP:

    kubectl apply -f - <<EOF
    apiVersion: v1
    kind: Service
    metadata:
      labels:
        name: edge-tunnel-server
      name: x-tunnel-server-svc
      namespace: kube-system
    spec:
      ports:
      - name: https
        port: 10263
        protocol: TCP
        targetPort: 10263
      - name: tcp
        port: 10262
        protocol: TCP
        targetPort: 10262
      selector:
        k8s-app: edge-tunnel-server
      sessionAffinity: None
      type: ClusterIP
    EOF
  2. Log on to the node on which the pod of edge-tunnel-server runs and delete the /var/lib/edge-tunnel-server/pki directory.

  3. Run the following command to recreate the pods that are provisioned for edge-tunnel-server and edge-tunnel-agent.

    kubectl -n kube-system get po | grep tunnel | awk '{print $1}' | xargs kubectl -n kube-system delete po

3. Open the VXLAN port in the security group for cloud-edge communication

If applications in the cloud need to communicate with applications at the edge by using container networks, you must configure the security group of the cluster to open UDP port 8472. To open the port, perform the following steps:

  1. Log on to the ACK console. In the left-side navigation pane, click Clusters.

  2. On the Clusters page, click the name of the cluster that you want to manage and click the Cluster Resources tab.

  3. Click the link to the right of Security Group. On the page that appears, configure the security group to open UDP port 8472.

    For more information, see Add a security group rule.