钢铁侠头盔制作图纸下载 您所在的位置:网站首页 钢铁侠头盔彩铅 钢铁侠头盔制作图纸下载

钢铁侠头盔制作图纸下载

2023-09-15 16:44| 来源: 网络整理| 查看: 265

钢铁侠头盔制作图纸下载

我每天的大部分时间都涉及创建,修改和部署Helm图表以管理应用程序的部署。 Helm是Kubernetes的应用程序包管理器,负责协调应用程序的下载,安装和部署。 Helm图表是我们将应用程序定义为相关Kubernetes资源的集合的方式。

那么,为什么有人会使用头盔? Helm通过模板化的方法使在Kubernetes内部管理应用程序部署更加容易。 所有Helm图表都遵循相同的结构,同时仍具有足够的灵活性以表示可以在Kubernetes上运行的任何类型的应用程序。 Helm还支持版本控制,因为可以保证部署需求会随时间变化。 替代方法是使用多个配置文件,这些文件手动应用于Kubernetes集群以启动应用程序。 如果我们从将基础结构视为代码中学到了任何东西,那就是手动处理不可避免地会导致错误。 Helm图表使我们有机会将相同的课程应用于Kubernetes领域。

在此示例中,我们将逐步介绍如何将Helm与minikube结合使用,minikube是Kubernetes的单节点测试环境。 我们将制作一个小的Nginx Web服务器应用程序。 对于此示例,我在Linux笔记本电脑上安装了minikube 1.9.2版和Helm 3.0.0版。 要进行设置,请执行以下操作。

请按照此处的出色文档下载和配置minikube。 使用此处列出的您喜欢的软件包管理器下载或配置Helm ,或者从发行版中手动进行配置。 创建舵图

首先确认我们已安装了先决条件:

$ which helm ## this can be in any folder as long as it returns in the path / usr / local / bin / helm $ minikube status ## if it shows Stopped, run `minikube start` host: Running kubelet: Running apiserver: Running kubeconfig: Configured

启动新的Helm图表需要一个简单的命令:

$ helm create mychartname

就本教程而言,将图表命名为buildachart :

$ helm create buildachart Creating buildachart $ ls buildachart/ Chart.yaml   charts/      templates/   values.yaml 检查图表的结构

现在,您已经创建了图表,请查看其结构以查看内部内容。 您看到的前两个文件Chart.yaml和values.yaml定义了什么是图表以及在部署时其中将包含哪些值。

查看Chart.yaml ,您可以看到Helm图表结构的轮廓:

apiVersion : v2 name : buildachart description : A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart. # # Application charts are a collection of templates that can be packaged into versioned archives # to be deployed. # # Library charts provide useful utilities or functions for the chart developer. They're included as # a dependency of application charts to inject those utilities and functions into the rendering # pipeline. Library charts do not define any templates and therefore cannot be deployed. type : application

# This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. version : 0.1.0

# This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. appVersion : 1.16.0

第一部分包括图表正在使用的API版本(这是必需的),图表的名称以及图表的描述。 下一部分描述了图表的类型(默认情况下为应用程序),将要部署的图表的版本以及应用程序的版本(在进行更改时应递增)。

图表中最重要的部分是模板目录。 它包含将部署到群集中的应用程序的所有配置。 如下所示,该应用程序具有基本的部署,入口,服务帐户和服务。 该目录还包括一个测试目录,其中包括一个测试连接到应用程序的测试。 这些应用程序功能中的每一个都在templates /下具有其自己的模板文件:

$ ls templates/ NOTES.txt            _helpers.tpl  


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有