본문으로 건너뛰기

IPoIB

IPoIB CNI

IPoIB의 child link를 생성해서 Pod에 연결하는 CNI 입니다.

---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: ipoib
namespace: kube-system
labels:
app.kubernetes.io/name: ipoib
app: ipoib
spec:
selector:
matchLabels:
app.kubernetes.io/name: ipoib
app: ipoib
template:
metadata:
labels:
app.kubernetes.io/name: ipoib
app: ipoib
spec:
hostNetwork: true
tolerations:
- operator: Exists
containers:
- name: main
image: mellanox/ipoib-cni:latest
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
volumeMounts:
- name: cnibin
mountPath: /host/opt/cni/bin
volumes:
- name: cnibin
hostPath:
path: /opt/cni/bin

CNI 설정

{
"name": "ipoib-26bit",
"type": "ipoib",
"master": "ib0",
"ipam": {
"type": "host-local",
"subnet": "172.16.0.0/16",
"rangeStart": "172.16.2.2",
"rangeEnd": "172.16.2.63"
}
}