惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

www.infosecurity-magazine.com
www.infosecurity-magazine.com
D
DataBreaches.Net
T
Tailwind CSS Blog
M
MIT News - Artificial intelligence
Stack Overflow Blog
Stack Overflow Blog
F
Full Disclosure
V2EX - 技术
V2EX - 技术
N
News and Events Feed by Topic
Help Net Security
Help Net Security
L
LangChain Blog
Y
Y Combinator Blog
宝玉的分享
宝玉的分享
Google Online Security Blog
Google Online Security Blog
P
Proofpoint News Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
B
Blog RSS Feed
N
Netflix TechBlog - Medium
N
News | PayPal Newsroom
TaoSecurity Blog
TaoSecurity Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Vulnerabilities – Threatpost
B
Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
I
Intezer
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
AI
AI
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cyberwarzone
Cyberwarzone
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
G
GRAHAM CLULEY
Vercel News
Vercel News
罗磊的独立博客
MyScale Blog
MyScale Blog
Last Week in AI
Last Week in AI
博客园 - 司徒正美
C
CERT Recently Published Vulnerability Notes
GbyAI
GbyAI
Scott Helme
Scott Helme
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Troy Hunt's Blog
A
About on SuperTechFans
P
Privacy International News Feed

博客园 - cn2025

kubeSphere发布ruoyi-pro后端 k8s集群-kubeShpere 20260710 安装Helm 20260710 k8s-portainer docker 镜像查询 k8集群一键重置 docker run OceanBase spring ai alibaba doc AI2.0 【多模态】 20260615 世界只有一个墨脱 AI2.0 【Mcp-client】 20260611 AI2.0 【Mcp-server】 20260611 GoLand 配Go SDK AI2.0 【redis向量-Rag】 问答顾问器QuestionAnswerAdvisor 20260608 AI2.0 【redis向量】redis-stack 20260608 AI2.0 【Embedding】嵌入模型 20260606 AI 工具 AI2.0 Tool调用20260604 AI2.0 对话chatMemory20260601 AI2.0 模型输出结构化【POJO、Record、List、Map 】20260530 AI2.0 Prompt【模板、流式 API、系统提示词】 20260529 AI2.0 自定义Advisor 20260528 AI2.0 ollama 20260528 AI2.0 dashscope-openai 20260527 ps 配Claude 20260527 spring-ai-alibaba-agent 260526 票务 Tool+Spring Security【动态tooLs:toolCallbacks】 20260525 spring-ai-alibaba-agent 260525 spring-ai-alibaba-agent 260523 票务 Tool接口 / 方法 / 参数【无意义、可读、业务化、参数数量过多】 20260521 票务 Tool参数幻觉 20260521 spring-ai-alibaba-agent 260521 ToolTemperature 温度过低,AI推算缺失自由度20260520 spring-ai-alibaba-agent 260520 票务Tool 20260519 票务助手 -多模型20260518 结构化输出 -原理【structuredconverter】20260518 spring-ai-alibaba-agent 260518 Dify 添加Ollma模型qwen2:0.5b 应用 20260516 docker 部【dify-api】/【dify-web】 20260514 Chatclient 结构化输出20260514 spring-ai-alibaba-agent 260514 Chatmemory 多层(近、中、长期)20260513 ChatmemoryRedis 历史对话存【REDIS】20260512 ChatmemoryJdbc 历史对话存【JDBC】20260511 spring-ai-alibaba-agent 260511 ChatmemoryConversationId 多用户对话记忆 20260508 spring-ai-alibaba-agent 260508 ChatmemoryMax 历史对话长度20260507 2026SE Chatmemory 对话记忆20260506 spring-ai-alibaba-agent 260506 ChatClientPrompt 自定义拦截器【ReReadingAdvisor】重读提示词 20260430 docker-apache/kafka:4.1.2部暑 集群20260423 ChatClientPrompt Template.st20260428 ChatClientPrompt Template20260427 sb-KafkaListener 20260425 docker-apache/kafka:4.1.2部暑 20260425 dashscope-sb ChatClientPrompt20260425 SBAI-MultiPlatformAndModel 20260424 PlatformModel SB-ChatClient-DeepSeekDashScopeOllamaModel 20260424 dashscope-sb ChatClient20260420 ollama-sb 多态 图转文 20260418 【gemma3:4b 解析慢】 dashscope-sb 多模态(图片、语音识别) 文生视频 ollama-sb 20260414 dashscope-sb 阿里百炼-文生图20260413 dashscope-sb20260413 dashscope-sb20260411 docker-zabbix 20260410 deepseek-sb20260408 MQTT20260403 spring-ai-alibaba-agent 260403 MqttTest 20260401 spring-ai-alibaba-agent 260401 docker安装 EMQX spring-ai-alibaba-agent 260331 MQTT 20260331 spring-ai-alibaba-agent 三大 Java 生态 AI Agent 框架 CentOS7-静态 IP centos-stream10 安装 百炼-工作流-sb sb-flink1.13.1-jdk8-分隔字符串 20260125
kubeSphere发布ruoyi-web前端 20260711
2026cn · 2026-07-11 · via 博客园 - cn2025

