2024-04-10 16:24:23 +08:00
|
|
|
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
|
|
|
|
|
|
|
|
const sidebars: SidebarsConfig = {
|
|
|
|
bestPracticesSidebar: [
|
|
|
|
'README',
|
|
|
|
{
|
|
|
|
type: 'category',
|
|
|
|
label: '优雅终止',
|
|
|
|
collapsed: false,
|
|
|
|
link: {
|
|
|
|
type: 'generated-index',
|
|
|
|
slug: '/graceful-shutdown'
|
|
|
|
},
|
|
|
|
items: [
|
|
|
|
'graceful-shutdown/intro',
|
|
|
|
'graceful-shutdown/pod-termination-proccess',
|
2024-04-19 16:22:03 +08:00
|
|
|
'graceful-shutdown/sigterm',
|
|
|
|
'graceful-shutdown/prestop',
|
2024-04-19 15:45:54 +08:00
|
|
|
'graceful-shutdown/update-strategy',
|
2024-04-19 16:14:28 +08:00
|
|
|
'graceful-shutdown/long-connection',
|
2024-04-10 16:24:23 +08:00
|
|
|
'graceful-shutdown/lb-to-pod-directly',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'category',
|
|
|
|
label: 'DNS',
|
|
|
|
collapsed: false,
|
|
|
|
link: {
|
|
|
|
type: 'generated-index',
|
|
|
|
slug: '/dns'
|
|
|
|
},
|
|
|
|
items: [
|
|
|
|
'dns/customize-dns-resolution',
|
|
|
|
'dns/optimize-coredns-performance',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'category',
|
|
|
|
label: '性能优化',
|
|
|
|
collapsed: false,
|
|
|
|
link: {
|
|
|
|
type: 'generated-index',
|
|
|
|
slug: '/performance-optimization'
|
|
|
|
},
|
|
|
|
items: [
|
|
|
|
'performance-optimization/network',
|
|
|
|
'performance-optimization/cpu',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'category',
|
|
|
|
label: '高可用',
|
|
|
|
collapsed: false,
|
|
|
|
link: {
|
|
|
|
type: 'generated-index',
|
|
|
|
slug: '/ha'
|
|
|
|
},
|
|
|
|
items: [
|
|
|
|
'ha/pod-split-up-scheduling',
|
|
|
|
'ha/smooth-upgrade',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'category',
|
|
|
|
label: '弹性伸缩',
|
|
|
|
collapsed: false,
|
|
|
|
link: {
|
|
|
|
type: 'generated-index',
|
|
|
|
slug: '/autoscaling'
|
|
|
|
},
|
|
|
|
items: [
|
|
|
|
'autoscaling/hpa-velocity',
|
|
|
|
'autoscaling/hpa-with-custom-metrics',
|
2024-04-23 20:07:35 +08:00
|
|
|
{
|
|
|
|
type: 'category',
|
|
|
|
label: '事件驱动弹性伸缩(KEDA)',
|
|
|
|
collapsed: true,
|
|
|
|
link: {
|
|
|
|
type: 'generated-index',
|
|
|
|
slug: '/autoscaling/keda'
|
|
|
|
},
|
|
|
|
items: [
|
|
|
|
'autoscaling/keda/overview',
|
|
|
|
'autoscaling/keda/install',
|
|
|
|
'autoscaling/keda/cron',
|
|
|
|
'autoscaling/keda/workload',
|
|
|
|
]
|
|
|
|
}
|
2024-04-10 16:24:23 +08:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'category',
|
|
|
|
label: '容器化',
|
|
|
|
collapsed: false,
|
|
|
|
link: {
|
|
|
|
type: 'generated-index',
|
|
|
|
slug: '/containerization'
|
|
|
|
},
|
|
|
|
items: [
|
2024-04-23 18:04:34 +08:00
|
|
|
'containerization/thin-image',
|
2024-04-23 16:00:18 +08:00
|
|
|
'containerization/systemd',
|
2024-04-10 16:24:23 +08:00
|
|
|
'containerization/java',
|
|
|
|
'containerization/golang',
|
2024-04-23 16:00:18 +08:00
|
|
|
'containerization/crontab',
|
2024-04-10 16:24:23 +08:00
|
|
|
'containerization/timezone',
|
2024-04-23 20:56:03 +08:00
|
|
|
'containerization/logrotate',
|
2024-04-10 16:24:23 +08:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'category',
|
|
|
|
label: '集群运维',
|
|
|
|
collapsed: false,
|
|
|
|
link: {
|
|
|
|
type: 'generated-index',
|
|
|
|
slug: '/ops'
|
|
|
|
},
|
|
|
|
items: [
|
|
|
|
'ops/securely-maintain-or-offline-node',
|
|
|
|
'ops/securely-modify-container-root-dir',
|
|
|
|
'ops/large-scale-cluster-optimization',
|
|
|
|
'ops/etcd-optimization',
|
|
|
|
'ops/batch-operate-node-with-ansible',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'configure-healthcheck',
|
|
|
|
'request-limit',
|
|
|
|
'logging',
|
|
|
|
'long-connection',
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
export default sidebars;
|