From 1b29d50ba4e3254e1a1b07835a4fc59c15be4aab Mon Sep 17 00:00:00 2001 From: Snowykami Date: Tue, 29 Jul 2025 08:15:20 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20feat:=20Update=20README=20with?= =?UTF-8?q?=20feature=20list=20and=20deployment=20instructions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refactor: Remove old Helm chart files and templates feat: Add new Helm chart structure for neo-blog deployment chore: Add .helmignore and initial Chart.yaml for Helm chart feat: Implement backend and frontend deployment templates in Helm chart feat: Create services and ingress configurations for backend and frontend chore: Define resource limits and requests for backend and frontend in values.yaml feat: Enable autoscaling configuration for backend and frontend deployments chore: Clean up unused files and configurations from previous setup --- README.md | 16 +++++++++++++++- {chart => helm}/.helmignore | 0 {chart => helm}/Chart.yaml | 0 {chart => helm}/templates/_helpers.tpl | 0 .../templates/backend-deployment.yaml | 0 {chart => helm}/templates/backend-service.yaml | 0 .../templates/frontend-deployment.yaml | 0 {chart => helm}/templates/frontend-service.yaml | 0 {chart => helm}/templates/hpa.yaml | 0 {chart => helm}/templates/ingress.yaml | 0 {chart => helm}/templates/serviceaccount.yaml | 0 {chart => helm}/values.yaml | 0 12 files changed, 15 insertions(+), 1 deletion(-) rename {chart => helm}/.helmignore (100%) rename {chart => helm}/Chart.yaml (100%) rename {chart => helm}/templates/_helpers.tpl (100%) rename {chart => helm}/templates/backend-deployment.yaml (100%) rename {chart => helm}/templates/backend-service.yaml (100%) rename {chart => helm}/templates/frontend-deployment.yaml (100%) rename {chart => helm}/templates/frontend-service.yaml (100%) rename {chart => helm}/templates/hpa.yaml (100%) rename {chart => helm}/templates/ingress.yaml (100%) rename {chart => helm}/templates/serviceaccount.yaml (100%) rename {chart => helm}/values.yaml (100%) diff --git a/README.md b/README.md index 067cddd..003fbb7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,20 @@ # neo-blog 新的博客,前端由next驱动,后端由hertz驱动 +## 功能列表 + +- [x] 支持Markdown,HTML,Text格式的文章 +- [x] 支持文章分类和标签 +- [ ] 页面管理 +- [ ] 支持文章置顶 +- [x] OIDC认证和注册 +- [x] 支持多用户 +- [ ] 高级评论功能(后端已实装) +- [ ] 支持多语言 +- [x] 移动端适配 +- [ ] 后台管理 +- [ ] 富文本编辑器 + ## 部署 ### 使用容器化部署(Docker Compose)(推荐) @@ -46,7 +60,7 @@ docker compose up -d 启动后,将外部网关请求转发到前端服务的端口即可 -### 使用容器化部署(Kubernetes)(推荐 但是还未发布helm chart) +### 使用容器化部署(Kubernetes 暂未完全支持,有需求者可以查看[helm](./helm)目录) 可以使用[Helm Chart](https://artifacthub.io/packages/helm/snowykami/neo-blog)进行部署。 diff --git a/chart/.helmignore b/helm/.helmignore similarity index 100% rename from chart/.helmignore rename to helm/.helmignore diff --git a/chart/Chart.yaml b/helm/Chart.yaml similarity index 100% rename from chart/Chart.yaml rename to helm/Chart.yaml diff --git a/chart/templates/_helpers.tpl b/helm/templates/_helpers.tpl similarity index 100% rename from chart/templates/_helpers.tpl rename to helm/templates/_helpers.tpl diff --git a/chart/templates/backend-deployment.yaml b/helm/templates/backend-deployment.yaml similarity index 100% rename from chart/templates/backend-deployment.yaml rename to helm/templates/backend-deployment.yaml diff --git a/chart/templates/backend-service.yaml b/helm/templates/backend-service.yaml similarity index 100% rename from chart/templates/backend-service.yaml rename to helm/templates/backend-service.yaml diff --git a/chart/templates/frontend-deployment.yaml b/helm/templates/frontend-deployment.yaml similarity index 100% rename from chart/templates/frontend-deployment.yaml rename to helm/templates/frontend-deployment.yaml diff --git a/chart/templates/frontend-service.yaml b/helm/templates/frontend-service.yaml similarity index 100% rename from chart/templates/frontend-service.yaml rename to helm/templates/frontend-service.yaml diff --git a/chart/templates/hpa.yaml b/helm/templates/hpa.yaml similarity index 100% rename from chart/templates/hpa.yaml rename to helm/templates/hpa.yaml diff --git a/chart/templates/ingress.yaml b/helm/templates/ingress.yaml similarity index 100% rename from chart/templates/ingress.yaml rename to helm/templates/ingress.yaml diff --git a/chart/templates/serviceaccount.yaml b/helm/templates/serviceaccount.yaml similarity index 100% rename from chart/templates/serviceaccount.yaml rename to helm/templates/serviceaccount.yaml diff --git a/chart/values.yaml b/helm/values.yaml similarity index 100% rename from chart/values.yaml rename to helm/values.yaml