
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
本镜像为基于Teleport官方功能定制的服务器Chart,专为PDS SM(PDS Service Management)环境设计。通过集成PDS SM环境特定配置与优化策略,提供开箱即用的Teleport服务器部署方案,旨在简化PDS SM环境下Teleport服务的部署流程、配置管理及运维操作,支持安全远程访问、服务间加密通信等核心场景。
适用场景
适用范围
4.1 前置条件
4.2 部署步骤
添加Chart仓库(如已内置,可跳过):
bashhelm repo add pds-sm-teleport https://charts.example.com/pds-sm-teleport helm repo update
部署Chart:
bashhelm install teleport-server pds-sm-teleport/teleport \ --namespace pds-sm-services \ --create-namespace \ --set serverName=teleport-pds-sm-01 \ --set service.port=3023 \ --set auth.type=pds-sm-oauth \ --set resources.limits.cpu=1 \ --set resources.limits.memory=2Gi
验证部署:
bashkubectl get pods -n pds-sm-services kubectl logs <pod-name> -n pds-sm-services | grep "Teleport server started"
4.3 核心配置参数
| 参数路径 | 描述 | 默认值 |
|---|---|---|
serverName | 服务器实例名称 | teleport-pds-sm |
service.port | 服务监听端口 | 3023 |
service.type | Kubernetes Service类型 | ClusterIP |
auth.type | 认证方式(支持pds-sm-oauth/ldap/local) | pds-sm-oauth |
storage.size | 数据存储PVC大小 | 10Gi |
tls.enabled | 是否启用TLS加密 | true |
logs.level | 日志级别(debug/info/warn/error) | info |
resources.limits.cpu | CPU资源限制 | 500m |
resources.limits.memory | 内存资源限制 | 1Gi |
4.4 自定义配置文件
如需更复杂的自定义配置(如角色权限、反向代理规则等),可通过config.customConfig参数挂载本地配置文件:
bashhelm install teleport-server pds-sm-teleport/teleport \ --namespace pds-sm-services \ --set-file config.customConfig=./custom-teleport.yaml
其中custom-teleport.yaml需符合Teleport服务器配置规范,并包含PDS SM环境特定参数(如PDS SM OAuth端点、监控指标暴露路径等)。
4.5 升级与卸载
升级Chart:
bashhelm upgrade teleport-server pds-sm-teleport/teleport \ --namespace pds-sm-services \ --set serverName=teleport-pds-sm-01 \ --reuse-values
卸载Chart:
bashhelm uninstall teleport-server -n pds-sm-services kubectl delete namespace pds-sm-services # 可选:删除命名空间
容器运行时支持通过环境变量覆盖部分配置(优先级低于values.yaml):
TELEPORT_SERVER_NAME:覆盖serverName配置。TELEPORT_LOG_LEVEL:覆盖logs.level配置。PDS_SM_OAUTH_ENDPOINT:自定义PDS SM OAuth认证端点(当auth.type=pds-sm-oauth时生效)。secrets.existingSecret参数引用。您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务