-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.yaml
57 lines (57 loc) · 2.06 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
maxrequeuetime: 5 # 最大重入队列次数
clusters: # 集群列表
- metadata:
clusterName: cluster1 # 自定义集群名
insecure: true # 是否开启跳过tls证书认证
configPath: /Users/zhenyu.jiang/go/src/golanglearning/new_project/multi_cluster_informer/resource/config2 # kube config配置文件地址
list: # 列表:目前支持:pods services configmaps secrets 等资源对象的监听
- rType: pods # 资源对象
namespace: all # namespace:可支持特定namespace或all
objSave: false # 支持informer实例返回runtime.Object对象,在多集群监听时,需要考虑内存问题,
# 如果没有特殊要求,可以设置为objSave
- rType: deployments
namespace: all
objSave: true
- rType: events
namespace: all
objSave: true
- rType: secrets
namespace: all
objSave: true
- rType: statefulsets
namespace: all
objSave: true
- metadata:
clusterName: cluster2
insecure: true
configPath: /Users/zhenyu.jiang/go/src/golanglearning/new_project/multi_cluster_informer/resource/config1
list:
- rType: pods
namespace: all
objSave: false
- rType: deployments
namespace: all
objSave: true
- rType: services
namespace: all
objSave: true
- metadata:
clusterName: cluster3
insecure: true
configPath: /Users/zhenyu.jiang/go/src/golanglearning/new_project/multi_cluster_informer/resource/config
list:
- rType: pods
namespace: all
objSave: false
- rType: deployments
namespace: all
objSave: true
- rType: services
namespace: all
objSave: true
- rType: daemonsets
namespace: all
objSave: true
- rType: statefulsets
namespace: all
objSave: true