github.com/midokura/kubeedge@v1.2.0-mido.0/build/edge/README.md (about)

     1  ## Deploy kubeedge's edge nodes using containers
     2  
     3  This method will guide you to deploy the edge part running in docker
     4  container and MQTT Broker, so make sure that docker engine listening on
     5  `/var/run/docker.sock` which will then mount into the edge container.
     6  
     7  + Check the container runtime environment
     8    ```bash
     9    cd build/edge
    10    ./run_daemon.sh prepare
    11    ```
    12  
    13  + Set container parameters
    14  
    15    The following parameters do not need to be set if they are not modified.
    16  
    17    | name            | default                           | note                       |
    18    | --------------- | --------------------------------- | -------------------------- |
    19    | cloudhub        | 0.0.0.0:10000                     |                            |
    20    | edgename        | edge-node                         |                            |
    21    | edgecore_image | kubeedge/edgecore:latest          |                            |
    22    | arch            | amd64                             | Optional: amd64 \| arm64v8 \| arm32v7 \| i386 \| s390x |
    23    | qemu_arch       | x86_64                            | Optional: x86_64 \| aarch64 \| arm \| i386 \| s390x  |
    24    | certpath        | /etc/kubeedge/certs               |                            |
    25    | certfile        | /etc/kubeedge/certs/edge.crt      |                            |
    26    | keyfile         | /etc/kubeedge/certs/edge.key      |                            |
    27  
    28    ```shell
    29    ./run_daemon.sh set \
    30            cloudhub=0.0.0.0:10000 \
    31            edgename=edge-node \
    32            edgecore_image="kubeedge/edgecore:latest" \
    33            arch=amd64 \
    34            qemu_arch=x86_64 \
    35            certpath=/etc/kubeedge/certs \
    36            certfile=/etc/kubeedge/certs/edge.crt \
    37            keyfile=/etc/kubeedge/certs/edge.key 
    38    ```
    39  
    40  + Build image
    41  
    42    ```
    43    ./run_daemon.sh build
    44    ```
    45  
    46  + **(Optional)** If the performance of the edge is not enough, you can cross-compile the image of the edge on the cloud and load the image on the edge.
    47  
    48    - Set the CPU type
    49  
    50      ```
    51      ./run_daemon.sh set arch=arm64v8 qemu_arch=aarch64
    52      ```
    53    - Build image
    54      ```
    55      ./run_daemon.sh build
    56      ```
    57    - Save image
    58      ```
    59      ./run_daemon.sh save
    60      ```
    61  
    62  + Start container
    63    ```
    64    ./run_daemon.sh up
    65    ```