Skip to content

Commit

Permalink
Globally import tabs (k3s-io#156)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola authored Jul 19, 2023
1 parent ab88093 commit 5d9cf8e
Show file tree
Hide file tree
Showing 30 changed files with 13 additions and 63 deletions.
3 changes: 0 additions & 3 deletions docs/advanced/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ aliases:
- /k3s/latest/en/configuration/
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

This section contains advanced information describing the different ways you can run and manage K3s, as well as steps necessary to prepare the host OS for K3s use.

## Certificate Management
Expand Down
3 changes: 0 additions & 3 deletions docs/architecture/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ weight: 1

import ThemedImage from '@theme/ThemedImage';
import useBaseUrl from '@docusaurus/useBaseUrl';
import TabItem from '@theme/TabItem';
import Tabs from '@theme/Tabs';


This page describes the architecture of a high-availability K3s server cluster and how it differs from a single-node server cluster.

Expand Down
2 changes: 0 additions & 2 deletions docs/cli/etcd-snapshot.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: etcd-snapshot
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# k3s etcd-snapshot

Expand Down
2 changes: 0 additions & 2 deletions docs/cli/secrets-encrypt.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: secrets-encrypt
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# k3s secrets-encrypt

Expand Down
2 changes: 0 additions & 2 deletions docs/datastore/datastore.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: "Cluster Datastore"
weight: 50
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

The ability to run Kubernetes using a datastore other than etcd sets K3s apart from other Kubernetes distributions. This feature provides flexibility to Kubernetes operators. The available datastore options allow you to select a datastore that best fits your use case. For example:

Expand Down
2 changes: 0 additions & 2 deletions docs/installation/airgap.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: "Air-Gap Install"
weight: 60
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

You can install K3s in an air-gapped environment using two different methods. An air-gapped environment is any environment that is not directly connected to the Internet. You can either deploy a private registry and mirror docker.io, or you can manually deploy images such as for small clusters.

Expand Down
3 changes: 0 additions & 3 deletions docs/installation/kube-dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ title: "Kubernetes Dashboard"
weight: 60
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

This installation guide will help you to deploy and configure the [Kubernetes Dashboard](https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/) on K3s.

### Deploying the Kubernetes Dashboard
Expand Down
3 changes: 0 additions & 3 deletions docs/installation/network-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ title: "Network Options"
weight: 25
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

This page describes K3s network configuration options, including configuration or replacement of Flannel, and configuring IPv6.

> **Note:** Please reference the [Networking](../networking/networking.md) page for information about CoreDNS, Traefik, and the Service LB.
Expand Down
2 changes: 0 additions & 2 deletions docs/installation/private-registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: "Private Registry Configuration"
weight: 55
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

Containerd can be configured to connect to private registries and use them to pull private images on the node.

Expand Down
3 changes: 0 additions & 3 deletions docs/security/hardening-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ title: "CIS Hardening Guide"
weight: 80
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

This document provides prescriptive guidance for hardening a production installation of K3s. It outlines the configurations and controls required to address Kubernetes benchmark controls from the Center for Internet Security (CIS).

K3s has a number of security mitigations applied and turned on by default and will pass a number of the Kubernetes CIS controls without modification. There are some notable exceptions to this that require manual intervention to fully comply with the CIS Benchmark:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ aliases:
- /k3s/latest/kr/configuration/
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

이 섹션에는 K3s를 실행하고 관리할 수 있는 다양한 방법과 K3s 사용을 위해 호스트 OS를 준비하는 데 필요한 단계를 설명하는 고급 정보가 포함되어 있습니다.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: etcd-snapshot
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# k3s etcd-snapshot

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: secrets-encrypt
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# k3s secrets-encrypt

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: "클러스터 데이터 저장소"
weight: 50
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

etcd가 아닌 다른 데이터스토어를 사용하여 쿠버네티스를 실행할 수 있는 기능은 K3s를 다른 쿠버네티스 배포판과 차별화합니다. 이 기능은 쿠버네티스 운영자에게 유연성을 제공합니다. 사용 가능한 데이터스토어 옵션을 통해 사용 사례에 가장 적합한 데이터스토어를 선택할 수 있습니다. 예를 들어:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: "Air-Gap Install"
weight: 60
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

You can install K3s in an air-gapped environment using two different methods. An air-gapped environment is any environment that is not directly connected to the Internet. You can either deploy a private registry and mirror docker.io, or you can manually deploy images such as for small clusters.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: "Kubernetes Dashboard"
weight: 60
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

This installation guide will help you to deploy and configure the [Kubernetes Dashboard](https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/) on K3s.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: "Network Options"
weight: 25
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

This page describes K3s network configuration options, including configuration or replacement of Flannel, and configuring IPv6.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: "Private Registry Configuration"
weight: 55
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

Containerd can be configured to connect to private registries and use them to pull private images on the node.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: "CIS Hardening Guide"
weight: 80
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

This document provides prescriptive guidance for hardening a production installation of K3s. It outlines the configurations and controls required to address Kubernetes benchmark controls from the Center for Internet Security (CIS).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ aliases:
- /k3s/latest/en/configuration/
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

本文描述了用于运行和管理 K3s 的高级设置,以及为 K3s 准备主机操作系统所需的步骤。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ weight: 1

import ThemedImage from '@theme/ThemedImage';
import useBaseUrl from '@docusaurus/useBaseUrl';
import TabItem from '@theme/TabItem';
import Tabs from '@theme/Tabs';


本文介绍了高可用(HA)K3s 服务器集群的架构,以及 K3s 与单节点服务器集群的区别。
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: etcd-snapshot
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# k3s etcd-snapshot

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: secrets-encrypt
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# k3s secrets-encrypt

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: "集群数据存储"
weight: 50
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

K3s 与其他 Kubernetes 发行版的不同之处,在于 K3s 支持使用 etcd 以外的数据库来运行 Kubernetes。该功能让 Kubernetes 运维更加灵活。你可以根据实际情况选择合适的数据存储选项。例如:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: "离线安装"
weight: 60
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

你可以使用两种不同的方法在离线环境中安装 K3s。离线环境指的是不直接连接到 Internet 的环境。你可以部署私有镜像仓库和 mirror docker.io,也可以手动部署镜像,例如用于小型集群。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: "Kubernetes 仪表板"
weight: 60
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

本安装指南将帮助你在 K3s 上部署和配置 [Kubernetes 仪表板](https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: "网络选项"
weight: 25
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

本文介绍了 K3s 网络配置选项,包括配置或替换 Flannel,以及配置 IPv6。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: "私有镜像仓库配置"
weight: 55
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

你可以将 Containerd 配置为连接到私有镜像仓库,并在节点上使用私有镜像仓库拉取私有镜像。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: "CIS Hardening Guide"
weight: 80
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

:::info
请知悉,本文仅提供英文版。
Expand Down
13 changes: 13 additions & 0 deletions src/theme/MDXComponents.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';
// Import the original mapper
import MDXComponents from '@theme-original/MDXComponents';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

export default {
// Re-use the default mapping
...MDXComponents,
// Global import the <Tabs> and <TabItem> components
Tabs,
TabItem
};

0 comments on commit 5d9cf8e

Please sign in to comment.