
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
$ mh --help __ /\ \ ___ ___ \ \ \___ /. __. __.\ \ \ _ \ /\ \/\ \/\ \ \ \ \ \ \ \ \_\ \_\ \_\ \ \_\ \_\ \/_/\/_/\/_/ \/_/\/_/ mh simplifies multi-chart Helm workflows by rendering ephemeral Helm chart override files based on templates populated with values from mh YAML config files. In other words: We heard you like templates, so we templated your Helm value overrides. Usage: mh [command] Available Commands: apply Apply apps destroy Destroy apps help Help about any command license Print license information. simulate Simulate apps status Get status of apps version Print version information. Flags: -c, --config string config file (you can instead set MH_CONFIG) -h, --help help for mh -j, --json set logging to JSON format Use "mh [command] --help" for more information about a command.
$ mh license Copyright © 2018 Cisco Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
go get -u github.com/cisco-sso/mh
(In general, this is when you "choose a Kubernetes cluster" to manage.)
kubectl config get-contexts kubectl config use-context minikube
(There's usally one mh config per kubetl context, but we've left it open ended so that multple teams can more easily work together on one cluster.)
export MH_CONFIG="/path/to/clusters/minikube/mh/main.yaml"
(This basically runs helm status for each app you target.)
mh status # ^ get status for all apps in `main.yaml` mh status wordpress # ^ get status for just these app(s)
(For each app you target, simulate runs a Helm upgrade/install with debug and dry-run modes enabled.)
mh simulate # ^ simulate install/upgrade for all apps in `main.yaml` mh simulate --printRendered # ^ simulate install/upgrade for all apps in `main.yaml` # (verbosely printing app template renderings) mh simulate wordpress # ^ simulate install/upgrade just these app(s), # even if they are not in `main.yaml` mh simulate --set "wordpress.image.tag=1.0.0" # ^ simulate by setting mh values on the command line # (can specify multiple or separate values with commas: key1=val1,key2=val2)
(For each app you target, apply runs a Helm upgrade/install).
mh apply # ^ apply install/upgrade for all apps in `main.yaml` mh apply --printRendered # ^ apply install/upgrade for all apps in `main.yaml` # (verbosely printing app template renderings) mh apply wordpress # ^ apply install/upgrade just these app(s), # even if they are not in `main.yaml` mh apply --set "wordpress.image.tag=1.0.0" # ^ apply by setting mh values on the command line # (can specify multiple or separate values with commas: key1=val1,key2=val2)
(For each app you target, apply runs a Helm delete without purge).
mh destroy # ^ destroy all apps in `main.yaml` mh destroy wordpress # ^ destroy just these app(s), # even if they are not in `main.yaml`
mh status foo --json 2>&1 | jq --slurp
docker run --rm \ -v $(pwd):/platform-deploy \ -v ~/.kube:/.kube \ -v ~/.helm:/root/.helm \ -e KUBECONFIG=/.kube/mycluster.example.org \ -e MH_CONFIG=/platform-deploy/clusters/mycluster.example.org/mh/main.yaml \ ciscosso/mh simulate
NOTE: The MH apps and config in this example exist in the platform-deploy tree.
Apps should be stored relative to MH config. (use configPath instead of path).
appSources: - name: apps kind: configPath source: ../../../apps
For information on contributing to this repo, please see the accompanying CONTRIBUTING.md file.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务