From 09e9ac2a80fc4675bbdb98cf7cbacf93841d2685 Mon Sep 17 00:00:00 2001 From: xiaojian Date: Thu, 14 Dec 2023 21:13:01 +0800 Subject: [PATCH 1/5] [fix] dinky pod no show log --- .../EDP-1.0.0/dinky/render/bootstrap-dinky.sh.ftl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cloudeon-stack/EDP-1.0.0/dinky/render/bootstrap-dinky.sh.ftl b/cloudeon-stack/EDP-1.0.0/dinky/render/bootstrap-dinky.sh.ftl index e1ade271..806502ee 100644 --- a/cloudeon-stack/EDP-1.0.0/dinky/render/bootstrap-dinky.sh.ftl +++ b/cloudeon-stack/EDP-1.0.0/dinky/render/bootstrap-dinky.sh.ftl @@ -28,9 +28,7 @@ hdfs dfs -put dlink-app.jar /dlink/jar/ rm -rf dlink-app.jar hdfs dfs -mkdir -p /flink/lib/ hdfs dfs -put $FLINK_HOME/lib/*.jar /flink/lib/ -nohup java $JAVA_OPTS \ - -cp $CLASS_PATH \ --Dlogging.config=$DINKY_CONF/log4j2.xml -Dspring.config.location=$DINKY_CONF/dinky-application.yaml,$DINKY_CONF/application.properties com.dlink.Dlink > $log 2>&1 & -echo $! > $pid -tail -f /dev/null \ No newline at end of file +java $JAVA_OPTS \ + -cp $CLASS_PATH \ +-Dlogging.config=$DINKY_CONF/log4j2.xml -Dspring.config.location=$DINKY_CONF/dinky-application.yaml,$DINKY_CONF/application.properties com.dlink.Dlink \ No newline at end of file From 3d470ef4c0ce18ede57406b46c7bcfd0106d2042 Mon Sep 17 00:00:00 2001 From: xiaojian Date: Thu, 14 Dec 2023 21:18:39 +0800 Subject: [PATCH 2/5] fix no pid --- .../EDP-1.0.0/dinky/render/bootstrap-dinky.sh.ftl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cloudeon-stack/EDP-1.0.0/dinky/render/bootstrap-dinky.sh.ftl b/cloudeon-stack/EDP-1.0.0/dinky/render/bootstrap-dinky.sh.ftl index 806502ee..a45d70b6 100644 --- a/cloudeon-stack/EDP-1.0.0/dinky/render/bootstrap-dinky.sh.ftl +++ b/cloudeon-stack/EDP-1.0.0/dinky/render/bootstrap-dinky.sh.ftl @@ -28,7 +28,9 @@ hdfs dfs -put dlink-app.jar /dlink/jar/ rm -rf dlink-app.jar hdfs dfs -mkdir -p /flink/lib/ hdfs dfs -put $FLINK_HOME/lib/*.jar /flink/lib/ - -java $JAVA_OPTS \ +nohup java $JAVA_OPTS \ -cp $CLASS_PATH \ --Dlogging.config=$DINKY_CONF/log4j2.xml -Dspring.config.location=$DINKY_CONF/dinky-application.yaml,$DINKY_CONF/application.properties com.dlink.Dlink \ No newline at end of file +-Dlogging.config=$DINKY_CONF/log4j2.xml -Dspring.config.location=$DINKY_CONF/dinky-application.yaml,$DINKY_CONF/application.properties com.dlink.Dlink > $log 2>&1 & + +echo $! > $pid +tail -f /opt/edp/${service.serviceName}/log/dinky-$HOSTNAME.out \ No newline at end of file From 9ea03c0249f51acb3ae9a9d5846790961dfba798 Mon Sep 17 00:00:00 2001 From: xiaojian Date: Sat, 16 Dec 2023 19:19:06 +0800 Subject: [PATCH 3/5] [DOC]add minikube environment deployment --- .../minikube.md" | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 "cloudeon-docs/docs/\345\256\211\350\243\205\351\203\250\347\275\262/minikube.md" diff --git "a/cloudeon-docs/docs/\345\256\211\350\243\205\351\203\250\347\275\262/minikube.md" "b/cloudeon-docs/docs/\345\256\211\350\243\205\351\203\250\347\275\262/minikube.md" new file mode 100644 index 00000000..c9aa8946 --- /dev/null +++ "b/cloudeon-docs/docs/\345\256\211\350\243\205\351\203\250\347\275\262/minikube.md" @@ -0,0 +1,53 @@ +## 1. 简介 + +本文介绍使用minikube部署轻量kubernetes,用于CloudEon测试环境搭建。 + +## 2. 环境准备 +安装minikube、vmware。 +```text +注:不能使用docker作为虚拟节点驱动,因为无法直接访问节点ip和端口。 +``` + +## 3. 部署kubernetes环境 +```shell +minikube start --vm-driver=vmware --nodes 3 +``` + +## 4. 设置所有节点root远程登录密码 +### 4.1 查看kubernetes节点列表 +```shell +minikube node list +``` +```text +minikube 192.168.142.135 +minikube-m02 192.168.142.136 +minikube-m03 192.168.142.137 +``` +### 4.2 登录kubernetes子节点 +```shell +minikube ssh -n minikube-m03 +``` +### 4.3 设置root密码 +```shell +sudo passwd +``` +### 4.4 允许root用户远程登录 +```shell +sudo vi /etc/ssh/sshd_config +``` +修改 +```shell +PermitRootLogin yes +``` +重启sshd服务 +```shell +sudo systemctl restart sshd +``` +### 4.5 验证root用户远程登录 +```shell +ssh root@minikube-m03 +``` +## 5. 获取kubernetes的kubeConfig +```shell +cat ~/.kube/config +``` \ No newline at end of file From 070bfa2454c61c2237d38ae99d721c02127adf23 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 04:36:07 +0000 Subject: [PATCH 4/5] docs: update README.md [skip ci] --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index e5232d6f..93da9e52 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d rugalcrimson
rugalcrimson

💻 buer
buer

💻 + + stdnt-xiao
stdnt-xiao

💻 + From 5a8fbad36b5b8f71126e911f66378ec1c0ba6c15 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 04:36:08 +0000 Subject: [PATCH 5/5] docs: update .all-contributorsrc [skip ci] --- .all-contributorsrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index f1dff12c..007dd6c8 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -133,6 +133,15 @@ "contributions": [ "code" ] + }, + { + "login": "stdnt-xiao", + "name": "stdnt-xiao", + "avatar_url": "https://avatars.githubusercontent.com/u/20313983?v=4", + "profile": "https://github.com/stdnt-xiao", + "contributions": [ + "code" + ] } ], "contributorsPerLine": 7,