{"id":13799165,"url":"https://github.com/weibaohui/blazork8s","last_synced_at":"2025-08-24T18:37:52.319Z","repository":{"id":46983847,"uuid":"374388167","full_name":"weibaohui/blazork8s","owner":"weibaohui","description":"manage k8s using c# blazor enhance by chatgpt ,try  something new ！使用blazor技术开发的内置OpenAI GPT的k8s 管理界面","archived":false,"fork":false,"pushed_at":"2025-02-11T14:41:17.000Z","size":90465,"stargazers_count":188,"open_issues_count":0,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T21:14:20.973Z","etag":null,"topics":["blazor","chatgpt","devops","kubernetes","netcore","openai","qwen"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weibaohui.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-06-06T14:57:45.000Z","updated_at":"2025-03-03T15:24:39.000Z","dependencies_parsed_at":"2024-01-02T09:49:16.640Z","dependency_job_id":"f7642358-69d3-4a0a-b433-f7e782c4d968","html_url":"https://github.com/weibaohui/blazork8s","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/weibaohui/blazork8s","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weibaohui%2Fblazork8s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weibaohui%2Fblazork8s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weibaohui%2Fblazork8s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weibaohui%2Fblazork8s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weibaohui","download_url":"https://codeload.github.com/weibaohui/blazork8s/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weibaohui%2Fblazork8s/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271923385,"owners_count":24844237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blazor","chatgpt","devops","kubernetes","netcore","openai","qwen"],"created_at":"2024-08-04T00:00:59.448Z","updated_at":"2025-08-24T18:37:52.301Z","avatar_url":"https://github.com/weibaohui.png","language":"C#","funding_links":[],"categories":["Blazor","Libraries \u0026 Extensions"],"sub_categories":["Others"],"readme":"[![Build](https://github.com/weibaohui/blazork8s/actions/workflows/BlazorApp.yml/badge.svg)](https://github.com/weibaohui/blazork8s/actions/workflows/server.yml)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"/BlazorApp/wwwroot/pro_icon.svg\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eBlazor k8s\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"Readme.md\"\u003eEnglish\u003c/a\u003e | \u003ca href=\"Readme_cn.md\"\u003e中文\u003c/a\u003e\n\u003c/div\u003e\n\n\ngolang 版本  [https://github.com/weibaohui/k8m](https://github.com/weibaohui/k8m)\n\nA Kubernetes management tool written in C# Blazor, integrating the ChatGPT large models. \nIt features a user-friendly interface for easy and efficient Kubernetes administration. \nParticularly suitable for beginners, it offers various convenient functionalities to help novices grasp Kubernetes knowledge.\n\n\n* Colorful and intuitive display of Kubernetes resources.\n* Yaml-defined fields are analyzed and displayed in a tree structure, accompanied by documentation. Additionally, translation using a large model is available, eliminating concerns about forgetting definitions.\n* Detailed explanations of Kubernetes resource fields, ensuring no ambiguity about the number of options and their meanings.Official documentation with clickable links.\n* Integration of official examples in a directory tree format, allowing easy browsing, reference, and field copying.\n* Support efficient editing of YAML resources, enabling writing YAML fields on one side of the page while referring to field definitions at the same time.\n* Support displaying corresponding Service and Ingress on the Pod page, and support displaying backend Pods on the Service and Ingress pages.\n* Generation of Yaml 、Problem analysis、Security checks using a large model.\n* Support conversational k8s functionality operations, such as semantic commands to check the running status of pods in the default namespace.\n* Display resource usage dynamically (requires installation of metric server), and support viewing detailed statistical data* Integration of page functionalities such as kubectl describe, kubectl explain, kubectl top and other high-frequency commands. These can be accessed with a simple click on the user interface.\n* Inspection functionality added to the cluster page, conducting common error checks on major resource objects and providing detailed lists.\n* Supports Chinese, English, as well as French, German, Italian, Russian, Spanish, French, Japanese, Korean, and 12  languages.\n* Visualize the relationships and states between workload resources intuitively through a topology diagram.\n* Supports GatewayAPI, including GatewayClass, Gateway, HTTPRoute, GRPCRoute, TCPRoute, and UDPRoute.\n* Support using Mermaid.js to visualize HttpRoute resources, which is intuitive and clear.\n## ☀️ License\n\n[![BlazorK8s](https://img.shields.io/badge/License-MIT-blue?style=flat-square)](https://github.com/weibaohui/blazork8s/blob/master/LICENSE)\n\n# k8s install\n\nCreate a small Kubernetes cluster using [KinD](https://kind.sigs.k8s.io/docs/user/quick-start/)、[MiniKube](https://minikube.sigs.k8s.io/docs/start/)\n\n## KinD way\n\n* install KinD on mac with `brew`.\n```\nbrew install kind\n```\n\n* Create a new Kubernetes cluster. \n\n```\nkind create cluster --name k8sgpt-demo\n```\n\n#  Deploy BlazorK8s to a cluster and experience it:\n\n## kubectl apply yaml\n\n```docker\nkubectl apply -f https://raw.githubusercontent.com/weibaohui/blazork8s/main/deploy/deployment.yaml\n```\n\n* View the ui：\n  By default, it uses NodePort for access. Please visit port 31999, or configure Ingress on your own.\n  http://NodePortIP:31999 (!Do not use 127.0.0.1/localhost!)\n\n## Start a Docker image to experience it\n### x86 Run\nNote: When using Docker Desktop, you need to handle the access domain address of the API server yourself. Ensure that it is accessible within the Docker environment.\n```docker\ndocker run -it --rm    -v ~/.kube/:/root/.kube/ -p 4000:8080 ghcr.io/weibaohui/blazork8s:0.2.7\n```\n### ARM Run (Mac M1/2/3)\n```docker\ndocker run -it --rm    -v ~/.kube/:/root/.kube/ -p 4000:8080 ghcr.io/weibaohui/blazork8s:0.2.7-arm\n```\n\n* View：http://IP:4000 (!Do not use 127.0.0.1/localhost!)\n\n# Debug\n\n```\n git clone git@github.com:weibaohui/blazork8s.git\n cd blazork8s/BlazorApp\n dotnet watch run\n```\n# Interface Language Configuration\nThe interface defaults to displaying in Chinese. To set a default display in another language, modify the `appsettings.json` in the source code's `BlazorApp` directory or the image's `/app/appsettings.json`.\n```\n\"SimpleI18n\": {\n\"LocaleFilesPath\": \"wwwroot/lang\",\n\"DefaultCultureName\": \"LANGUAGE\"\n}\n```\nThe available values for `LANGUAGE` include\n```json\n{\n  \"en-US\": \"English\",\n  \"zh-CN\": \"中文(Chinese)\",\n  \"es\": \"Español (Spanish)\",\n  \"ru\": \"Русский (Russian)\",\n  \"pt-br\": \"Português (Portuguese)\",\n  \"pl\": \"Polski (Polish)\",\n  \"ko\": \"한국어 (Korean)\",\n  \"ja\": \"日本語 (Japanese)\",\n  \"fr\": \"Français (French)\",\n  \"de\": \"Deutsch (German)\",\n  \"hi\": \"हिंदी (Hindi)\",\n  \"it\": \"Italiano (Italian)\"\n}\n```\n# ChatGPT config \n\n* √ [MoonShot AI](https://kimi.moonshot.cn/)\n* √ [Google Gemini](https://gemini.google.com/)\n* √ [Ali Qwen](https://tongyi.aliyun.com/qianwen/)\n* √ [iFlytek Spark](https://xinghuo.xfyun.cn/spark)\n* √ [OpenAI](https://openai.com/)\n* √ [One-API](https://github.com/songquanpeng/one-api) same as OpenAI\n* √ [LM Studio](https://github.com/lmstudio-ai/lms)  same as OpenAI\n* √ [Ollama](https://ollama.com/) same as OpenAI\n* √ [SiliconFlow](https://siliconflow.cn/) same as OpenAI\n\nModify the `appsettings.json` in the BlazorApp directory or `/app/appsettings.json`  in the image.\n\n```\n  \"AI\": {\n    \"Enable\": true, //enabled\n    \"Select\": \"OpenAI\" //choose a model from below\n  },\n  \"OpenAI\": {\n    \"Token\": \"sk-kkkkkkkkkkkkkkkkkkkk\",\n    \"Model\": \"alibaba/Qwen2-7B-Instruct\",\n    \"BaseUrl\": \"https://api.siliconflow.cn/v1\"\n  },\n  \"GeminiAI\": {\n    \"APIKey\": \"AIxxxxxxx7dd3494880a7920axxxxxxxxx\",\n    \"Model\": \"gemini-pro\"\n  }\n```\n\n## Effectiveness\n\n### DocTree expands YAML definitions in a tree-like structure, no longer worry about forgetting the definitions.\n\n\u003cbr\u003e\n  \u003cimg src=\"/docs/img/doc-tree.gif\"\u003e\n  \u003cbr\u003e\n\n### Explanation of Field Meanings\n\n#### Click on the question mark next to the field on the resource details page.\n\n* Use kubectl to obtain Kubernetes explanations\n* Using a configured AI large model for intelligent interpretation, the results are as follows:\n  \u003cbr\u003e\n  \u003cimg src=\"/docs/img/kubectl-explain.gif\"\u003e\n  \u003cbr\u003e\n\n### Generate deployment YAML\n\n\u003cbr\u003e\nObtain k8s deployment YAML through prompts and execute \u003cbr\u003e\n\u003cimg src=\"/docs/img/gpt-deploy.gif\"\u003e\n\u003cbr\u003e\n\n### Intelligent Analysis\n\nAdded intelligent analysis and security analysis buttons on each resource.\n\u003cbr\u003e\n\u003cimg src=\"/docs/img/POD-analyze.gif\"\u003e\n\u003cbr\u003e\n\n### Workload Diagram\nVisualize the relationships and states between workload resources intuitively through a topology diagram\n\u003cimg src=\"/docs/img/deploy-diagram.jpg\"\u003e\n\u003cimg src=\"/docs/img/diagram.gif\"\u003e\n\u003cbr\u003e\n\n\n\n## GatewayAPI support\n\n* GatewayClass\n* Gateway\n* HTTPRoute\n* GRPCRoute\n* TCPRoute\n* UDPRoute\n  \u003cbr\u003e\n  \u003cimg src=\"/docs/img/HTTPRoute-Graph-View.png\"\u003e\n\n\n\n## UI preview\n\n[click me](docs/ui.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweibaohui%2Fblazork8s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweibaohui%2Fblazork8s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweibaohui%2Fblazork8s/lists"}