Skip to content

Commit

Permalink
Merge pull request #270 from deepflowio/update-doc
Browse files Browse the repository at this point in the history
Fix config name
  • Loading branch information
Nick-0314 authored Aug 9, 2023
2 parents c28c37f + 6bb1e35 commit 2631d84
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions docs/zh/02-install/09-advanced-config/02-agent-advanced-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,15 @@ K8s 使用 macvlan CNI 时,在 rootns 下只能看到所有 POD 共用的一
该场景需要关闭默认的 `Ingress` 资源获取,打开 `Route` 资源获取。

采集器高级配置如下:

```yaml
static-config:
static_config:
kubernetes-resources:
- name: ingresses
disabled: true
- name: routes
```

ClusterRole 配置增加:

```yaml
rules:
- apiGroups:
Expand All @@ -184,15 +182,13 @@ ClusterRole 配置增加:
该场景下需要从 API 获取 `ServiceRule` 资源。

采集器高级配置如下:

```yaml
static-config:
static_config:
kubernetes-resources:
- name: servicerules
```

ClusterRole 配置增加:

```yaml
rules:
- apiGroups:
Expand All @@ -210,9 +206,8 @@ ClusterRole 配置增加:
该场景下需要从 API 获取 `CloneSet``apps.kruise.io/StatefulSet` 资源。

采集器高级配置如下:

```yaml
static-config:
static_config:
kubernetes-resources:
- name: clonesets
group: apps.kruise.io
Expand All @@ -225,7 +220,6 @@ ClusterRole 配置增加:
注意这里需要加上 Kubernetes 的 `apps/StatefulSet`

ClusterRole 配置增加:

```yaml
- apiGroups:
- apps.kruise.io
Expand Down Expand Up @@ -271,4 +265,4 @@ helm install deepflow -n deepflow deepflow/deepflow-agent --create-namespace \
### 部署二进制模式 DeepFlow Agent

- 参考[传统服务器部署 DeepFlow Agent](../legacy-host/),但无需创建 Domain
- 修改 agent 配置文件 `/etc/deepflow-agent/deepflow-agent.yaml``kubernetes-cluster-id` 填写上一步获取的 ID
- 修改 agent 配置文件 `/etc/deepflow-agent/deepflow-agent.yaml``kubernetes-cluster-id` 填写上一步获取的 ID

0 comments on commit 2631d84

Please sign in to comment.