目录

dragonfly-injector

A Kubernetes Mutating Admission Webhook for automatic P2P capability injection in Dragonfly. This project simplifies Kubernetes Pod configuration by automating the injection of Dragonfly’s P2P proxy settings, dfdaemon socket mounts, and CLI tools through annotation-based policies.

Description

Refer to the documentation for more details.

Getting Started

Deploy

kubectl apply -f https://raw.githubusercontent.com/dragonflyoss/dragonfly-injector/main/dist/install.yaml

Configure

There are two ways to configure the injector:

Method 1: Edit the configuration file directly

Before kubectl apply, edit the ConfigMap named dragonfly-injector-config in dist/install.yaml.

Method 2: Use kubectl to edit the config

After kubectl apply, you can edit the ConfigMap named dragonfly-injector-config in dragonfly-system namespace.

kubectl -n dragonfly-system edit configmap dragonfly-injector-config

Default configuration (reload time: 15s):

injector.yaml: |
  initContainerImage:
    registry: docker.io
    repository: dragonflyoss/client
    tag: latest
    digest: ''
    pullPolicy: IfNotPresent
    pullSecrets: []

For more details, please refer to the docs/install.md.

邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号