我正试图在Prem环境中的GKE上安装静态/行踪(带multus(IPAM CNI插件,以创建一个额外的接口,并在同一集群中的节点之间与pod通信。
Multus插件运行良好,但我在主机目录(/opt/cni/bin(上没有看到静态/行踪IPAM cni插件的bin文件,即使在daemonSet文件中指向了该位置。
我想知道是否支持静态/行踪IPAM cni插件,但Prem上支持GKE。
以下是我在行踪守护程序集文件中所做的更改。
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: whereabouts
namespace: kube-system
labels:
tier: node
app: whereabouts
spec:
selector:
matchLabels:
name: whereabouts
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
tier: node
app: whereabouts
name: whereabouts
spec:
hostNetwork: true
serviceAccountName: whereabouts
nodeSelector:
beta.kubernetes.io/arch: amd64
tolerations:
- operator: Exists
effect: NoSchedule
containers:
- name: whereabouts
image: ghcr.io/k8snetworkplumbingwg/whereabouts:latest-amd64
env:
**- name: CNI_BIN_DIR**
<<<<<<<<<<<<<<<<< Added this
**value: "/host/home/ubuntu/opt/cni/bin"** <<<<<<<<<<<<<<<<< Added this and point to the correct bin directory
- name: WHEREABOUTS_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
resources:
requests:
cpu: "100m"
memory: "50Mi"
limits:
cpu: "100m"
memory: "50Mi"
securityContext:
privileged: true
volumeMounts:
- name: cnibin
**mountPath: /host/home/ubuntu/opt/cni/bin** <<<<<<<<<<<<<<<<< bin directory
- name: cni-net-dir
**mountPath: /host/etc/cni/net.d** <<<<<<<<<<<<<<<<< bin directory
volumes:
- name: cnibin
hostPath:
**path: /host/home/ubuntu/opt/cni/bin** <<<<<<<<<<<<<<<<< bin directory
- name: cni-net-dir
hostPath:
path: /etc/cni/net.d
我能够安装行踪IPAM cni插件。不需要指向daemonSet文件中的cni-bin目录(/opt/cni/bin(。
然而,我还不能安装静态IPAM cni插件。不知道如何从git-reo安装。
任何帮助都将不胜感激。
谢谢。