
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://goreportcard.com/report/github.com/kube-green/kube-green https://github.com/kube-green/kube-green/actions/workflows/test.yml https://github.com/kube-green/kube-green/actions/workflows/security.yml https://coveralls.io/github/kube-green/kube-green?branch=main https://kube-green.dev https://kube-green.dev/docs/adopters/
How many of your dev/preview pods stay on during weekends? Or at night? It's a waste of resources! And money! But fear not, kube-green is here to the rescue.
kube-green is a simple k8s addon that automatically shuts down (some of) your resources when you don't need them.
If you already use kube-green, add you as an https://github.com/kube-green/kube-green.github.io/blob/main/CONTRIBUTING.md#add-your-organization-to-adopters!
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See how to install the project on a live system in our https://kube-green.dev/docs/install/.
Make sure you have Go installed (https://go.dev/dl/). Version 1.19 or higher is required.
To have kube-green running locally just clone this repository and install the dependencies running:
golanggo get
There are different types of tests in this repository.
It is possible to run all the unit tests with
shmake test
To run integration tests:
shmake e2e-test
To deploy kube-green in live systems, follow the https://kube-green.dev/docs/install/.
To run kube-green for development purpose, you can use ko to deploy
in a KinD cluster.
It is possible to start a KinD cluster running kind create cluster --name kube-green-development.
To deploy kube-green using ko, run:
shmake local-run clusterName=kube-green-development
The use of this operator is very simple. Once installed on the cluster, configure the desired CRD to make it works.
See https://kube-green.dev/docs/configuration/ the documentation about the configuration of the CRD.
Pods running during working hours with Europe/Rome timezone, suspend CronJobs and exclude a deployment named api-gateway:
yamlapiVersion: kube-green.com/v1alpha1 kind: SleepInfo metadata: name: working-hours spec: weekdays: "1-5" sleepAt: "20:00" wakeUpAt: "08:00" timeZone: "Europe/Rome" suspendCronJobs: true excludeRef: - apiVersion: "apps/v1" kind: Deployment name: api-gateway
Pods sleep every night without restore:
yamlapiVersion: kube-green.com/v1alpha1 kind: SleepInfo metadata: name: working-hours-no-wakeup spec: sleepAt: "20:00" timeZone: Europe/Rome weekdays: "*"
To see other examples, go to https://kube-green.dev/docs/configuration/#examples.
Please read https://gist.github.com/PurpleBooth/b24679402957c63ec426 for details on our code of conduct, and the process for submitting pull requests to us.
We use http://semver.org/ for versioning. For the versions available, see the https://github.com/kube-green/kube-green/releases.
To upgrade the version:
make release version=v{{NEW_VERSION_TO_TAG}} where {{NEW_VERSION_TO_TAG}} should be replaced with the next version to upgrade. N.B.: version should include v as first char.git push --tags origin v{{NEW_VERSION_TO_TAG}}API reference is automatically generated with https://github.com/ahmetb/gen-crd-api-reference-docs. To generate it automatically, are added in api versioned folder a file doc.go with the content of file groupversion_info.go and a comment with +genclient in the sleepinfo_types.go file for the resource type.
This project is licensed under the MIT License - see the LICENSE file for details
Special thanks to https://github.com/JGiola for the tech review.
If you like or are using this project, please give it a star. Thanks!
https://kube-green.dev/docs/adopters/ the list of adopters of kube-green.
If you already use kube-green, add you as an https://github.com/kube-green/kube-green.github.io/blob/main/CONTRIBUTING.md#add-your-organization-to-adopters!
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务