cdk files should not live in /root/cdk

Bug #1913228 reported by James Troup
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kubernetes Control Plane Charm
Triaged
Low
Unassigned
Kubernetes Worker Charm
Triaged
Low
Unassigned

Bug Description

kubernetes-master units, as of at least 1.19, have a /root/cdk folder. This folder is a smörgåsbord containing config, secrets, logs, PID files and more. Please redistribute these files to something that is a little closer to FHS¹ compliance.

¹ https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

Revision history for this message
George Kraft (cynerva) wrote :

Our ability to adhere to FHS is somewhat limited due to snap confinement. We can move a lot of these files out of /root/cdk, but for the most part, they will have to live in /var/snap instead, e.g.

/var/snap/kube-apiserver/common/audit.log
/var/snap/kube-controller-manager/common/kubeconfig

etc.

George Kraft (cynerva)
Changed in charm-kubernetes-master:
importance: Undecided → Low
status: New → Triaged
Changed in charm-kubernetes-worker:
importance: Undecided → Low
status: New → Triaged
summary: - cdk-addons should not live in /root/cdk
+ cdk files should not live in /root/cdk
Revision history for this message
Adam Dyess (addyess) wrote :

In LP#1936816, the auth-webhook.pid file is moving to /run/

Revision history for this message
Adam Dyess (addyess) wrote :

in my research of this bug, i did discover the filebeat charm has a fixed path to `/root/cdk/audit/*.log` baked into its template files. Perhaps this is better provided over a relation as to which files are important for including in the filebeat path.

https://git.launchpad.net/filebeat-charm/tree/templates/filebeat-5.yml#n11

Needless to say, moving the audit log would break filebeats.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.