-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
3,192 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# 日志收集 | ||
|
||
## 前提 | ||
需要安装es服务和filebeat服务,filebeat角色实例应该每个节点都安装。 | ||
|
||
## 使用 | ||
安装成功后,可以在页面中查看对应服务角色实例的日志 | ||
![log.png](images%2Flog.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# minikube部署轻量kubernetes | ||
## 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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Hue on K8s | ||
安装服务 | ||
![img_2.png](../images/hue/img_2.png) | ||
分配角色实例到指定节点安装。 | ||
![img_3.png](../images/hue/img_3.png) | ||
|
||
修改初始化配置,需要填写mysql信息,数据库得提前自行准备好。安装过程会自动初始化hue的表结构。 | ||
![img_4.png](../images/hue/img_4.png) | ||
安装成功后,打开web地址,默认密码是admin/admin | ||
![img_5.png](../images/hue/img_5.png) | ||
查看hdfs文件 | ||
![img.png](../images/hue/img.png) | ||
查看hive表数据 | ||
![img_1.png](../images/hue/img_1.png) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
rules: | ||
- alert: AmoroAms进程存活 | ||
promql: up{job="ams"} != 1 | ||
alertLevel: exception | ||
serviceRoleName: AMORO_AMS | ||
alertAdvice: AmoroAms宕机,请重新启动 | ||
alertInfo: "{{ $labels.job }}的{{ $labels.instance }}实例产生告警" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM gethue/hue:4.11.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
docker build -f Dockerfile -t hue:4.11.0 . | ||
docker tag hue:4.11.0 registry.cn-hangzhou.aliyuncs.com/udh/hue:4.11.0 | ||
docker push registry.cn-hangzhou.aliyuncs.com/udh/hue:4.11.0 | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.