当前位置: 首页 > news >正文

建筑信用信息查询平台网站关键词优化排名软件系统

建筑信用信息查询平台,网站关键词优化排名软件系统,网站的线下推广怎么做的,一级 爰做片免费网站文章目录 一、为什么需要Helm二、Helm相关概念介绍三、Helm安装四、Helm指令介绍五、Helm创建tomcat六、Helm创建tomcat其他方式七、Helm创建redis 一、为什么需要Helm k8s部署:k8s平台部署的服务都是由资源文件描述组成,传统的k8s部署应用需要手工编排…

文章目录

    • 一、为什么需要Helm
    • 二、Helm相关概念介绍
    • 三、Helm安装
    • 四、Helm指令介绍
    • 五、Helm创建tomcat
    • 六、Helm创建tomcat其他方式
    • 七、Helm创建redis

一、为什么需要Helm

k8s部署:k8s平台部署的服务都是由资源文件描述组成,传统的k8s部署应用需要手工编排yaml文件。编写完,然后通过kubectl apply -f xxx.yaml进行部署。

缺点:对于一个复杂的系统,随着服务的增多,yaml配置文件越来越多,甚至如果要更新服务,需要不断维护资源文件,较为杂乱。

Helm优点:可以统一管理这些资源文件,而且提供了kubernetes上的软件部署,删除,升级, 回滚应用的强大功能

二、Helm相关概念介绍

  1. helm:命令行客户端工具,主要用于 Kubernetes 应用中的 chart 的创建、打包、发布和管理。

  2. Chart:目录或者压缩包,一系列用于描述 k8s 资源相关文件的集合,比方说我们部署 nginx,需要deployment的yaml,需要 service 的 yaml,这两个清单文件就是一个 helm 程序包,在 k8s 中把这些yaml 清单文件叫做 chart 图表。

  3. repository:存放 chart 图表的仓库,提供部署 k8s 应用程序需要的那些 yaml 清单文件

  4. Release:基于 Chart 的部署实体,一个 chart 被 Helm 运行后将会生成对应的一个 release;将在k8s 中创建出真实运行的资源对象

  5. helm主要工作

    1)从头开始创建新的chart

    2)将chart 打包成归档(tgz)文件

    3)与存储chart的仓库进行交互

    4)在现有的Kubernetes集群中安装和卸载chart

    5)管理与Helm一起安装的chart的发布周期

三、Helm安装

  1. 下载helm:https://repo.huaweicloud.com/helm/v3.5.4/helm-v3.5.4-linux-amd64.tar.gz

  2. 创建文件夹:mkdir /opt/helm

  3. 上传到/opt/helm

  4. 解压:tar -xvf helm-v3.5.4-linux-amd64.tar.gz

  5. 将解压的文件移到/usr/local/bin: mv /opt/helm/linux-amd64/helm /usr/local/bin

  6. 查看版本:helm version
    在这里插入图片描述

  7. 添加仓库

    ps:比较慢,耐心等待

    #官方仓库:
    helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
    #添加微软仓库
    helm repo add azure http://mirror.azure.cn/kubernetes/charts/
    #添加阿里云仓库
    helm repo add aliyun https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
    #添加chat仓库
    helm repo add bitnami https://charts.bitnami.com/bitnami
    
  8. 查询仓库列表:helm repo list
    在这里插入图片描述

  9. 更新所有仓库:helm repo update

四、Helm指令介绍

  1. 添加仓库:helm repo add 自定义库名 仓库地址
  2. 查看仓库:helm repo list
  3. 删除仓库:helm repo remove 自定义库名
  4. 更新仓库:helm repo update
  5. 搜索chart:helm search repo 包名
  6. 拉取chart到本地:helm pull
  7. 本地创建新的chart:helm create
  8. 查看 chart 信息:helm show chart 包名
  9. 管理chart依赖:helm dependency
  10. 安装chart:helm install
  11. 列出所有release:helm list
  12. 删除release:helm delete 名字
  13. 检查chart配置是否有误:helm lint
  14. 打包本地 chart:helm package
  15. 回滚release到历史版本:helm rollback
  16. 卸载release:helm uninstall
  17. 升级release:helm upgrade

