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 authored and bobz965 committed Jun 1, 2023
1 parent 4d1b12a commit 42a5656
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions dist/images/install.sh
Expand Up @@ -33,6 +33,7 @@ ENABLE_BIND_LOCAL_IP=${ENABLE_BIND_LOCAL_IP:-true}

# debug
DEBUG_WRAPPER=${DEBUG_WRAPPER:-}
KUBELET_DIR=${KUBELET_DIR:-/var/lib/kubelet}

CNI_CONF_DIR="/etc/cni/net.d"
CNI_BIN_DIR="/opt/cni/bin"
Expand Down Expand Up @@ -2887,7 +2888,7 @@ spec:
type: DirectoryOrCreate
- name: shareddir
hostPath:
path: /var/lib/kubelet/pods
path: $KUBELET_DIR/pods
type: ''
- name: hugepage
emptyDir:
Expand Down Expand Up @@ -3227,7 +3228,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 @@ -160,7 +160,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 42a5656

Please sign in to comment.