# 开启
kubectl -n kubesphere-system patch cc ks-installer --type merge --patch '{"spec":{"logging":{"enabled":true},"auditing":{"enabled":true}}}'
# 关闭
kubectl -n kubesphere-system patch cc ks-installer --type merge --patch '{"spec":{"logging":{"enabled":false},"auditing":{"enabled":false}}}'
注意:本文归作者所有,未经作者允许,不得转载