基于K8S的轻量化大数据课程实验教学平台构建
前端地址:https://github.com/fanb129/Kube-CC_vue
后端地址:https://github.com/fanb129/Kube-CC
- 后端Go1.18,Gin,[email protected], gorm,zap,jwt-go
- 前端vue2 + element,基于vue-admin-template模板
- kubernetes1.25.0
- MySQL8
- 环境部署文档
- 将kubernetes配置文件
admin.conf
(一般在/etc/kubernetes/admin.conf
),拷贝到项目的conf目录 - 如果此程序运行在k8s集群以外,admin.conf中的域名可能无法解析(如apiserver.cluster.local),可替换为物理机具体的ip
创建/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
添加
编辑
进入终端
添加