mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-01-13 09:10:54 +00:00
cfg: add /etc/default/kubeletconfig.json
for AKS (#865)
* cfg: add `/etc/default/kubeletconfig.json` * fix(cfg): search kubeletconfig.json first * feat: mount `/etc/default` from host for AKS cluster Co-authored-by: Yoav Rotem <yoavrotems97@gmail.com>
This commit is contained in:
parent
47c2494728
commit
e4d9455820
@ -147,6 +147,7 @@ node:
|
||||
- "/etc/kubernetes/kubelet/kubelet-config.json"
|
||||
- "/home/kubernetes/kubelet-config.yaml"
|
||||
- "/home/kubernetes/kubelet-config.yml"
|
||||
- "/etc/default/kubeletconfig.json"
|
||||
- "/etc/default/kubelet"
|
||||
- "/var/lib/kubelet/kubeconfig"
|
||||
- "/var/snap/kubelet/current/args"
|
||||
|
@ -18,6 +18,9 @@ spec:
|
||||
- name: etc-systemd
|
||||
mountPath: /etc/systemd
|
||||
readOnly: true
|
||||
- name: etc-default
|
||||
mountPath: /etc/default
|
||||
readOnly: true
|
||||
- name: etc-kubernetes
|
||||
mountPath: /etc/kubernetes
|
||||
readOnly: true
|
||||
@ -29,6 +32,9 @@ spec:
|
||||
- name: etc-systemd
|
||||
hostPath:
|
||||
path: "/etc/systemd"
|
||||
- name: etc-default
|
||||
hostPath:
|
||||
path: "/etc/default"
|
||||
- name: etc-kubernetes
|
||||
hostPath:
|
||||
path: "/etc/kubernetes"
|
||||
|
Loading…
Reference in New Issue
Block a user