helm charts openshift Certified 实践

1. helm 介绍
Helm 是 Kubernetes 最初的软件包经理之一。Red Hat®现在正在认证 Helm Charts,与 Red Hat 认证操作员的方式非常相似。为了了解合作伙伴的舵手图或操作员如何被红帽公司认证,红帽公司发布了OpenShift和容器认证的合作伙伴指南。在这个实验室里,你可以学习到认证舵机图。首先,您试图部署未经认证的 Helm 图表,导致安装失败。然后检查安装失败的原因。接下来,您部署一张经过认证的舵轮图,并观察它成功的条件。
目标:
验证 the Red Hat Certified Helm Chart repository
添加第三方 Helm 存储库
Install a non-certified Helm Chart (fails on purpose)
安装 Red Hat Community Helm Chart 存储库
2. 验证红帽认证的 Helm Chart Repository
Red Hat 已经创建了一个舵机海图存储库来提供 Red Hat to provide Certified Helm Charts。在本练习中,您将验证存储库是否存在于您的集群中。charts.openshift.io是官方认证 Helm Charts repository。
浏览到您的 Red Hat OpenShift®容器平台 web 控制台,并以
admin身份登录有关此操作的说明和凭证在您收到的配置电子邮件中使用透视图切换器切换到 Administrator 透视图
在导航菜单中,单击“
Home”。.在“首页导航”区域单击“
Search”。Click the
Resourcesdrop-down list and selectHelmChartRepository.Click
HCR openshift-helm-charts.Click the
YAMLtab.Scroll to line 36 to see the URL of the OpenShift Certified Charts Repository:url:
https://charts.openshift.io
3. 添加 Helm Repository
在本例中,您将安装一个特定的新 Helm Repository。它不会起作用,因为你的集群是在 AWS 上,而这个例子是针对 Azure 的。但是这一课很重要,所以一定要完成练习。
3.1 View Quick Start
1.Use the perspective switcher to switch to the Developer perspective2.Click Add and click View all quick starts:
3.在搜索框中,键入 helm,然后在 helm Chart Catalog 卡中选择“Manage available content in the Helm Chart Catalog”。
4.遵循右边打开的五分钟介绍帮助中的步骤。
3.2 Install Helm Client
1.登录您的 bastion 主机 2.在你的堡垒主机上安装头盔客户端下载它从 Red Hat 镜像:
3.3 Install Non-Certified Helm Chart
在本节中,您将使用 Helm 命令行应用程序从命令行安装未经认证的 Helm Chart。1.Log in to your bastion host using SSH.实验 1 有相关说明 2.检查 helm 是否工作正常:
3,执行以下命令将 Bitnami Helm 存储库添加到您的堡垒
4.为了确保 Bitnami 存储库工作正常,列出所有的 Helm Charts:
5.接下来,尝试从 Bitnami 库中安装一个图表:首先,创建一个项目来部署图表到:
Install a chart using a <release_name>, which is a unique identifier you make up, and a <chart> name, which is the actual chart name from the repository:
6.检查 Pod 是否启动:
如果你确实看到了mariadb荚果,等几分钟,然后尝试再次oc get pods。估计吊舱已经开走了。
错误是什么?这是一个权限问题。MariaDB Helm Chart试图部署 Pods 的StatefulSet,但是失败了,因为运行 pod 请求的 userId 对于 OpenShift 的强默认权限设置来说太低了。
7.:具体错误见:
4. 安装 Red Hat 社区 Helm Repository
除了 Red Hat Certified Helm Charts 之外,Red Hat 还有一个开发人员存储库。到目前为止,在认证库中没有多少有趣的舵轮图。在本节中,您将添加开发人员的存储库,并查看是否可以部署一些有用的应用程序。1.从 web 控制台顶部的工具栏中,单击 ocp_web_console_add_icon (Add),将以下 YAML 内容添加到集群中。2.复制并粘贴以下 YAML 内容到打开的文本区域:
3.Click Create.4.Use the perspective switcher to switch to the Developer perspective.5.Select the my-helm-test project if it is not already selected.6.In the navigation menu, click Add.7.Scroll down to the Developer Catalog card and click Helm Chart.
注意,你的集群现在有社区贡献的专门为 OpenShift 制作的 Helm Charts:
8.Install the Helm Charts if you like.Red Hat community charts are likely to work on your cluster.
9.Clean up the the environment:
In this lab you experienced the various ways that Helm Charts are made available through Helm Repositories.
You validated the Red Hat Certified Helm Repository
You added a third party Helm Repository
You installed a non-certified Helm Chart to experience a failure
You installed the Red Hat Community Helm Repository
In the next lab you try out the Vertical Pod Autoscaler with your Coffee Shop application.










评论