Skip to content

Commit

Permalink
mount host paths for CNI on the same location
Browse files Browse the repository at this point in the history
current is not resolved when mounted inside the container therefore we mount the paths on the same location so symlinks are resolved by the host and not inside the container.
  • Loading branch information
angelnu authored Aug 16, 2024
1 parent bfb288a commit a777bba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charts/apps/multus/templates/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ configMaps:
daemon-config.json: |
{
"chrootDir": "/hostroot",
"confDir": "/host/etc/cni/net.d",
"confDir": "{{ .Values.cni.paths.bin }}",
"logLevel": "{{ .Values.cni.logLevel }}",
"socketDir": "/host/run/multus/",
"binDir": "{{ .Values.cni.paths.bin }}",
"cniVersion": "{{ .Values.cni.version }}",
"cniConfigDir": "/host/etc/cni/net.d",
"cniConfigDir": "/host/etc/cni/net.",
"multusConfigFile": "auto",
"multusAutoconfigDir": "/host/etc/cni/net.d"
}
Expand Down Expand Up @@ -73,13 +73,13 @@ persistence:
type: hostPath
hostPath: {{ .Values.cni.paths.config }}
hostPathType: Directory
mountPath: /host/etc/cni/net.d
mountPath: {{ .Values.cni.paths.config }}
cnibin:
enabled: true
type: hostPath
hostPath: {{ .Values.cni.paths.bin }}
hostPathType: Directory
mountPath: /host/opt/cni/bin
mountPath: {{ .Values.cni.paths.bin }}
config:
enabled: true
type: configMap
Expand Down

0 comments on commit a777bba

Please sign in to comment.