Merge branch 'LCTT:master' into XiaotingHuang22-patch-non-code-contributions

This commit is contained in:
Xiaoting Huang 2023-04-12 13:21:36 +08:00 committed by GitHub
commit 3a1c7317b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 94 additions and 89 deletions

View File

@ -1,32 +1,34 @@
[#]: subject: "How to Install Kubernetes (K8s) Metrics Server Step by Step" [#]: subject: "How to Install Kubernetes k8s Metrics Server Step by Step"
[#]: via: "https://www.linuxtechi.com/how-to-install-kubernetes-metrics-server/" [#]: via: "https://www.linuxtechi.com/how-to-install-kubernetes-metrics-server/"
[#]: author: "Pradeep Kumar https://www.linuxtechi.com/author/pradeep/" [#]: author: "Pradeep Kumar https://www.linuxtechi.com/author/pradeep/"
[#]: collector: "lkxed" [#]: collector: "lkxed"
[#]: translator: "geekpi" [#]: translator: "geekpi"
[#]: reviewer: " " [#]: reviewer: "wxy"
[#]: publisher: " " [#]: publisher: "wxy"
[#]: url: " " [#]: url: "https://linux.cn/article-15714-1.html"
如何逐步安装 Kubernetes (K8s) 指标服务器 如何逐步安装 Kubernetesk8s指标服务器
====== ======
在这篇文章中,我们将逐步介绍如何安装 Kubernetes 指标服务器。 ![][0]
Kubernetes(k8s) 指标服务器是一个组件,用于收集和聚合来自 Kubernetes 集群中各种来源(包括节点和 Pod的指标数据。此数据可用于监控和优化资源利用率、识别潜在问题并提高 Kubernetes 集群的整体性能 > 在这篇文章中,我们将逐步介绍如何安装 Kubernetes 指标服务器
指标服务器收集资源利用率数据,例如集群中节点和 Pod 的 CPU 和内存使用情况。它提供了一个 API 端点,可用于查询此数据并检索集群中特定资源的指标。 Kubernetesk8s指标服务器是一个组件用于收集和聚合来自 Kubernetes 集群中各种来源(包括节点和 <ruby>容器荚<rt>Pod</rt></ruby>)的指标数据。此数据可用于监控和优化资源利用率、识别潜在问题并提高 Kubernetes 集群的整体性能。
指标服务器收集资源利用率数据,例如集群中节点和容器荚的 CPU 和内存使用情况。它提供了一个 API 端点,可用于查询此数据并检索集群中特定资源的指标。
##### 先决条件 ##### 先决条件
- 启动并运行 Kubernetes 集群v1.21 或更高版本)。 - 启动并运行 Kubernetes 集群v1.21 或更高版本)。
- kubectl 命令行工具已安装并配置为与你的 Kubernetes 集群交互。 - `kubectl` 命令行工具已安装并配置为与你的 Kubernetes 集群交互。
- 创建和修改 Kubernetes 对象的能力。 - 创建和修改 Kubernetes 对象的能力。
事不宜迟,让我们深入了解安装步骤。 事不宜迟,让我们深入了解安装步骤。
### 步骤 1) 下载指标服务器清单 ### 步骤 1 下载指标服务器清单
第一步是从 Kubernetes GitHub 仓库下载最新的指标服务器清单文件。使用下面的 curl 命令下载 yaml 文件: 第一步是从 Kubernetes GitHub 仓库下载最新的指标服务器清单文件。使用下面的 `curl` 命令下载 yaml 文件:
``` ```
# curl -LO https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml # curl -LO https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
@ -40,21 +42,21 @@ Kubernetes(k8s) 指标服务器是一个组件,用于收集和聚合来自 Kub
# curl https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/high-availability-1.21+.yaml # curl https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/high-availability-1.21+.yaml
``` ```
### 步骤 2修改指标服务器 Yaml 文件 ### 步骤 2 修改指标服务器 Yaml 文件
接下来,你需要修改 Metrics Server yaml 文件以设置一些配置选项: 接下来,你需要修改指标服务器的 yaml 文件以设置一些配置选项:
``` ```
# vi components.yaml # vi components.yaml
``` ```
找到 container 下的 args 部分,添加以下行: 找到 `container` 下的 `args` 部分,添加以下行:
``` ```
- --kubelet-insecure-tls - --kubelet-insecure-tls
``` ```
在 spec 下,添加以下参数: `spec` 下,添加以下参数:
``` ```
hostNetwork: true hostNetwork: true
@ -64,9 +66,9 @@ hostNetwork: true
保存并关闭文件。 保存并关闭文件。
### 步骤 3部署指标服务器 ### 步骤 3 部署指标服务器
现在,我们准备好部署指标服务器,运行以下 kubectl 命令: 现在,我们准备好部署指标服务器,运行以下 `kubectl` 命令:
``` ```
# kubectl apply -f components.yaml # kubectl apply -f components.yaml
@ -74,9 +76,9 @@ hostNetwork: true
![][3] ![][3]
### 步骤 4验证指标服务器部署 ### 步骤 4 验证指标服务器部署
部署指标服务器后,通过检查在 kube-system 命名空间中运行的 pod 状态来验证它的状态: 部署指标服务器后,通过检查在 `kube-system` 命名空间中运行的容器荚状态来验证它的状态:
``` ```
# kubectl get pods -n kube-system # kubectl get pods -n kube-system
@ -84,11 +86,11 @@ hostNetwork: true
![][4] ![][4]
上面的输出确认指标服务器 pod 已启动并正在运行。 上面的输出确认指标服务器容器荚已启动并正在运行。
### 步骤 5测试指标服务器安装 ### 步骤 5 测试指标服务器安装
最后,你可以通过运行以下 kubectl 命令来测试指标服务器: 最后,你可以通过运行以下 `kubectl` 命令来测试指标服务器:
``` ```
# kubectl top nodes # kubectl top nodes
@ -98,7 +100,7 @@ hostNetwork: true
![][5] ![][5]
要查看当前命名空间或特定命名空间的 pod 资源利用率,请运行: 要查看当前命名空间或特定命名空间的容器荚资源利用率,请运行:
``` ```
# kubectl top pod # kubectl top pod
@ -109,6 +111,8 @@ hostNetwork: true
这就是这篇文章的全部内容,我希望你能从中找到有用的信息。请在下面的评论部分发表你的反馈和疑问。 这就是这篇文章的全部内容,我希望你能从中找到有用的信息。请在下面的评论部分发表你的反馈和疑问。
*题图MJ: Kubernetes container paper art light blue background ultra-detailed topview*
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
via: https://www.linuxtechi.com/how-to-install-kubernetes-metrics-server/ via: https://www.linuxtechi.com/how-to-install-kubernetes-metrics-server/
@ -116,7 +120,7 @@ via: https://www.linuxtechi.com/how-to-install-kubernetes-metrics-server/
作者:[Pradeep Kumar][a] 作者:[Pradeep Kumar][a]
选题:[lkxed][b] 选题:[lkxed][b]
译者:[geekpi](https://github.com/geekpi) 译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID) 校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
@ -127,4 +131,5 @@ via: https://www.linuxtechi.com/how-to-install-kubernetes-metrics-server/
[3]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Deploy-Metrics-Server-Kubectl-Command.png [3]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Deploy-Metrics-Server-Kubectl-Command.png
[4]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Metrics-Server-Pods-Status-Kube-System.png [4]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Metrics-Server-Pods-Status-Kube-System.png
[5]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Kubectl-top-node-command-Output.png?ezimgfmt=ng:webp/ngcb22 [5]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Kubectl-top-node-command-Output.png?ezimgfmt=ng:webp/ngcb22
[6]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Kubectl-top-pod-command-output.png [6]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Kubectl-top-pod-command-output.png
[0]: https://img.linux.net.cn/data/attachment/album/202304/12/100919k6p6yyweu6nv6nkh.jpg

View File

@ -2,7 +2,7 @@
[#]: via: "https://opensource.com/article/23/3/power-sisterhood-allyship-open-source" [#]: via: "https://opensource.com/article/23/3/power-sisterhood-allyship-open-source"
[#]: author: "Paloma Oliveira https://opensource.com/users/discombobulateme" [#]: author: "Paloma Oliveira https://opensource.com/users/discombobulateme"
[#]: collector: "lkxed" [#]: collector: "lkxed"
[#]: translator: " " [#]: translator: "XiaotingHuang22"
[#]: reviewer: " " [#]: reviewer: " "
[#]: publisher: " " [#]: publisher: " "
[#]: url: " " [#]: url: " "
@ -96,7 +96,7 @@ via: https://opensource.com/article/23/3/power-sisterhood-allyship-open-source
作者:[Paloma Oliveira][a] 作者:[Paloma Oliveira][a]
选题:[lkxed][b] 选题:[lkxed][b]
译者:[译者ID](https://github.com/译者ID) 译者:[XiaotingHuang22](https://github.com/XiaotingHuang22)
校对:[校对者ID](https://github.com/校对者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
@ -107,4 +107,4 @@ via: https://opensource.com/article/23/3/power-sisterhood-allyship-open-source
[2]: https://www.if-me.org/ [2]: https://www.if-me.org/
[3]: https://blog.ecosia.org/ecosia-summer-of-code-mentoring/ [3]: https://blog.ecosia.org/ecosia-summer-of-code-mentoring/
[4]: https://www.coyotiv.com/ [4]: https://www.coyotiv.com/
[5]: https://www.npmjs.com/package/rainbow-penguin [5]: https://www.npmjs.com/package/rainbow-penguin

View File

@ -2,7 +2,7 @@
[#]: via: "https://www.debugpoint.com/arch-linux-gui-package-managers/" [#]: via: "https://www.debugpoint.com/arch-linux-gui-package-managers/"
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" [#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
[#]: collector: "lkxed" [#]: collector: "lkxed"
[#]: translator: " " [#]: translator: "geekpi"
[#]: reviewer: " " [#]: reviewer: " "
[#]: publisher: " " [#]: publisher: " "
[#]: url: " " [#]: url: " "

View File

@ -1,60 +0,0 @@
[#]: subject: "5 best practices for PatternFly, an open source design system"
[#]: via: "https://opensource.com/article/23/4/open-source-design-system-patternfly"
[#]: author: "Abigael Donahue https://opensource.com/users/abigaeljamie"
[#]: collector: "lkxed"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
5 best practices for PatternFly, an open source design system
======
Have you ever admired the facets of a gemstone? The angles and slants are a thing of beauty. You can see that a multi-faceted gemstone shines brighter than a flat one. You may also see this kind of beauty when analyzing a multi-faceted design system. A design system is a collection of guidelines, standards, and resources for creating consistent and unified user interfaces (UI). Like the facets of a diamond, an open source design system rich with diverse contributions and community engagement ultimately leads to better product experiences.
The [PatternFly][1] project is an open source design system for Red Hat products. But open source doesn't end with PatternFly's code. Behind PatternFly is a team of people who create designs completely in the open. From designers and developers to researchers and writers, we work together to operate as an open source community.
Our secret? We don't have one — we work in the open, remember? However, we use these five best practices. I'll share them here so that you too can power your own design system with open source.
### 1. Contribute collectively
We have a core PatternFly design team to design, maintain, and evolve the design system. But we encourage and welcome contributions from everyone. If you have a passion for collaboration and a knack for user experience (UX), [PatternFly wants to hear from you][2].
### 2. Build community
Nothing created in a silo makes its way to PatternFly. We believe design is better in the open. This is why we include the community in all updates, changes, and additions. We collect feedback on contributions from people across design and development so that everyone has a say in what gets implemented. We also seek input and collaboration from people across multiple [design disciplines][3]. This is done to break free from any bias or assumption. This kind of open design makes our design system stronger. It also strengthens our blossoming community of people who engage with or contribute to PatternFly (we lovingly refer to them as Flyers).
### 3. Loop in everyone
If you find that brainstorming ideas with others results in solutions better than any one person would have dreamed of, then you already think like a Flyer. We have regular design meetings where contributors present their ideas and discuss design approaches in a group setting. This enables us to keep our ideas collaborative and consider designs from all angles. Additionally, we host monthly community meetings so that we can connect with Flyers from across the globe and share the latest updates. You can catch all of our past meeting recordings on our [PatternFly YouTube channel][4].
### 4. Listen to users
As a community, we aim to have all PatternFly contributions lead to functional and beautiful product experiences across different contexts. To make that a reality, we hold ourselves accountable to break out of our own bubbles and engage with users. We work with UX researchers to test updates, changes, and additions with users — such as visual themes and interactions — to ensure that we're creating designs, resources, and experiences that solve for everyone, not just people like us.
### 5. Create connections
PatternFly is the thread of consistency through products across Red Hat's portfolio. Everyone has the creative freedom to build what best serves their users. But we work as a team to connect product groups through the design system for a more unified user experience. PatternFly resources are easy to access and open to all. This helps us create connections and squash silos.
### Come design in the open with us
Whether you're a team of 1 or 100, or whether your design system is open source or not — there's always room for a little collaboration and community in everything we do. Tell us how things turn out for you by connecting with the [PatternFly community][5]. We can't wait to hear from you.
--------------------------------------------------------------------------------
via: https://opensource.com/article/23/4/open-source-design-system-patternfly
作者:[Abigael Donahue][a]
选题:[lkxed][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://opensource.com/users/abigaeljamie
[b]: https://github.com/lkxed/
[1]: https://www.patternfly.org/v4/
[2]: https://www.patternfly.org/v4/contribute/about
[3]: https://design.redhat.com/?intcmp=7013a000002qLH8AAM
[4]: https://www.youtube.com/channel/UCqLT0IEvYmb8z__9IFLSVyQ
[5]: https://www.patternfly.org/v4/community

View File

@ -0,0 +1,60 @@
[#]: subject: "5 best practices for PatternFly, an open source design system"
[#]: via: "https://opensource.com/article/23/4/open-source-design-system-patternfly"
[#]: author: "Abigael Donahue https://opensource.com/users/abigaeljamie"
[#]: collector: "lkxed"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
开源设计系统 PatternFly 的 5 个最佳实践
======
你是否曾欣赏过宝石的切面? 角度和倾斜是一件美丽的事情。你可以看到多面宝石比平面宝石更亮。在分析一个多面的设计系统时,你也可能会看到这种美。设计系统是用于创建一致且统一的用户界面 (UI) 的准则、标准和资源的集合。就像钻石的各个切面一样,一个富含不同贡献和社区参与的开源设计系统最终会带来更好的产品体验。
[PatternFly][1] 项目是一个用于 Red Hat 产品的开源设计系统。但开源并没有以 PatternFly 的代码结束。PatternFly 的背后是一群完全公开创作设计的人。从设计师和开发人员到研究人员和作家,我们作为一个开源社区共同努力。
我们的秘密? 我们没有,我们开放工作,记得吗? 但是,我们使用这五个最佳实践。我将在这里分享它们,这样你也可以使用开源来支持你自己的设计系统。
### 1. 集体贡献
我们有一个核心的 PatternFly 设计团队来设计、维护和发展设计系统。但我们鼓励并欢迎所有人的贡献。如果你对协作充满热情并且擅长用户体验 (UX)[PatternFly 希望收到你的反馈][2]。
### 2. 建立社区
在孤岛中创建的任何内容都无法进入 PatternFly。我们相信开放的设计更好。这就是我们将社区纳入所有更新、更改和添加的原因。我们收集设计和开发人员对贡献的反馈以便每个人都对实施的内容有发言权。我们还寻求跨多个[设计学科][3]的人们的意见和协作。这样做是为了摆脱任何偏见或假设。这种开放的设计让我们的设计体系更加强大。它还加强了我们蓬勃发展的社区,该社区由参与 PatternFly 或为 PatternFly 做出贡献的人们组成(我们亲切地称他们为 Flyers
### 3. 在每个人中循环
如果你发现与他人集思广益的想法产生的解决方案比任何人梦寐以求的都要好,那么你已经像 Flyer 一样思考了。我们定期举行设计会议,供贡献者在小组环境中展示他们的想法并讨论设计方法。这使我们能够保持我们的想法协作并从各个角度考虑设计。此外,我们每月举办社区会议,以便我们可以与来自全球各地的 Flyers 联系并分享最新动态。你可以在我们的 [PatternFly YouTube 频道][4]上观看我们过去的所有会议记录。
### 4. 倾听用户
作为一个社区,我们的目标是让 PatternFly 的所有贡献都能在不同的环境中带来功能性和美观的产品体验。为了实现这一目标,我们要求自己打破自己的泡沫并与用户互动。我们与 UX 研究人员合作,与用户一起测试更新、更改和添加(例如视觉主题和交互),以确保我们创建的设计、资源和体验能够为每个人解决问题,而不仅仅是像我们这样的人。
### 5. 创建连接
PatternFly 是贯穿红帽公司产品的一致性的主线。每个人都有创造性的自由来构建最适合他们用户的东西。但我们作为一个团队通过设计系统连接产品组以获得更统一的用户体验。PatternFly 的资源很容易获得,并向所有人开放。这有助于我们建立联系,压制孤岛。
### 与我们一起开放设计
无论你是一个由 1 人还是 100 人组成的团队,或者你的设计系统是否是开源的,在我们所做的每一件事中,总有一点协作和社区的空间。联系 [PatternFly 社区][5],告诉我们你的结果如何。我们迫不及待地想收到你的来信。
--------------------------------------------------------------------------------
via: https://opensource.com/article/23/4/open-source-design-system-patternfly
作者:[Abigael Donahue][a]
选题:[lkxed][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://opensource.com/users/abigaeljamie
[b]: https://github.com/lkxed/
[1]: https://www.patternfly.org/v4/
[2]: https://www.patternfly.org/v4/contribute/about
[3]: https://design.redhat.com/?intcmp=7013a000002qLH8AAM
[4]: https://www.youtube.com/channel/UCqLT0IEvYmb8z__9IFLSVyQ
[5]: https://www.patternfly.org/v4/community