-
Notifications
You must be signed in to change notification settings - Fork 436
/
config.yaml
677 lines (641 loc) · 21.3 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
# kubesphere configuration
server:
http:
hostname: localhost
port: 8000
static:
development:
/public: server/public
/assets: src/assets
/build: build
/dist: dist
production:
/public: server/public
/assets: dist/assets
/dist: dist
# redis config for multi replicas
# redis:
# port: 6379
# host: 127.0.0.1
redisTimeout: 5000
# kubesphere console session params, not login session
sessionKey: "kubesphere:sess"
sessionTimeout: 3600000 # unit: millisecond
# backend service gateway server
apiServer:
clientID: kubesphere
clientSecret: kubesphere
url: http://ks-apiserver
wsUrl: ws://ks-apiserver
# docker image search default url
dockerHubUrl: https://hub.docker.com
client:
title: KubeSphere
description: ""
encryptKey: kubesphere
version:
kubesphere: 3.1.0
# kubesphere urls
issueUrl: https://github.com/kubesphere/kubesphere/issues/new/choose
reposUrl: https://github.com/kubesphere/kubesphere
slackUrl: https://kubesphere.slack.com
documents:
en:
url: https://kubesphere.io/docs
api: https://kubesphere.io/docs/reference/api-docs/
zh:
# url: https://kubesphere.com.cn/docs
# api: https://kubesphere.com.cn/docs/reference/api-docs/
url: https://kubesphere.io/zh/docs
api: https://kubesphere.io/zh/docs/reference/api-docs/
# current support lanaguages
supportLangs:
- label: "繁體中文"
value: "tc"
recommend: true
- label: "简体中文"
value: "zh"
recommend: true
- label: "English"
value: "en"
recommend: true
- label: "Español"
value: "es"
recommend: true
- label: "العربية"
value: "ar"
- label: "Français"
value: "fr"
- label: "हिन्दी"
value: "hi"
- label: "한국어"
value: "ko"
- label: "Lietuvių"
value: "lt"
- label: "Polski"
value: "pl"
- label: "Türkçe"
value: "tr"
defaultLang: "en"
showAllLangs: true
# platform management navigations
globalNavs:
- name: clusters
title: CLUSTER_MANAGEMENT
desc: CLUSTER_DESC
icon: cluster
- name: access
title: ACCESS_CONTROL
icon: key
authKey: users|roles|workspaces
- name: apps-manage
title: APP_STORE_MANAGEMENT
icon: openpitrix
authKey: app-templates
authAction: manage
ksModule: openpitrix.appstore
- name: settings
title: PLATFORM_SETTINGS
icon: cogwheel
authKey: platform-settings
authAction: manage
clusterNavs:
- cate: cluster
items:
- name: overview
title: OVERVIEW
icon: dashboard
skipAuth: true
showInDisable: true
- name: nodes
title: NODE_PL
icon: nodes
children:
- { name: nodes, title: CLUSTER_NODE_PL }
- {
name: edgenodes,
title: EDGE_NODE_PL,
clusterModule: edgeruntime,
}
- { name: components, title: SYSTEM_COMPONENT_PL, icon: components }
- { name: projects, title: PROJECT_PL, icon: project }
- name: app-workloads
title: APPLICATION_WORKLOAD_PL
icon: appcenter
children:
- name: workloads
title: WORKLOAD_PL
tabs:
- { name: deployments, title: DEPLOYMENT_PL }
- { name: statefulsets, title: STATEFULSET_PL }
- { name: daemonsets, title: DAEMONSET_PL }
- name: jobs
title: JOB_PL
tabs:
- { name: jobs, title: JOB_PL }
- { name: cronjobs, title: CRONJOB_PL }
- { name: pods, title: POD_PL }
- { name: services, title: SERVICE_PL }
- { name: ingresses, title: ROUTE_PL }
- name: config
title: CONFIGURATION
icon: hammer
children:
- { name: secrets, title: SECRET_PL }
- { name: configmaps, title: CONFIGMAP_PL }
- {
name: serviceaccounts,
title: SERVICE_ACCOUNT_PL,
requiredClusterVersion: v3.1.0,
}
- name: network
title: NETWORK
icon: earth
children:
- {
name: networkpolicies,
title: NETWORK_POLICY_PL,
clusterModule: network,
}
- {
name: ippools,
title: POD_IP_POOL_PL,
clusterModule: "network.ippool",
}
# Contains dangerous operations, only available for platform-admin.
- { name: customresources, title: CRD_PL, icon: select, admin: true }
- name: storage
title: STORAGE
icon: database
children:
- { name: volumes, title: PERSISTENT_VOLUME_CLAIM_PL }
- { name: storageclasses, title: STORAGE_CLASS_PL }
- {
name: volume-snapshots,
title: VOLUME_SNAPSHOT_PL,
authKey: volumes,
requiredClusterVersion: v3.3.0,
}
- {
name: volume-snapshot-classes,
title: VOLUME_SNAPSHOT_CLASS_PL,
authKey: volumes,
requiredClusterVersion: v3.3.0,
}
- name: monitoring-alerting
title: MONITORING_AND_ALERTING
icon: monitor
children:
- {
name: monitor-cluster,
title: CLUSTER_STATUS,
icon: linechart,
authKey: monitoring,
}
- {
name: monitor-resource,
title: APPLICATION_RESOURCE_PL,
icon: linechart,
authKey: monitoring,
}
- {
name: alerts,
title: ALERTING_MESSAGE_PL,
icon: loudspeaker,
clusterModule: alerting,
requiredClusterVersion: v3.1.0,
}
- {
name: alert-rules,
title: ALERTING_POLICY_PL,
icon: hammer,
clusterModule: alerting,
requiredClusterVersion: v3.1.0,
}
- {
name: custom-monitoring,
title: CUSTOM_MONITORING,
requiredClusterVersion: v3.1.0,
}
- name: cluster-settings
title: CLUSTER_SETTINGS
icon: cogwheel
showInDisable: true
children:
- {
name: base-info,
title: BASIC_INFORMATION,
skipAuth: true,
showInDisable: true,
}
- {
name: visibility,
title: CLUSTER_VISIBILITY,
authKey: cluster-settings,
multiCluster: true,
}
- { name: members, title: CLUSTER_MEMBER_PL }
- { name: roles, title: CLUSTER_ROLE_PL }
- {
name: log-collections,
title: LOG_RECEIVER_PL,
icon: file,
authKey: cluster-settings,
clusterModule: logging|events|auditing,
}
- {
name: gateways,
title: GATEWAY_SETTINGS,
authKey: cluster-settings,
}
# access control page navigations
accessNavs:
- cate: "access"
items:
- { name: workspaces, title: WORKSPACE_PL, icon: enterprise }
- { name: accounts, title: USER_PL, icon: human, authKey: users }
- { name: roles, title: PLATFORM_ROLE_PL, icon: role }
# platform settings navigations
platformSettingsNavs:
- cate: "platformsettings"
items:
- {
name: base-info,
title: PLATFORM_INFORMATION,
icon: home,
authKey: platform-settings,
}
- name: notification-management
title: NOTIFICATION_MANAGEMENT
icon: bell
children:
- name: notification-configuration
title: NOTIFICATION_CHANNELS
tabs:
- { name: mail, title: Mail, authKey: platform-settings }
- {
name: dingtalk,
title: DingTalk,
authKey: platform-settings,
}
- { name: wecom, title: WeCom, authKey: platform-settings }
- { name: slack, title: Slack, authKey: platform-settings }
- { name: webhook, title: Webhook, authKey: platform-settings }
# workspace page navigations
workspaceNavs:
- cate: "workspace"
items:
- {
name: overview,
title: OVERVIEW,
icon: dashboard,
authKey: "projects",
}
- name: projects
title: PROJECT_PL
icon: project
skipAuth: true
tabs:
- { name: projects, title: PROJECT_PL }
- { name: federatedprojects, title: MULTI_CLUSTER_PROJECT_PL }
- {
name: devops,
title: DEVOPS_PROJECT_PL,
icon: strategy-group,
ksModule: devops,
skipAuth: true,
}
- name: apps
title: APPS_MANAGEMENT
icon: appcenter
children:
- {
name: apps,
title: APP_TEMPLATE_PL,
icon: appcenter,
authKey: app-templates,
ksModule: openpitrix.appstore,
}
- {
name: repos,
title: APP_REPOSITORY_PL,
authKey: "app-repos",
ksModule: openpitrix,
}
- name: management
title: WORKSPACE_SETTINGS
icon: cogwheel
children:
- { name: base-info, title: BASIC_INFORMATION, skipAuth: true }
- {
name: quota,
title: WORKSPACE_QUOTA_PL,
authKey: "workspace-settings",
}
- { name: roles, title: WORKSPACE_ROLE_PL }
- { name: members, title: WORKSPACE_MEMBER_PL }
- { name: groups, title: DEPARTMENT_PL }
# apps manage page navigations
manageAppNavs:
- cate: "apps"
items:
- { name: store, title: APPS, icon: appcenter }
- { name: categories, title: APP_CATEGORY_PL, icon: tag }
- { name: reviews, title: APP_REVIEW, icon: safe-notice }
# project page navigations
projectNavs:
- cate: "project"
items:
- {
name: overview,
title: OVERVIEW,
icon: dashboard,
authKey: "services",
}
- name: app-workloads
title: APPLICATION_WORKLOAD_PL
icon: appcenter
children:
- { name: applications, title: APP_PL, icon: application }
- { name: services, title: SERVICE_PL }
- name: workloads
title: WORKLOAD_PL
tabs:
- { name: deployments, title: DEPLOYMENT_PL }
- { name: statefulsets, title: STATEFULSET_PL }
- { name: daemonsets, title: DAEMONSET_PL }
- name: jobs
title: JOB_PL
tabs:
- { name: jobs, title: JOB_PL }
- { name: cronjobs, title: CRONJOB_PL }
- { name: ingresses, title: ROUTE_PL }
- { name: pods, title: POD_PL }
- name: storage
title: STORAGE
icon: database
children:
- { name: volumes, title: PERSISTENT_VOLUME_CLAIM_PL }
- { name: volume-snapshots, title: VOLUME_SNAPSHOT_PL }
- name: config
title: CONFIGURATION
icon: hammer
children:
- { name: secrets, title: SECRET_PL }
- { name: configmaps, title: CONFIGMAP_PL }
- {
name: serviceaccounts,
title: SERVICE_ACCOUNT_PL,
requiredClusterVersion: v3.1.0,
}
- {
name: grayrelease,
title: GRAYSCALE_RELEASE,
icon: bird,
authKey: grayscale-release,
clusterModule: servicemesh,
}
- {
name: s2ibuilders,
title: IMAGE_BUILDER_PL,
icon: vnas,
clusterModule: devops,
}
- name: monitoring
title: MONITORING_AND_ALERTING
icon: monitor
children:
- {
name: alerts,
title: ALERTING_MESSAGE_PL,
icon: loudspeaker,
clusterModule: alerting,
requiredClusterVersion: v3.1.0,
}
- {
name: alert-rules,
title: ALERTING_POLICY_PL,
icon: hammer,
clusterModule: alerting,
requiredClusterVersion: v3.1.0,
}
- {
name: custom-monitoring,
title: CUSTOM_MONITORING,
requiredClusterVersion: v3.1.0,
}
- name: settings
title: PROJECT_SETTINGS
icon: cogwheel
children:
- { name: base-info, title: BASIC_INFORMATION, skipAuth: true }
- {
name: networkpolicies,
title: NETWORK_ISOLATION,
clusterModule: network,
authKey: "project-settings",
}
- { name: roles, title: PROJECT_ROLE_PL }
- { name: members, title: PROJECT_MEMBER_PL }
- {
name: gateways,
title: GATEWAY_SETTINGS,
authKey: "project-settings",
}
- {
name: log-collections,
title: LOG_COLLECTION,
authKey: "project-settings",
}
federatedProjectNavs:
- cate: "project"
items:
- { name: overview, title: OVERVIEW, icon: dashboard, skipAuth: true }
- name: app-workloads
title: APPLICATION_WORKLOAD_PL
icon: appcenter
children:
- { name: applications, title: APP_PL, icon: application }
- { name: services, title: SERVICE_PL }
- name: workloads
title: WORKLOAD_PL
tabs:
- { name: deployments, title: DEPLOYMENT_PL }
- { name: statefulsets, title: STATEFULSET_PL }
- { name: ingresses, title: ROUTE_PL }
- { name: volumes, title: PERSISTENT_VOLUME_CLAIM_PL, icon: storage }
- name: config
title: CONFIGURATION
icon: hammer
children:
- { name: secrets, title: SECRET_PL }
- { name: configmaps, title: CONFIGMAP_PL }
- name: settings
title: PROJECT_SETTINGS
icon: cogwheel
children:
- { name: base-info, title: BASIC_INFORMATION, skipAuth: true }
- {
name: quota,
title: PROJECT_QUOTA_PL,
authKey: "project-settings",
}
- {
name: gateways,
title: GATEWAY_SETTINGS,
authKey: "project-settings",
}
- {
name: log-collections,
title: LOG_COLLECTION,
authKey: "project-settings",
}
# devops page navigations
devopsNavs:
- cate: ""
items:
- { name: pipelines, title: PIPELINE_PL, icon: application }
- {
name: cd,
title: CONTINUOUS_DEPLOYMENT_PL,
icon: rocket,
authKey: "applications",
requiredClusterVersion: v3.3.0,
}
- {
name: code-repo,
title: CODE_REPO_PL,
icon: code,
authKey: "gitrepositories",
requiredClusterVersion: v3.3.0,
}
- {
name: imageBuilders,
title: IMAGE_BUILDER_PL,
icon: vnas,
clusterModule: imagebuilds,
}
- name: management
title: DEVOPS_PROJECT_SETTINGS
icon: cogwheel
open: true
children:
- { name: base-info, title: BASIC_INFORMATION, skipAuth: true }
- { name: credentials, title: CREDENTIAL_PL }
- { name: roles, title: DEVOPS_PROJECT_ROLE_PL }
- { name: members, title: DEVOPS_PROJECT_MEMBER_PL }
# system workspace rules control
systemWorkspace: system-workspace
systemWorkspaceRules:
devops: []
members: [manage]
projects: [view, edit, manage]
roles: [view]
workspaces: [view, edit]
systemWorkspaceProjectRules:
alerting: [manage]
members: [manage]
roles: [manage]
custom-monitoring: [manage]
# preset infos
presetUsers: [admin, sonarqube]
presetGlobalRoles:
[platform-admin, platform-regular, platform-self-provisioner]
presetClusterRoles: [cluster-admin, cluster-viewer]
presetWorkspaceRoles: [admin, regular, viewer, self-provisioner]
presetDevOpsRoles: [admin, operator, viewer]
presetRoles: [admin, operator, viewer]
# system annotations that need to be hidden for edit
preservedAnnotations: [".*kubesphere.io/", "openpitrix_runtime"]
# namespaces that need to be disable collection file log
disabledLoggingSidecarNamespace: ["kubesphere-logging-system"]
# loadbalancer annotations, default support qingcloud lb
loadBalancerDefaultAnnotations:
service.beta.kubernetes.io/qingcloud-load-balancer-eip-ids: ""
service.beta.kubernetes.io/qingcloud-load-balancer-type: "0"
# control error notify on page
enableErrorNotify: true
# enable image search when add image for a container
enableImageSearch: true
# development
# disable authorization check when developing
disableAuthorization: false
# show kubeconfig
enableKubeConfig: true
# third party tools
thirdPartyTools:
[]
# - title:
# description:
# link:
# docs url for resources
resourceDocs:
# Project User Guide
applications: /project-user-guide/application/app-template/
composingapps: /project-user-guide/application/compose-app/
deployments: /project-user-guide/application-workloads/deployments/
statefulsets: /project-user-guide/application-workloads/statefulsets/
daemonsets: /project-user-guide/application-workloads/daemonsets/
jobs: /project-user-guide/application-workloads/jobs/
cronjobs: /project-user-guide/application-workloads/cronjobs/
services: /project-user-guide/application-workloads/services/
ingresses: /project-user-guide/application-workloads/routes/
s2i_template: /project-user-guide/image-builder/s2i-templates/
volumes: /project-user-guide/storage/volumes/
secrets: /project-user-guide/configuration/secrets/
configmaps: /project-user-guide/configuration/configmaps/
serviceaccounts: /project-user-guide/configuration/serviceaccounts/
imageregistry: /project-user-guide/configuration/image-registry/
grayrelease: /project-user-guide/grayscale-release/overview/
# Project Administration
internet: /project-administration/project-gateway/
project_base_info: /workspace-administration/project-quotas/
project_roles: /project-administration/role-and-member-management/
project_members: /project-administration/role-and-member-management/
# Cluster Administrator Guide
nodes: /cluster-administration/nodes/
storageclasses: /cluster-administration/persistent-volume-and-storage-class/
# DevOps User Guide
pipelines: /devops-user-guide/how-to-use/pipelines/pipeline-settings/
cridentials: /devops-user-guide/how-to-use/credential-management/
# Developer Guide
helm_specification: /application-store/app-developer-guide/helm-specification/
helm_developer_guide: /application-store/app-developer-guide/helm-developer-guide/
# Custom Console
custom_console: /cluster-administration/platform-settings/customize-basic-information/
# Kube Config
kube_config: /multicluster-management/enable-multicluster/retrieve-kubeconfig/
# devops:
# replace sonarqube link to customize url origin, default is useless
# sonarqubeURL: http://139.123.123.123:8080
#notification management
notification:
mail:
max_number_of_eamil: 50
dingtalk:
max_number_of_cid: 20
max_number_of_keyword: 20
feishu:
max_number_of_cid: 20
max_number_of_keyword: 20
wecom:
max_number_of_toUser: 50
max_number_of_toParty: 20
max_number_of_toTag: 20
slack:
max_number_of_channel: 20
supportLinks:
github: "https://github.com/kubesphere/kubesphere"
githubPr: "https://github.com/kubesphere/kubesphere"
star: "https://github.com/kubesphere/kubesphere"
githubFork: "https://github.com/kubesphere/kubesphere"
slack: "https://kubesphere.slack.com/"
doc: "https://kubesphere.com.cn/docs/v3.3/"
forum: "https://kubesphere.com.cn/forum/"
issues: "https://github.com/kubesphere/kubesphere/issues"
contactUs: "https://kubesphere.cloud/ticket/"
kse: "https://kubesphere.cloud/self-service/qkcp/"
ksc: "https://kubesphere.cloud/"
backup: "https://kubesphere.cloud/self-service/disaster-recovery/"
inspection: "https://kubesphere.cloud/inspection/"
light: "https://kubesphere.cloud/lite-cluster/"