Skip to content

fanb129/Kube-CC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kube-CC

基于K8S的轻量化大数据课程实验教学平台构建

前端地址:https://github.com/fanb129/Kube-CC_vue

后端地址:https://github.com/fanb129/Kube-CC

一、环境

  1. 后端Go1.18,Gin,[email protected], gorm,zap,jwt-go
  2. 前端vue2 + element,基于vue-admin-template模板
  3. kubernetes1.25.0
  4. MySQL8
  5. 环境部署文档

二、后端配置文件

1. k8s配置文件

  • 将kubernetes配置文件admin.conf(一般在/etc/kubernetes/admin.conf),拷贝到项目的conf目录
  • 如果此程序运行在k8s集群以外,admin.conf中的域名可能无法解析(如apiserver.cluster.local),可替换为物理机具体的ip

2. 后端配置文件

创建/conf/conf.ini配置文件,以下为模板

[server]
AppMode = debug
Port = :8080
PageSize = 10
ProjectName = fanb.com

[kubernetes]
KubeConfig = ./conf/admin.conf
SparkImage = registry.cn-shanghai.aliyuncs.com/fanb/myspark:1.5.2_v1
CentosImage = registry.cn-shanghai.aliyuncs.com/fanb/mycentos:7
UbuntuImage = registry.cn-shanghai.aliyuncs.com/fanb/myubuntu:18.04
;HadoopImage = registry.cn-shanghai.aliyuncs.com/fanb/myhadoop:latest
HadoopImage = kubeguide/hadoop:latest

[database]
DbType = mysql
#DbHost = 127.0.0.1
DbHost = ******
DbPort = 3306
DbUser = root
DbPassWord = ******
DbName = k8s_deploy_gin
RedisHost = ***
RedisPort = 6379
[jwt]
JwtKey = kubernetes.com
TokenExpiredTime = 604800

[password]
bcryptCost = 10
SshPwd = root123456

[master]
Host = 192.168.139.131
Port = 22
User = root
Password = 1234567890

三、项目介绍

1. 总体结构图

2. 网络结构图

3. 平台功能结构图

4. 系统整体架构图

5. 后端结构图

6. 前端结构图

四、项目展示

1. 首页

2. 用户管理

3. node

4. namespace

5. deployment

添加

编辑

6. service

7. pod

8. spark

进入终端

添加

9. terminal

About

自动部署集群,云计算平台搭建

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published