update at 2024-04-11 10:11:23
parent
8e726f5c57
commit
369ccb7e7e
|
@ -0,0 +1,3 @@
|
|||
# Kubernetes 排障案例
|
||||
|
||||
记录本人多年积累的 Kubernetes 相关的排障案例。
|
|
@ -0,0 +1,91 @@
|
|||
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
|
||||
|
||||
const sidebars: SidebarsConfig = {
|
||||
troubleshootingSidebar: [
|
||||
'README',
|
||||
{
|
||||
type: 'category',
|
||||
label: '运行时排障',
|
||||
collapsed: true,
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
slug: '/cases/runtime'
|
||||
},
|
||||
items: [
|
||||
'runtime/io-high-load-causing-pod-creation-timeout',
|
||||
'runtime/pull-image-fail-in-high-version-containerd',
|
||||
'runtime/mount-root-causing-device-or-resource-busy',
|
||||
'runtime/broken-system-time-causing-sandbox-conflicts',
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: '网络排障',
|
||||
collapsed: true,
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
slug: '/cases/network'
|
||||
},
|
||||
items: [
|
||||
'network/dns-lookup-5s-delay',
|
||||
'network/arp-cache-overflow-causing-healthcheck-failed',
|
||||
'network/cross-vpc-connect-nodeport-timeout',
|
||||
'network/musl-libc-dns-id-conflict-causing-dns-abnormal',
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: '高负载',
|
||||
collapsed: true,
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
slug: '/cases/high-load'
|
||||
},
|
||||
items: [
|
||||
'high-load/disk-full-causing-high-cpu',
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: '集群故障',
|
||||
collapsed: true,
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
slug: '/cases/cluster'
|
||||
},
|
||||
items: [
|
||||
'cluster/delete-rancher-ns-causing-node-disappear',
|
||||
'cluster/scheduler-snapshot-missing-causing-pod-pending',
|
||||
'cluster/kubectl-exec-or-logs-failed',
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: '节点排障',
|
||||
collapsed: true,
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
slug: '/cases/node'
|
||||
},
|
||||
items: [
|
||||
'node/cgroup-leaking',
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: '其它排障',
|
||||
collapsed: true,
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
slug: '/cases/others'
|
||||
},
|
||||
items: [
|
||||
'others/failed-to-modify-hosts-in-multiple-container',
|
||||
'others/job-cannot-delete',
|
||||
'others/dotnet-configuration-cannot-auto-reload',
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default sidebars;
|
|
@ -117,99 +117,6 @@ const sidebars: SidebarsConfig = {
|
|||
],
|
||||
},
|
||||
"sdk",
|
||||
{
|
||||
type: 'category',
|
||||
label: '排障案例',
|
||||
collapsed: false,
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
slug: '/cases'
|
||||
},
|
||||
items: [
|
||||
{
|
||||
type: 'category',
|
||||
label: '运行时排障',
|
||||
collapsed: true,
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
slug: '/cases/runtime'
|
||||
},
|
||||
items: [
|
||||
'cases/runtime/io-high-load-causing-pod-creation-timeout',
|
||||
'cases/runtime/pull-image-fail-in-high-version-containerd',
|
||||
'cases/runtime/mount-root-causing-device-or-resource-busy',
|
||||
'cases/runtime/broken-system-time-causing-sandbox-conflicts',
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: '网络排障',
|
||||
collapsed: true,
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
slug: '/cases/network'
|
||||
},
|
||||
items: [
|
||||
'cases/network/dns-lookup-5s-delay',
|
||||
'cases/network/arp-cache-overflow-causing-healthcheck-failed',
|
||||
'cases/network/cross-vpc-connect-nodeport-timeout',
|
||||
'cases/network/musl-libc-dns-id-conflict-causing-dns-abnormal',
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: '高负载',
|
||||
collapsed: true,
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
slug: '/cases/high-load'
|
||||
},
|
||||
items: [
|
||||
'cases/high-load/disk-full-causing-high-cpu',
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: '集群故障',
|
||||
collapsed: true,
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
slug: '/cases/cluster'
|
||||
},
|
||||
items: [
|
||||
'cases/cluster/delete-rancher-ns-causing-node-disappear',
|
||||
'cases/cluster/scheduler-snapshot-missing-causing-pod-pending',
|
||||
'cases/cluster/kubectl-exec-or-logs-failed',
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: '节点排障',
|
||||
collapsed: true,
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
slug: '/cases/node'
|
||||
},
|
||||
items: [
|
||||
'cases/node/cgroup-leaking',
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: '其它排障',
|
||||
collapsed: true,
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
slug: '/cases/others'
|
||||
},
|
||||
items: [
|
||||
'cases/others/failed-to-modify-hosts-in-multiple-container',
|
||||
'cases/others/job-cannot-delete',
|
||||
'cases/others/dotnet-configuration-cannot-auto-reload',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
],
|
||||
};
|
||||
|
||||
|
|
|
@ -97,6 +97,21 @@ const config: Config = {
|
|||
`https://github.com/imroc/kubernetes-guide/edit/main/content/troubleshooting/${docPath}`,
|
||||
}),
|
||||
],
|
||||
[
|
||||
/** @type {import('@docusaurus/plugin-content-docs').PluginOptions} */
|
||||
'@docusaurus/plugin-content-docs',
|
||||
({
|
||||
id: 'troubleshooting-cases',
|
||||
path: 'content/troubleshooting-cases',
|
||||
// 文档的路由前缀
|
||||
routeBasePath: '/troubleshooting-cases',
|
||||
// 左侧导航栏的配置
|
||||
sidebarPath: require.resolve('./content/troubleshooting-cases/sidebars.ts'),
|
||||
// 每个文档左下角 "编辑此页" 的链接
|
||||
editUrl: ({ docPath }) =>
|
||||
`https://github.com/imroc/kubernetes-guide/edit/main/content/troubleshooting-cases/${docPath}`,
|
||||
}),
|
||||
],
|
||||
[
|
||||
/** @type {import('@docusaurus/plugin-content-docs').PluginOptions} */
|
||||
'@docusaurus/plugin-content-docs',
|
||||
|
@ -182,6 +197,11 @@ const config: Config = {
|
|||
position: 'right',
|
||||
to: '/troubleshooting',
|
||||
},
|
||||
{
|
||||
label: '排障案例',
|
||||
position: 'right',
|
||||
to: '/troubleshooting-cases',
|
||||
},
|
||||
{
|
||||
label: '实践案例',
|
||||
position: 'right',
|
||||
|
|
Loading…
Reference in New Issue