
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
edgenexus-ingress是基于Edgenexus的Kubernetes Ingress控制器,用于实现反向代理和负载均衡功能,帮助Kubernetes集群内的服务对外提供访问入口。
首先部署两个测试服务:
bashkubectl apply -f 010-deploy-echo.yaml kubectl apply -f 011-deploy-httpbin.yaml
查看部署结果:
bashkubectl get services -n echo kubectl get services -n httpbin
bashkubectl apply -f common/crds/k8s.edgenexus.io_globalconfigurations.yaml kubectl apply -f common/crds/k8s.edgenexus.io_policies.yaml kubectl apply -f common/crds/k8s.edgenexus.io_transportservers.yaml kubectl apply -f common/crds/k8s.edgenexus.io_virtualserverroutes.yaml kubectl apply -f common/crds/k8s.edgenexus.io_virtualservers.yaml
bashkubectl delete namespace edgenexus-ingress kubectl delete clusterrole edgenexus-ingress kubectl delete clusterrolebinding edgenexus-ingress # Kubernetes 1.18+ 需额外执行: kubectl delete IngressClass edgenexus
deploy-edgenexus-ic-cloud.yaml,替换以下IP地址为你的实际地址:loadBalancerIP: 192.168.2.132-edge-balancer-ip=192.168.2.132-edge-external-ip=192.168.2.135
可设置Edgenexus ADC的用户名和密码:-edge-balancer-user=admin-edge-balancer-pass=jetnexus
执行部署:bashkubectl apply -f deploy-edgenexus-ic-cloud.yaml
bashkubectl describe svc edgenexus-ingress --namespace=edgenexus-ingress kubectl get pods --all-namespaces kubectl get events --namespace=edgenexus-ingress
bashkubectl apply -f 020-ingress-echo.yaml kubectl apply -f 021-ingress-httpbin.yaml
注意:020-ingress-echo.yaml中包含HTTPS所需的SSL证书配置。
bashkubectl scale --replicas=2 deployment/echo-deployment -n echo kubectl scale --replicas=2 deployment/httpbin -n httpbin
bashkubectl delete ingress echo-ingress -n echo kubectl delete deployments echo-deployment -n echo kubectl delete ingress http***-ingress -n http*** kubectl delete deployments http*** -n http***
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务