github.com/jingruilea/kubeedge@v1.2.0-beta.0.0.20200410162146-4bb8902b3879/docs/setup/kubeedge_precheck.md (about)

     1  # KubeEdge Pre-Check
     2  
     3  ## Status Check
     4  
     5  After the Cloud and Edge parts have started, you can use below command to check the edge node status.
     6  
     7  On cloud host run,
     8  
     9  ```shell
    10  kubectl get nodes
    11  ````
    12  
    13  or
    14  
    15  ```shell
    16  kubectl get nodes -l node-role.kubernetes.io/edge=
    17  ```
    18  
    19  Please make sure the `status` of edge node you created is **ready**.
    20  
    21  ## Deploy Application on cloud side
    22  
    23  Try out a sample application deployment by following below steps.
    24  
    25  ```shell
    26  kubectl apply -f $GOPATH/src/github.com/kubeedge/kubeedge/build/deployment.yaml
    27  deployment.apps/nginx-deployment created
    28  ```
    29  
    30  **Note:** Currently, for applications running on edge nodes, we don't support `kubectl logs` and `kubectl exec` commands(will support in future release), support pod to pod communication running on **edge nodes in same subnet** using edgemesh.
    31  
    32  Then you can use below command to check if the application is normally running.
    33  
    34  Check the pod is up and is `running` state
    35  
    36  ```shell
    37  kubectl get pods
    38  NAME                               READY   STATUS    RESTARTS   AGE
    39  nginx-deployment-d86dfb797-scfzz   1/1     Running   0          44s
    40  ```
    41  
    42  Check the deployment is up and is in `running` state
    43  
    44  ```shell
    45  kubectl get deployments
    46  
    47  NAME               READY   UP-TO-DATE   AVAILABLE   AGE
    48  nginx-deployment   1/1     1            1           63s
    49  ```
    50  
    51  ### Monitoring containers status
    52  
    53  If the container runtime configured to manage containers is containerd , then the following commands can be used to inspect container status and list images.
    54  
    55  ```shell
    56  sudo ctr --namespace k8s.io containers ls
    57  sudo ctr --namespace k8s.io images ls
    58  sudo crictl exec -ti <containerid> /bin/bash
    59  ```
    60  
    61  ## Run Tests
    62  
    63  ### Run Edge Unit Tests
    64  
    65   ```shell
    66   make test
    67   ```
    68  
    69   To run unit tests of a package individually.
    70  
    71   ```shell
    72   export GOARCHAIUS_CONFIG_PATH=$GOPATH/src/github.com/kubeedge/kubeedge
    73   cd <path to package to be tested>
    74   go test -v
    75   ```
    76  
    77  ### Run Edge Integration Tests
    78  
    79  ```shell
    80  make integrationtest
    81  ```
    82  
    83  ### Run E2E Tests
    84  
    85  ```shell
    86  make e2e
    87  ```
    88  
    89  ### Details and use cases of integration test framework
    90  
    91  Please find the [link](https://github.com/kubeedge/kubeedge/tree/master/edge/test/integration) to use cases of intergration test framework for KubeEdge.