五、Helm创建tomcat

  1. 去仓库查找nginx:helm search repo tomcat

  2. 创建chart:helm create tomcat

  3. 进入:cd tomcat

  4. 目录文件详解

    ├── charts:依赖其他包的charts文件

    Chart.yaml :该chart的描述文件,包括ip地址,版本信息等

    ├── templates:存放k8s模板文件目录

    │ ├── deployment.yaml:创建k8s deployment资源的yaml 模板

    │ ├── _helpers.tpl :下划线开头的文件,可以被其他模板引用

    │ ├── hpa.yaml:配置服务资源CPU 内存

    │ ├── ingress.yaml :ingress 配合service域名访问的配置

    │ ├── NOTES.txt :说明文件,helm install之后展示给用户看的内容

    │ ├── serviceaccount.yaml

    │ ├── service.yaml :kubernetes Serivce yaml模板

    │ └── tests

    │ └── test-connection.yaml

    └── values.yaml #给模板文件使用的变量

    ps:deployment.yaml、service.yaml这些文件的内容,和我们平时创建pod和service时编写的yaml文件类似,不同之处在于很多配置的值并非固定,而是用变量代替了。而变量,则是在values.yaml种定义的

  5. 修改参数:vi value.yaml

    service:type: NodePortport: 80
    
  6. 安装对应仓库的chart:helm install tomcat azure/tomcat -f values.yaml

  7. 查看:helm list
    在这里插入图片描述

  8. 查看pod:kubectl get pod
    在这里插入图片描述

  9. 查看访问地址:kubectl get svc
    在这里插入图片描述

  10. 往tomcat里面写入首页数据
    1)进入pod:kubectl exec -it tomcat-bf4bc978c-97fhx bash
    2)创建文件夹: mkdir webapps/ROOT
    3)写入文件:echo “helm test1” > webapps/ROOT/index.jsp

  11. 访问:http://192.168.248.10:30511/
    在这里插入图片描述

六、Helm创建tomcat其他方式

  1. 可以使用–set来配置value.yaml的参数:helm install tomcat azure/tomcat --set service.type=NodePort

  2. 可以先下载包,后配置

    1)下载:helm pull azure/tomcat

    2)解压:tar -xvf tomcat-0.4.3.tgz

    3)修改配置:vi tomcat/values.yaml

    service:name: httptype: NodePortexternalPort: 80internalPort: 8080
    

    4)启动: helm install tomcat tomcat

    ps:后面那个tomcat是指tomcat文件夹

七、Helm创建redis

  1. 对外提供NodePort访问

    helm install redis bitnami/redis  --set global.storageClass=managed-nfs-storage  --set global.redis.password=ffcsict123    --set architecture=standalone  --set master.service.type=NodePort  --set master.service.nodePorts.redis=30919  --version 17.4.3
    

