Skip to content

feat: add p2p agent chart v0.2.0#180

Merged
pavlelee merged 1 commit intotkestack:mainfrom
kofj:feat/add-p2p-agent-chart
Dec 23, 2025
Merged

feat: add p2p agent chart v0.2.0#180
pavlelee merged 1 commit intotkestack:mainfrom
kofj:feat/add-p2p-agent-chart

Conversation

@kofj
Copy link
Contributor

@kofj kofj commented Dec 22, 2025

Summary
Add p2p-agent helm chart to incubator.

P2P Agent is a P2P container image acceleration system that separates thick and thin containers. It accelerates container image pulling through distributed technology and improves cluster deployment efficiency.

Features

  • P2P Image Distribution: Image distribution based on the BitTorrent protocol.

  • Automatic Failure Recovery: Supports automatic node failure recovery and load balancing.

  • Multiple Deployment Modes: Supports Seeder, Leecher, and Mixed deployment modes.

  • Monitoring and Alerts: Built-in Prometheus monitoring metrics.

  • Image Warm-up: Supports proactive image warm-up (internal Tencent feature, not currently supported by TCR).

  • Thin/Thick Node Separation: Supports thin/thick node separation deployment; thin nodes only deploy the Agent component, reducing resource consumption.

Chart Info
Chart version: 0.2.0
App version: v0.2.0
Images: ccr.ccs.tencentyun.com/kofj/p2p-agent:0.2.0, ccr.ccs.tencentyun.com/kofj/tracker:0.2.0,ccr.ccs.tencentyun.com/kofj/seed-server:0.2.0
Kubernetes version: >=1.18.0

@kofj kofj force-pushed the feat/add-p2p-agent-chart branch from 6fc19a5 to 7c78610 Compare December 22, 2025 04:30
cat << EOF | sudo tee /etc/containerd/config.toml
[plugins."io.containerd.grpc.v1.cri".registry]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."fanjiankong-bj.tencentcloudcr.com"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

containerd是使用certs.d的配置方式:

[plugins."io.containerd.grpc.v1.cri".registry]
  config_path = "/etc/containerd/certs.d"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

containerd是使用certs.d的配置方式:

[plugins."io.containerd.grpc.v1.cri".registry]
  config_path = "/etc/containerd/certs.d"

mirrors 方式应该不涉及 certs.d 啊?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

通过在/etc/containerd/certs.d/添加配置文件mirrors.tencent.com/hosts.toml的方式配置containerd的代理:

server = "https://mirrors.tencent.com"

[host."http://127.0.0.1:65001"]
capabilities = ["pull", "resolve"]

[host."http://127.0.0.1:65001".header]
X-P2PAgent-Registry = "https://mirrors.tencent.com"

这种配置方法在后续追加其他仓库的代理时可以不重启containerd。

@kofj kofj force-pushed the feat/add-p2p-agent-chart branch 5 times, most recently from edf0286 to 9e005fd Compare December 23, 2025 10:02
Signed-off-by: 疯魔慕薇 <kfanjian@gmail.com>
@kofj kofj force-pushed the feat/add-p2p-agent-chart branch from 9e005fd to aba26fc Compare December 23, 2025 10:07
@pavlelee
Copy link
Collaborator

lgtm

@pavlelee pavlelee merged commit d51ec1b into tkestack:main Dec 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants