text: var spawn = require('child_process').spawn;
  
  //var cmd = "logs -n test02 -f --tail=100 jego-micro-business-user-4dafcdf544f700db72200f1258a85356-fn223";
  //var cmd = "exec -n test02 -it jego-micro-business-user-9xm27 bash";
  //var cmd = "get no"
  var cmd = "get pods -n test02 -o=json"
  
  //创建一个子进程，将进程描述符赋值给child
  var child = spawn('kubectl', cmd.split(" "));
  
  result = {};
  //监听标准输出流
  child.stdout.on('data', function (data) {
      //process.stdout.write(data);
      result += data;
      console.log(result);
  });
  
  
  
  // //终止进程
  // setTimeout(() => {
  //     //默认发送SIGTERM
  //     child.kill();
  // }, 60*1000);
  
  // //监听子进程退出事件
  // child.on('exit', (code, signal) => {
  //     if (code) {
  //         //正常退出会有一个退出码，0为正常退出，非0一般表示错误
  //         console.log('child process terminated with code ' + code);
  //     } else {
  //         //非正常退出，输出退出信号
  //         console.log('child process terminated with signal ' + signal);
  //     }
  // });