Skip to content

Commit 0506385

Browse files
committed
fix config file creation on host
1 parent faef415 commit 0506385

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed
0 Bytes
Binary file not shown.

charts/latest/azurefile-csi-driver/templates/csi-azurefile-node.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ spec:
101101
mountPath: /host/usr
102102
- name: host-etc
103103
mountPath: /host/etc
104-
- mountPath: /var/lib/kubelet/
104+
- name: mountpoint-dir
105+
mountPath: /var/lib/kubelet/
105106
mountPropagation: Bidirectional
106-
name: mountpoint-dir
107107
containers:
108108
- name: liveness-probe
109109
volumeMounts:

deploy/csi-azurefile-node.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ spec:
6363
mountPath: /host/usr
6464
- name: host-etc
6565
mountPath: /host/etc
66-
- mountPath: /var/lib/kubelet/
66+
- name: mountpoint-dir
67+
mountPath: /var/lib/kubelet/
6768
mountPropagation: Bidirectional
68-
name: mountpoint-dir
6969
containers:
7070
- name: liveness-probe
7171
volumeMounts:

pkg/azurefile-proxy/init.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ fi
2727

2828
HOST_CMD="nsenter --mount=/proc/1/ns/mnt"
2929

30-
echo "set up /var/lib/kubelet/kerberos/krb5.conf"
30+
echo "set up /etc/krb5.conf on host"
31+
printf '[libdefaults]\ndefault_ccache_name = FILE:/var/lib/kubelet/kerberos/krb5cc_%s\n' "%{uid}" > /host/etc/krb5.conf
32+
3133
mkdir -p /var/lib/kubelet/kerberos
32-
printf '[libdefaults]\ndefault_ccache_name = FILE:/var/lib/kubelet/kerberos/krb5cc_%s\n' "%{uid}" > /var/lib/kubelet/kerberos/krb5.conf
3334

34-
echo "set up /etc/azfilesauth/config.yaml"
35-
mkdir -p /etc/azfilesauth
36-
printf 'USER_UID: 0\nKRB5_CC_NAME: /var/lib/kubelet/kerberos/krb5cc_0\n' > /etc/azfilesauth/config.yaml
35+
echo "set up /etc/azfilesauth/config.yaml on host"
36+
mkdir -p /host/etc/azfilesauth
37+
printf 'USER_UID: 0\nKRB5_CC_NAME: /var/lib/kubelet/kerberos/krb5cc_0\n' > /host/etc/azfilesauth/config.yaml
3738

3839
DISTRIBUTION=$($HOST_CMD cat /etc/os-release | grep ^ID= | cut -d'=' -f2 | tr -d '"')
3940
ARCH=$($HOST_CMD uname -m)

0 commit comments

Comments
 (0)