This message was deleted.
# rke2
a
This message was deleted.
c
That recent fix didn’t entirely fix it, see https://github.com/rancher/rke2/pull/4139. The more complete fix will be in the next release. tl;dr the audit log file needs to be called audit.log, regardless of where you put it.
t
It was:
Copy code
kube-apiserver
--advertise-port=6443
--allow-privileged=true
--anonymous-auth=false
--api-audiences=<https://kubernetes.default.svc.cluster.local>,rke2
--audit-log-maxage=30
--audit-log-maxbackup=3
--audit-log-maxsize=200
--audit-log-path=/data/kubernetes/audit/audit.log
Anyway, i can wait until the next release.
thanks for the help, appreciate it
c
That's not valid yaml...
Copy code
kube-apiserver-arg:
  - advertise-port=6443
  - allow-privileged=true
  - anonymous-auth=false
  - api-audiences=<https://kubernetes.default.svc.cluster.local|https://kubernetes.default.svc.cluster.local>,rke2
  - audit-log-maxage=30
  - audit-log-maxbackup=3
  - audit-log-maxsize=200
  - audit-log-path=/data/kubernetes/audit/audit.log
Also you appear to be setting a bunch of these values to the default, not sure why
t
The why is because I am trying to transpose values from an rke config into rke2 config.. adding indenting didnt make the magic happen, as i said, i can wait until the next release and review it then
c
what you’re doing should work fine now, if you get the yaml formatted properly