🎉 3.0.3.RELEASE 新增 kuboard-k8s 脚本一键部署方案

This commit is contained in:
smallchill 2021-05-07 13:37:27 +08:00
parent 5b07258afe
commit 05c3a4182b
5 changed files with 89 additions and 6 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM nginx:stable-alpine-perl
RUN rm -f /etc/nginx/nginx.conf \
&& rm -f /etc/nginx/conf.d/default.conf
COPY docker/nginx.k8s.conf /etc/nginx/nginx.conf
EXPOSE 80
COPY ./dist /usr/share/nginx/html
ENTRYPOINT ["nginx", "-g", "daemon off;"]

View File

@ -1,5 +1,5 @@
<p align="center">
<img src="https://img.shields.io/badge/Release-V3.0.2-green.svg" alt="Downloads">
<img src="https://img.shields.io/badge/Release-V3.0.3-green.svg" alt="Downloads">
<img src="https://img.shields.io/badge/JDK-1.8+-green.svg" alt="Build Status">
<img src="https://img.shields.io/badge/license-Apache%202-blue.svg" alt="Build Status">
<img src="https://img.shields.io/badge/Spring%20Cloud-2020-blue.svg" alt="Coverage Status">
@ -28,6 +28,9 @@
## 架构图
<img src="https://gitee.com/smallc/SpringBlade/raw/master/pic/springblade-framework.png"/>
## 趋势图
<a href="https://whnb.wang/smallc/SpringBlade" rel="nofollow"><img src="https://whnb.wang/img/smallc/SpringBlade" alt="Stargazers over time"></a>
## 工程结构
```
SpringBlade
@ -60,7 +63,8 @@ SpringBlade
* 交流二群:`751253339`(满)
* 交流三群:`784729540`(满)
* 交流四群:`1034621754`(满)
* 交流五群:`946350912`
* 交流五群:`946350912`(满)
* 交流六群:`511624269`
## 在线演示
* Saber-基于Vue[https://saber.bladex.vip](https://saber.bladex.vip)
@ -69,8 +73,9 @@ SpringBlade
* Caster-数据大屏展示系统:[https://data.avuejs.com](https://data.avuejs.com)
## 技术文档
* [SpringBlade常见问题集锦](https://sns.bladex.vip/article-14966.html)
* [SpringBlade开发手册一览](https://gitee.com/smallc/SpringBlade/wikis/SpringBlade开发手册)
* [常见问题集锦](https://sns.bladex.vip/article-14966.html)
* [SpringBlade基于Kuboard部署K8S](https://kuboard.cn/learning/k8s-practice/spring-blade/)
## 项目地址
* 后端Gitee地址[https://gitee.com/smallc/SpringBlade](https://gitee.com/smallc/SpringBlade)

58
docker/nginx.k8s.conf Normal file
View File

@ -0,0 +1,58 @@
user root;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
#include /etc/nginx/conf.d/*.conf;
upstream gateway {
server blade-gateway;
}
server {
listen 80;
server_name web;
root /usr/share/nginx/html;
location / {
}
location ^~/api {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_buffering off;
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://gateway;
}
}
}

View File

@ -1,6 +1,6 @@
{
"name": "saber-admin",
"version": "3.0.2",
"version": "3.0.3",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",

View File

@ -3,7 +3,7 @@
<basic-container>
<third-register></third-register>
<p style="text-align: center;">
<img src="https://img.shields.io/badge/Release-V3.0.2-green.svg" alt="Downloads"/>
<img src="https://img.shields.io/badge/Release-V3.0.3-green.svg" alt="Downloads"/>
<img src="https://img.shields.io/badge/JDK-1.8+-green.svg" alt="Build Status"/>
<img src="https://img.shields.io/badge/Spring%20Cloud-2020-blue.svg" alt="Coverage Status"/>
<img src="https://img.shields.io/badge/Spring%20Boot-2.4.4.RELEASE-blue.svg" alt="Downloads"/>
@ -125,6 +125,15 @@
<el-row>
<basic-container>
<el-collapse v-model="logActiveNames" @change="handleChange">
<el-collapse-item title="3.0.3发布 新增kuboard-k8s脚本一键部署方案" name="25">
<div>1.新增blade-develop的dockerfile</div>
<div>2.新增blade-develop推送docker配置</div>
<div>3.新增saber的dockerfile</div>
<div>4.新增kuboard k8s部署脚本</div>
<div>5.新增kuboard k8s部署方案</div>
<div>6.优化pom配置适配新版部署方案</div>
<div>7.优化swagger加载逻辑默认开启knife4j</div>
</el-collapse-item>
<el-collapse-item title="3.0.2.发布 支持Nacos2.0长链接特性" name="24">
<div>1.升级 SpringBoot 2.4.4</div>
<div>2.升级 SpringCloud 2020.0.2</div>
@ -391,7 +400,7 @@
data() {
return {
activeNames: ['1', '2', '3', '5'],
logActiveNames: ['24']
logActiveNames: ['25']
};
},
computed: {