Skip to content

Commit

Permalink
add support of user-defined kubelet directory (#2388)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiutingjun committed Feb 27, 2023
1 parent 282644e commit 42e6a30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions dist/images/install.sh
Expand Up @@ -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"

Expand Down Expand Up @@ -2889,7 +2891,7 @@ spec:
type: DirectoryOrCreate
- name: shareddir
hostPath:
path: /var/lib/kubelet/pods
path: $KUBELET_DIR/pods
type: ''
- name: hugepage
emptyDir:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion kubeovn-helm/templates/ovncni-ds.yaml
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions kubeovn-helm/values.yaml
Expand Up @@ -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: ""
Expand Down

0 comments on commit 42e6a30

Please sign in to comment.