Skip to content

Commit

Permalink
deployment: Update deployment to support ipam-node in daemon mode
Browse files Browse the repository at this point in the history
Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
  • Loading branch information
ykulazhenkov committed Jul 18, 2023
1 parent d079228 commit 3cd3908
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions deploy/nv-ipam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ rules:
- nodes
verbs:
- get
- list
- watch
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
Expand Down Expand Up @@ -70,43 +72,44 @@ spec:
fieldPath: spec.nodeName
command: [ "/ipam-node" ]
args:
- --nv-ipam-log-file=/var/log/nv-ipam-cni.log
- --nv-ipam-log-level=info
- --node-name=$(NODE_NAME)
- --v=1 # log level for ipam-node
- --logging-format=json
- --bind-address=unix:///var/lib/cni/nv-ipam/daemon-socket
- --store-file=/var/lib/cni/nv-ipam/store
- --cni-daemon-socket=unix:///var/lib/cni/nv-ipam/daemon-socket
- --cni-daemon-call-timeout=5 # 5 seconds
- --cni-bin-dir=/opt/cni/bin
- --cni-conf-dir=/etc/cni/net.d/nv-ipam.d
- --cni-log-file=/var/log/nv-ipam-cni.log
- --cni-log-level=info # log level for shim CNI
resources:
requests:
cpu: "100m"
memory: "50Mi"
limits:
cpu: "100m"
memory: "50Mi"
securityContext:
privileged: true
cpu: "300m"
memory: "300Mi"
volumeMounts:
- name: cnibin
mountPath: /host/opt/cni/bin
- name: cni
mountPath: /host/etc/cni/net.d
- name: hostlocalcnibin
mountPath: /host/var/lib/cni/nv-ipam/bin
- name: hostlocalcnistate
mountPath: /host/var/lib/cni/nv-ipam/state/host-local
mountPath: /opt/cni/bin
- name: cniconf
mountPath: /etc/cni/net.d/nv-ipam.d
- name: daemonstate
mountPath: /var/lib/cni/nv-ipam/
terminationGracePeriodSeconds: 10
volumes:
- name: cnibin
hostPath:
path: /opt/cni/bin
type: DirectoryOrCreate
- name: cni
hostPath:
path: /etc/cni/net.d
type: DirectoryOrCreate
- name: hostlocalcnibin
- name: cniconf
hostPath:
path: /var/lib/cni/nv-ipam/bin
path: /etc/cni/net.d/nv-ipam.d
type: DirectoryOrCreate
- name: hostlocalcnistate
- name: daemonstate
hostPath:
path: /var/lib/cni/nv-ipam/state/host-local
path: /var/lib/cni/nv-ipam/
type: DirectoryOrCreate
---
kind: ClusterRole
Expand Down

0 comments on commit 3cd3908

Please sign in to comment.