mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
update logging
Signed-off-by: Bettygogo2021 <91529409+Bettygogo2021@users.noreply.github.com>
This commit is contained in:
parent
45bb33a458
commit
3f10479546
|
|
@ -88,7 +88,7 @@ Currently, KubeSphere doesn't support the integration of Elasticsearch with X-Pa
|
|||
|
||||
Before KubeSphere v3.3.0, you can only set the retention period of logs, which is 7 days by default. In KubeSphere v3.3.0, apart from logs, you can also set the data retention period of events, auditing logs, and Istio logs.
|
||||
|
||||
You need to update the KubeKey configuration and rerun `ks-installer`.
|
||||
Perform the following to update the KubeKey configurations.
|
||||
|
||||
1. Execute the following command:
|
||||
|
||||
|
|
@ -96,7 +96,7 @@ You need to update the KubeKey configuration and rerun `ks-installer`.
|
|||
kubectl edit cc -n kubesphere-system ks-installer
|
||||
```
|
||||
|
||||
2. In the YAML file, if you only want to change the retention period of logs, you can directly change the default value of `logMaxAge` to a desired one. If you want to set the retention period of events, auditing logs, and Istio logs, you need to add parameters `auditingMaxAge`, `eventMaxAge`, and `istioMaxAge` and set a value for them, respectively, as shown in the following example:
|
||||
2. In the YAML file, if you only want to change the retention period of logs, you can directly change the default value of `logMaxAge` to a desired one. If you want to set the retention period of events, auditing logs, and Istio logs, add parameters `auditingMaxAge`, `eventMaxAge`, and `istioMaxAge` and set a value for them, respectively, as shown in the following example:
|
||||
|
||||
|
||||
```yaml
|
||||
|
|
@ -118,10 +118,27 @@ You need to update the KubeKey configuration and rerun `ks-installer`.
|
|||
...
|
||||
```
|
||||
|
||||
3. Rerun `ks-installer`.
|
||||
{{< notice note >}}
|
||||
If you have not set the retention period of events, auditing logs, and Istio logs, the value of `logMaxAge` is used by default.
|
||||
{{</ notice >}}
|
||||
|
||||
```bash
|
||||
kubectl rollout restart deploy -n kubesphere-system ks-installer
|
||||
3. In the YAML file, detete the `es` parameter, save the changes, and ks-installer will automatically restart to make the changes take effective.
|
||||
|
||||
```yaml
|
||||
apiVersion: installer.kubesphere.io/v1alpha1
|
||||
kind: ClusterConfiguration
|
||||
metadata:
|
||||
name: ks-installer
|
||||
namespace: kubesphere-system
|
||||
...
|
||||
status:
|
||||
alerting:
|
||||
enabledTime: 2022-08-11T06:22:01UTC
|
||||
status: enabled
|
||||
...
|
||||
es: # delete this line.
|
||||
enabledTime: 2022-08-11T06:22:01UTC # delete this line.
|
||||
status: enabled # delete this line.
|
||||
```
|
||||
|
||||
## I cannot find logs from workloads on some nodes using Toolbox
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ KubeSphere 暂不支持启用 X-Pack Security 的 Elasticsearch 集成,此功
|
|||
|
||||
在 KubeSphere v3.3.0 之前的版本,您只能修改日志的保存期限(默认为 7 天)。除了日志外,KubeSphere v3.3.0 还支持您设置审计、事件及 Istio 日志信息的保留期限。
|
||||
|
||||
您需要更新 KubeKey 配置并重新运行 `ks-installer`。
|
||||
参考以下步骤更新 KubeKey 配置。
|
||||
|
||||
1. 执行以下命令:
|
||||
|
||||
|
|
@ -118,10 +118,27 @@ KubeSphere 暂不支持启用 X-Pack Security 的 Elasticsearch 集成,此功
|
|||
...
|
||||
```
|
||||
|
||||
3. 重新运行 `ks-installer`。
|
||||
{{< notice note >}}
|
||||
如果您未设置审计、事件及 Istio 日志信息的保留期限,默认使用 `logMaxAge` 的值。
|
||||
{{</ notice >}}
|
||||
|
||||
```bash
|
||||
kubectl rollout restart deploy -n kubesphere-system ks-installer
|
||||
3. 在 YAML 文件中,删除 `es` 部分的内容,保存修改,ks-installer 会自动重启使配置生效。
|
||||
|
||||
```yaml
|
||||
apiVersion: installer.kubesphere.io/v1alpha1
|
||||
kind: ClusterConfiguration
|
||||
metadata:
|
||||
name: ks-installer
|
||||
namespace: kubesphere-system
|
||||
...
|
||||
status:
|
||||
alerting:
|
||||
enabledTime: 2022-08-11T06:22:01UTC
|
||||
status: enabled
|
||||
...
|
||||
es: # delete this line.
|
||||
enabledTime: 2022-08-11T06:22:01UTC # delete this line.
|
||||
status: enabled # delete this line.
|
||||
```
|
||||
|
||||
## 无法使用工具箱找到某些节点上工作负载的日志
|
||||
|
|
|
|||
Loading…
Reference in New Issue