journal 日志

vim /etc/systemd/journald.conf.d/99-prophet.conf [Journal] 持久化保存到磁盘 Storage=persistent 压缩历史日志 Compress=yes SyncIntervalSec=5mRateLimitInterval=30sRateLimitBurst=1000 最大占用空间 10G SystemMaxUse=2G 单日志文件最大 200M SystemMaxFileSize=200M 日志保存时间 2 周 MaxRetentionSec=2week 不将日志转发到 syslog

Read more

crd 删除引起的一个问题

k delete  crd ingressroutes.traefik.containo.us 命令导致kube-apiserver 崩溃,版本为1.16从etcd中删除对应的/registry/apiextensions.k8s.io/customresourcedefinitions/ingressroutes.traefik.containo.us  需要操作—https://github.com/kubernetes/kubernetes/issues/90585 解决方案如下:https://github.com/kubernetes/kubernetes/pull/83789 The issue lies in the fact that kube-apiserver is trying to fetch

Read more