1、ruoyi-web端端打包dist

image

2、 生成镜像

image

2.1

dist

image

2.2

nginx.conf

image

image

2.3  DockerFile 文件内容如下

image

# 基础Nginx镜像
FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/u-sb/nginx:latest

# 只清理默认页面,不删除sites配置文件
RUN rm -rf /var/www/html/*

# 复制自定义配置到conf.d,Nginx会自动加载该目录下所有.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf

# 复制前端dist静态资源
COPY dist /var/www/html

# 前台运行Nginx,防止容器退出重启
CMD ["nginx", "-g", "daemon off;"]

2.4   生成镜像

docker build -t 192.168.91.164/rouyi-biz/yudao-web:20260731 .

image

镜像推送到harbor

image

2.5  镜像192.168.91.164/rouyi-biz/yudao-web:20260731   保存为tar文件

docker save -o yudao-web20260731.tar 192.168.91.164/rouyi-biz/yudao-web:20260731

image

2.6  tar 文件复制到  master(192.168.91.166),node2(192.168.91.167),node3(192.168.91.168)

yudao-web20260731.tar

scp yudao-web20260731.tar root@192.168.91.166:/root/

scp yudao-web20260731.tar root@192.168.91.167:/root/

scp yudao-web20260731.tar root@192.168.91.168:/root/

2.7 master(192.168.91.166),node2(192.168.91.167),node3(192.168.91.168)

     把yudao-web20260731.tar   导入镜像

     docker load -i /root/yudao-web20260731.tar 

image

3、创建Deployment、Service文件yaml

kubeSphere 用命令创建 namespace: biz-rouyi

image

   【Deployment、Service】rouyi-ng-web.yaml内容如下

apiVersion: apps/v1
kind: Deployment
metadata:
name: rouyi-ng-web
namespace: biz-rouyi
spec:
replicas: 1
selector:
matchLabels:
app: rouyi-ng-web
template:
metadata:
labels:
app: rouyi-ng-web
spec:
imagePullSecrets:
- name: harbor-auth
containers:
- name: rouyi-nginx-web
#image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/u-sb/nginx:latest
image: 192.168.91.164/rouyi-biz/yudao-web:20260731
imagePullPolicy: Never
command:
- nginx
args:
- -g
- daemon off;
ports:
- containerPort: 80
---
# 新增Service片段,type直接写NodePort
apiVersion: v1
kind: Service
metadata:
name: rouyi-ng-web
namespace: biz-rouyi
spec:
type: NodePort
selector:
app: rouyi-ng-web
ports:
- port: 80
targetPort: 80
nodePort: 30080 # 固定端口30080,范围30000-32767

4、发布【Deployment、Service】

kubectl apply -f rouyi-ng-web.yaml -n biz-rouyi

查看kubectl get pods -n  biz-rouyi

image

查看kubectl  deployment日志

kubectl logs -f deployment/rouyi-ng-web -n biz-rouyi

image

5、kubeSphere

image

image

6、http://192.168.91.166:30080/

http://192.168.91.166:30080/login?redirect=/index

image