Skip to content

Mellanox/dhcp-cni

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dhcp-cni

Overview

The DHCP CNI plugin can get the IP address allocated by a DHCP server that is already running on your network. Since the DHCP lease period must be periodically updated during the life of the container, a separate daemon is required to start. The same plugin binary can also be run in the daemon mode.

Operation

To use the dhcp IPAM plugin, first launch the dhcp daemon:

# Make sure the unix socket has been removed
$ rm -f /run/cni/dhcp.sock
$ ./dhcp daemon

Example of CRD configuration

apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
  name: "sriov111"
  namespace: default
  annotations:
    k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_111
spec:
  config: |-
      {
       "type": "sriov",
       "name": "sriov111",
       "vlan": 111,
       "ipam": {
          "type": "dhcp"
          }
      }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published