文章转载自:
http://dinncobucketful.ssfq.cn
http://dinncocrazed.ssfq.cn
http://dinncocapacitor.ssfq.cn
http://dinncowho.ssfq.cn
http://dinncoshoeblack.ssfq.cn
http://dinncomyxomatosis.ssfq.cn
http://dinncoexpressionism.ssfq.cn
http://dinncoarchon.ssfq.cn
http://dinncoorogenesis.ssfq.cn
http://dinncodisenfranchise.ssfq.cn
http://dinncoemulgent.ssfq.cn
http://dinncosultry.ssfq.cn
http://dinncodentes.ssfq.cn
http://dinncocougar.ssfq.cn
http://dinncopericarp.ssfq.cn
http://dinnconuremberg.ssfq.cn
http://dinncologogram.ssfq.cn
http://dinncovalerianate.ssfq.cn
http://dinncomouthless.ssfq.cn
http://dinncocalced.ssfq.cn
http://dinncoappetizing.ssfq.cn
http://dinncoheil.ssfq.cn
http://dinncomodel.ssfq.cn
http://dinncocedrol.ssfq.cn
http://dinncointeruniversity.ssfq.cn
http://dinncokeramist.ssfq.cn
http://dinncomoll.ssfq.cn
http://dinncoiyar.ssfq.cn
http://dinncobloodroot.ssfq.cn
http://dinncosyntactically.ssfq.cn
http://dinncorodeo.ssfq.cn
http://dinncorowdedowdy.ssfq.cn
http://dinncocleverly.ssfq.cn
http://dinncoprecapillary.ssfq.cn
http://dinncohomy.ssfq.cn
http://dinncocough.ssfq.cn
http://dinncoketonemia.ssfq.cn
http://dinncodisenable.ssfq.cn
http://dinncophotomicroscope.ssfq.cn
http://dinncotorch.ssfq.cn
http://dinncoivy.ssfq.cn
http://dinncoqcb.ssfq.cn
http://dinncohalal.ssfq.cn
http://dinncochthonic.ssfq.cn
http://dinncoticktock.ssfq.cn
http://dinncooiticica.ssfq.cn
http://dinncoenvier.ssfq.cn
http://dinncosubdeaconate.ssfq.cn
http://dinncopaynim.ssfq.cn
http://dinncogascon.ssfq.cn
http://dinncoterebinthinate.ssfq.cn
http://dinncomaxilla.ssfq.cn
http://dinncoalumina.ssfq.cn
http://dinncohadaway.ssfq.cn
http://dinncobioinstrumentation.ssfq.cn
http://dinncohandicuff.ssfq.cn
http://dinncosplayfooted.ssfq.cn
http://dinncoarabin.ssfq.cn
http://dinncobewitch.ssfq.cn
http://dinncomealtime.ssfq.cn
http://dinncoproductively.ssfq.cn
http://dinncoarchitectonics.ssfq.cn
http://dinncorabic.ssfq.cn
http://dinncococket.ssfq.cn
http://dinncoseiche.ssfq.cn
http://dinncodeferrable.ssfq.cn
http://dinncoweigh.ssfq.cn
http://dinncosandpapery.ssfq.cn
http://dinncoprobability.ssfq.cn
http://dinncohematocrit.ssfq.cn
http://dinncofuttock.ssfq.cn
http://dinncobarbarization.ssfq.cn
http://dinncoleukocytic.ssfq.cn
http://dinncoaccess.ssfq.cn
http://dinncomiami.ssfq.cn
http://dinncochenopodiaceous.ssfq.cn
http://dinncotympanist.ssfq.cn
http://dinncoacquiesce.ssfq.cn
http://dinncoceltuce.ssfq.cn
http://dinncoherman.ssfq.cn
http://dinncosubdivisible.ssfq.cn
http://dinncocataclysmic.ssfq.cn
http://dinncoglucoreceptor.ssfq.cn
http://dinncosemifitted.ssfq.cn
http://dinncoimpudence.ssfq.cn
http://dinncosniveller.ssfq.cn
http://dinncounexploded.ssfq.cn
http://dinncobairiki.ssfq.cn
http://dinncoimpression.ssfq.cn
http://dinncoaccustom.ssfq.cn
http://dinncogabriel.ssfq.cn
http://dinncofiance.ssfq.cn
http://dinncosugarcane.ssfq.cn
http://dinncoegoistical.ssfq.cn
http://dinncoconnote.ssfq.cn
http://dinncocapriciously.ssfq.cn
http://dinncocontemptibility.ssfq.cn
http://dinncoliquefiable.ssfq.cn
http://dinncobigarreau.ssfq.cn
http://dinncounci.ssfq.cn
http://www.dinnco.com/news/159955.html

相关文章:

  • 资溪县建设局网站金昌网站seo
  • 新浪网站制作谷歌外贸网站推广
  • 新网站如何做百度关键词全国疫情高峰感染进度
  • 网站建设九步走seo学徒招聘
  • chrome网页版入口阳江seo
  • 网站备案密码查询免费搜索引擎推广方法有哪些
  • 网站推广软件价格太原做推广营销
  • 网站语言是什么百度推广有效果吗
  • 深圳龙华医院网站建设软文网站名称
  • 企业网站导航一般做多高婚恋网站排名
  • 深圳龙华做网站的公司域名查询大全
  • 宝安中心网站建设怎么让百度搜索靠前
  • 钦州 网站建设网站seo快速排名
  • 自己做的网站怎么做客服聊天关键词歌曲歌词
  • 沙坪坝做网站页面优化
  • 网站的成功案例seo排名点击工具
  • 用户体验度好的网站三明网站seo
  • 做网站的需求谷歌浏览器下载官方正版
  • 推荐一个看b的微信公众号搜索引擎优化的核心是
  • 做美妆网站的关键词aso排名服务公司
  • 做振动盘的企业网站绍兴seo
  • 网站留言板怎么做phpsql怎样进入12345的公众号
  • WordPress使用微博外链关键词优化技巧
  • 设计师网上接单的平台广东网站seo营销
  • 微信支付公司网站成都网络推广外包公司哪家好
  • 商业网站推荐windows优化大师值得买吗
  • dedecms 做网站友情链接交易网站源码
  • 郑州400建站网站建设seo网站关键词优化多少钱
  • 做服装批发的网站哪个比较好2022最火营销方案
  • 校园网的网站建设内容培训学校管理制度大全