
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
A simple https://kubernetes.io/ https://kubernetes.io/docs/user-guide/pods/ that runs http://netcat.sourceforge.net/ (nc) typically in the role of the listening endpoint.
The goal of this simple little Pod is to enable any number of Kubernetes networking configuration test scenarios. From a simple intra-pod connectivity test (show here), to any form of advanced networking configuration you can apply to Kubernetes Pods and more specifially, https://kubernetes.io/docs/user-guide/services/.
Build and push the docker image, replacing the Samsung private Quay registry with your target registry.
$ docker build --rm --tag quay.io/samsung_cnct/nc-pod . $ docker push quay.io/samsung_cnct/nc-pod:latest
This project might also end up being packaged as a Helm Chart eventually.
However, it's pretty dead simple as is, and might not need to ever become a
chart... we'll see.
Configuring 'nc' execution is handled by a single environment variable that captures the entire set of 'nc' command line arguments, but not the 'nc' command itself.
For a complete description of 'nc' command line arguments see: man nc(1)
Environment Variable:
Example (excerpt from https://kubernetes.io/docs/user-guide/deployments/#writing-a-deployment-spec yaml):
spec: containers: - name: nc-pod image: quay.io/samsung_cnct/nc-pod env: - name: NC_CMD_ARGS value: "-lk -n -u -p 26500"
Using the example nc-pod.yaml file's default values, the project is easily deployed as shown here:
$ kubectl create -f nc-pod.yaml deployment "nc-pod" created $ kubectl expose -f nc-pod.yaml service "nc-pod" exposed $ kubectl get po,ep -l app=nc-pod NAME READY STATUS RESTARTS AGE po/nc-pod-2355685321-3gd8r 1/1 Running 0 58s NAME ENDPOINTS AGE ep/nc-pod 10.64.0.23:26500 48s
From the example https://kubernetes.io/docs/user-guide/deployments/ above we tail the output of the created pod.
$ kubectl logs -f nc-pod-2355685321-3gd8r cmd: /bin/nc -lk -n -u -p 26500
We'll check back on the output of the 'logs' command after the next steps.
Since the service created by the default example isn't exposed via a public IP address, we need to login to either a cluster node or pod. Let's stay away from using the node, and stick to a pod.
$ kubectl run -i -t alps --image=alpine:latest --restart=Never --command /bin/ash Waiting for pod default/alps to be running, status is Pending, pod ready: false If you don't see a command prompt, try pressing enter. / # / # nc -n -u 10.64.0.23 26500 Example of running netcat in a pod. ^Cpunt! / # exit $
As soon as we hit ruturn on our input line above, we should have seen the following output scroll in our 'logs -f' terminal:
rastop:nc-pod sostheim$ kubectl logs -f nc-pod-2355685321-3gd8r cmd: /bin/nc -lk -n -u -p 26500 Example of running netcat in a pod.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务