diff --git a/dist/images/install.sh b/dist/images/install.sh index 6b1d97b4d3a..ad75ba5ff42 100755 --- a/dist/images/install.sh +++ b/dist/images/install.sh @@ -30,6 +30,8 @@ IFACE=${IFACE:-} DPDK_TUNNEL_IFACE=${DPDK_TUNNEL_IFACE:-br-phy} ENABLE_BIND_LOCAL_IP=${ENABLE_BIND_LOCAL_IP:-true} +KUBELET_DIR=${KUBELET_DIR:-/var/lib/kubelet} + CNI_CONF_DIR="/etc/cni/net.d" CNI_BIN_DIR="/opt/cni/bin" @@ -2889,7 +2891,7 @@ spec: type: DirectoryOrCreate - name: shareddir hostPath: - path: /var/lib/kubelet/pods + path: $KUBELET_DIR/pods type: '' - name: hugepage emptyDir: @@ -3223,7 +3225,7 @@ spec: path: /lib/modules - name: shared-dir hostPath: - path: /var/lib/kubelet/pods + path: $KUBELET_DIR/pods - name: systemid hostPath: path: /etc/origin/openvswitch diff --git a/kubeovn-helm/templates/ovncni-ds.yaml b/kubeovn-helm/templates/ovncni-ds.yaml index 53af6d61ecf..dbe16d8ffa2 100644 --- a/kubeovn-helm/templates/ovncni-ds.yaml +++ b/kubeovn-helm/templates/ovncni-ds.yaml @@ -154,7 +154,7 @@ spec: path: /lib/modules - name: shared-dir hostPath: - path: /var/lib/kubelet/pods + path: {{ .Values.kubelet_conf.KUBELET_DIR }}/pods - name: systemid hostPath: path: /etc/origin/openvswitch diff --git a/kubeovn-helm/values.yaml b/kubeovn-helm/values.yaml index 52a40930584..4a7b3e201ad 100644 --- a/kubeovn-helm/values.yaml +++ b/kubeovn-helm/values.yaml @@ -89,6 +89,9 @@ cni_conf: CNI_CONF_DIR: "/etc/cni/net.d" CNI_BIN_DIR: "/opt/cni/bin" +kubelet_conf: + KUBELET_DIR: "/var/lib/kubelet" + imagePullSecrets: [] nameOverride: "" fullnameOverride: ""