开始使用


Red Hat build of MicroShift 4.12

MicroShift 入门

Red Hat OpenShift Documentation Team

摘要

本文档提供了帮助您开始使用 MicroShift 的信息。您可以查找主题,如架构、Kubernetes 概述以及如何使用 MicroShift。

第 1 章 了解红帽构建的 MicroShift

使用 Red Hat build of MicroShift 的概述,这是 OpenShift Container Platform 派生的 Kubernetes 发行版本,旨在优化小格式因素设备和边缘计算。

1.1. 关于红帽构建的 MicroShift

低资源环境和低配置硬件环境会带来许多在云计算中不存在的挑战。红帽构建的 MicroShift 允许您通过以下方式解决边缘设备的问题:

  • 运行您在云中运行的相同 Kubernetes 工作负载,但在边缘运行。
  • 克服最小系统资源的操作挑战。
  • 解决严重网络约束的环境挑战,如低速连接或无连接。
  • 通过在边缘设备上直接安装系统镜像,满足在非常难于访问的位置中的挑战。
  • 构建并与边缘优化操作系统(如 Red Hat Enterprise Linux (RHEL) for Edge)集成。

红帽构建的 MicroShift 具有单节点部署的简单性和您在资源约束位置计算所需的功能和服务。您可以在不同的主机上有多个部署,创建每个应用程序所需的特定系统镜像。

第 2 章 架构

了解红帽构建的 MicroShift 架构的具体内容,包括设计意图、它与 OpenShift Kubernetes Engine 不同和 API 兼容性。

2.1. 架构设计

红帽构建的 MicroShift 是一个单节点容器运行时,旨在将使用容器的好处扩展到低资源边缘环境。因为红帽构建的 MicroShift 主要是部署应用程序的平台,因此仅包含在边缘和小格式计算环境中操作所必需的 API 和功能。

例如,红帽构建的 MicroShift 仅包含以下 Kubernetes 集群功能:

  • 网络
  • 入口
  • 存储
  • Helm

红帽构建的 MicroShift 还提供以下 Kubernetes 功能:

  • 编配
  • 安全性

要优化部署,请使用带有兼容操作系统的 MicroShift 的红帽构建,如 Red Hat Enterprise Linux (RHEL) for Edge。使用红帽构建的 MicroShift 和 Red Hat Enterprise Linux (RHEL) for Edge 组成 Red Hat Device Edge。虚拟机由红帽构建的 MicroShift 部署中的操作系统处理。

图 2.1. 作为 Red Hat Device Edge 的一部分,红帽构建的 MicroShift。

<Red Hat build of MicroShift 只适用于 Kubernetes 集群服务网络

OpenShift Kubernetes Engine 的以下操作区别可帮助您了解红帽构建的 MicroShift 可以被部署的位置:

2.2. 与 OpenShift Kubernetes Engine 的主要区别

  • 安装了 MicroShift 的红帽构建的设备是自我管理
  • 与基于 RPM-OStree 的系统兼容
  • 仅使用基本功能(如安全性和运行时控制)所需的 API
  • 从 OpenShift CLI (oc) 工具启用命令子集
  • 不支持添加 worker 节点的工作负载高可用性 (HA) 或横向扩展

图 2.2. 红帽构建的 MicroShift 与 OpenShift Kubernetes Engine 的不同。

<Red Hat MicroShift 的构建只负责 Kubernetes 集群功能

图 2 显示 OpenShift Kubernetes Engine 与 Red Hat build of MicroShift 具有相同的集群功能,并添加以下内容:

  • 安装
  • OTA(Over-the-air)升级
  • Cluster Operators
  • Operator Lifecycle Manager
  • 监控
  • 日志记录
  • Registry
  • 授权
  • 控制台(Console)
  • 云集成
  • 通过 OpenShift Virtualization 的虚拟机 (VM)

在 OpenShift Kubernetes Engine 和其他 OpenShift Container Platform 部署中,通过集群功能进行操作系统中的所有组件作为一个综合单元,具有适用于多节点 Kubernetes 工作负载的完整集群服务。使用红帽构建的 MicroShift,操作系统执行无线更新、监控和日志记录等功能。

2.3. 红帽构建的 MicroShift OpenShift API

除了标准的 Kubernetes API 外,红帽构建的 MicroShift 还包括 OpenShift Container Platform 支持的 API 的一小部分。

APIAPI 组

Route(路由)

route.openshift.io/v1

SecurityContextConstraints

security.openshift.io/v1

2.4. 红帽构建的 MicroShift Kubernetes API

Kubernetes API 在红帽构建的 MicroShift 中完全访问,并可使用 kubectl 命令行工具或 OpenShift Container Platform CLI 工具(oc)进行管理。oc 二进制文件与 kubectl 兼容,提供一组可与红帽构建的 MicroShift 搭配使用的功能。安装这两个工具以用于红帽构建的 MicroShift,可帮助您访问使用部署所需的所有资源。

法律通告

Copyright © 2023 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat, Inc.