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

网站首页关键词如何优化网页建设网站代码

网站首页关键词如何优化,网页建设网站代码,wordpress多价格插件,锦州网站建设排行榜什么是helm#xff1f;在没有这个helm之前#xff0c;deployment service ingress helm的作用 通过打包的方式#xff0c;把deployment service ingress等打包在一块#xff0c;一键式的部署服务#xff0c;类似yum安装 官方提供的一个类似与安装仓库额功能#xff0c;…什么是helm在没有这个helm之前deployment service ingress helm的作用 通过打包的方式把deployment service ingress等打包在一块一键式的部署服务类似yum安装 官方提供的一个类似与安装仓库额功能可以实现一键化部署应用 helm的概念 三个部分组成 1、chartL helm的软件包部署包service ingress定义好的yaml资源类似于yum的rpm包 2、Release 可以理解为版本也可以理解为在安装过程中给这个部署的应用起一个名字 3、Repository 仓库提供一个服务器这个服务器中包含chartL的资源yaml的资源保存的地址 版本 helm3 命令行 helm3 纯命令行方式 把源码包拖到helm helm-v3.12.0-linux-amd64.tar.gz 解压 tar -xf helm-v3.12.0-linux-amd64.tar.gz 进入linux-amd64/ cd linux-amd64/把helm拖到usr/local/bin下 mv helm /usr/local/bin/helm添加自动补全 vim /etc/profilesource (helm completion bash) 立刻生效 source /etc/profile搜索资源helm search repo aliyun | grep nginx查看chart的详细信息 helm show chart bitnami/nginx一般 helm show all bitnami/nginx所有安装 helm install my-nginx bitnami/nginx helm install 安装 my-nginx 安装的名称或者版本 bitnami/nginx bitnami仓库名nginx就是chart一系列yaml资源的集合删除 helm uninstall my-nginxhelm install bitnami/nginx --generate-name --generate-name 随机指定Release名称helm ls 查看所有安装Release helm自定义模版 根据自己的需求自定义chart然后部署到集群当中 拉取包mysql helm pull stable/mysql解压 tar -xf mysql-1.6.9.tgz创建nginx helm create nginx查看创建的nginx的目录 tree nginx nginx/ ├── charts ├── Chart.yaml ├── templates │   ├── deployment.yaml │   ├── _helpers.tpl │   ├── hpa.yaml │   ├── ingress.yaml │   ├── NOTES.txt │   ├── serviceaccount.yaml │   ├── service.yaml │   └── tests │   └── test-connection.yaml └── values.yamlcharts 用于存储依赖如果这个chart依赖于其他的chart依赖文件保存在这个目录 Chart.yaml helm chart的元数据文件包含了这个chart的名称版本维护者信息等等 Template 包含清单模版目录 deployment.yaml 部署应用的模版文件 helpers.tpl 帮助文档告诉用户如何来定义模版的值 hpa.yaml 定义了应用程序副本数的扩缩容行为 ingress.yaml 定义了外部流量如何转发到应用程序 NOTES.txt 注意事项 serviceaccount.yaml 应用程序的服务账号 service.yaml 集群内部的访问 tests test-connection.yaml 测试的目录和文件部署完chart之后用来测试的文件 values.yaml 核心文件自定义的值都是通过values.yaml把我们数据覆盖到安装的chart修改values.yaml# Default values for nginx. # This is a YAML-formatted file. # Declare variables to be passed into your templates.replicaCount: 3 #创建的副本数image:repository: nginxpullPolicy: IfNotPresent# Overrides the image tag whose default is the chart appVersion.tag: 1.22 #指向镜像的版本imagePullSecrets: [] nameOverride: fullnameOverride: serviceAccount:# Specifies whether a service account should be createdcreate: true# Annotations to add to the service accountannotations: {}# The name of the service account to use.# If not set and create is true, a name is generated using the fullname templatename: podAnnotations: {}podSecurityContext: {}# fsGroup: 2000securityContext: {}# capabilities:# drop:# - ALL# readOnlyRootFilesystem: true# runAsNonRoot: true# runAsUser: 1000service:type: ClusterIPport: 80ingress:enabled: trueclassName: annotations: {}# kubernetes.io/ingress.class: nginx# kubernetes.io/tls-acme: truehosts:- host: www.lucky-cloud.yamlpaths:- path: /pathType: Prefixtls: []# - secretName: chart-example-tls# hosts:# - chart-example.localresources:# We usually recommend not to specify default resources and to leave this as a conscious# choice for the user. This also increases chances charts run on environments with little# resources, such as Minikube. If you do want to specify resources, uncomment the following# lines, adjust them as necessary, and remove the curly braces after resources:.limits:cpu: 1memory: 512Mi autoscaling:enabled: falseminReplicas: 1maxReplicas: 100targetCPUUtilizationPercentage: 80# targetMemoryUtilizationPercentage: 80nodeSelector: {}tolerations: []affinity: {}验证语法 [rootmaster01 linux-amd64]# helm lint nginxLinting nginx [INFO] Chart.yaml: icon is recommended1 chart(s) linted, 0 chart(s) failed打包 helm package nginx Successfully packaged chart and saved it to: /opt/helm/linux-amd64/nginx-0.1.0.tgz部署 helm install nginx-11 ./nginx --dry-run --debug helm install 安装chart nginx-11 Release版本号 ./nginx 当前目录下的nginx的chart --dry-run --debug 这个chart不会被部署到集群当中参数验证测试chart的配置是否正确安装 方法一 helm install nginx-11 ./nginx -n default 方法二 helm install nginx-11 /opt/helm/linux-amd64/nginx-0.1.0.tgz -n default 删除 helm uninstall nginx-11 修改chart之后重新部署 修改values.yaml ....... service:type: NodePortport: 80nodePort: 31000 ingress:enabled: falseclassName: annotations: {} ......修改service.yaml apiVersion: v1 kind: Service metadata:name: {{ include nginx.fullname . }}labels:{{- include nginx.labels . | nindent 4 }} spec:type: {{ .Values.service.type }}ports:- port: {{ .Values.service.port }}targetPort: httpprotocol: TCPname: httpnodePort: {{.Values.service.nodePort}}selector:{{- include nginx.selectorLabels . | nindent 4 }}检测 helm lint nginx更新 helm upgrade nginx-11 nginx 回滚 查看回滚 helm history nginx-11 REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION 1 Sun Jan 21 21:17:54 2024 superseded nginx-0.1.0 1.16.0 Install complete 2 Sun Jan 21 21:46:04 2024 deployed nginx-0.2.0 1.16.0 Upgrade completehelm rollback nginx-11 1 上传Harbor 修改Harbor ..... harbor_admin_password: 123456 chart:absolute_url: enabled ......运行脚本 ./install.shmkdir -p ~/.local/share/helm/plugins/helm-pushtar -xf helm-push_0.8.1_linux_amd64.tar.gz -C ~/.local/share/helm/plugins/helm-pushdocker login -u admin -p 123456 https://hub.test.com上传 helm push nginx-0.2.0.tgz oci://hub.test.com/charts --insecure-skip-tls-verif
http://www.hkea.cn/news/14552502/

相关文章:

  • 免费创建自己的网站平台北京网站建设 专业10年
  • 中锤音建设有限公司网站网站开发网页权限如何控制
  • 购物网站建设行业现状手机端首页设计
  • 南宁市规划建设局 网站田园官方网站建设
  • 网站建设实验的总结昆明网站建设价格低
  • 有深度网站网站地图制作
  • 建设网站主题网站开发实用吗
  • 智能建站系统 网站建设的首选wordpress模板 鸟
  • 网站做数据统计网站footer怎么做
  • 西安网站设计西安搜推宝软件外包公司
  • 能源网站开发怎么查店名是否被注册
  • 河北省住房和城乡建设部网站什么网站的新闻做参考文献
  • 网站建设开发兴田德润东莞市卫生健康局
  • 学做网站论坛坑人吗石家庄 做网站
  • 帮助网站源码网站后台帐号
  • nginx 网站建设济南网站备案流程
  • 网站设计运行费用建设小学瓯江校区网站
  • 网站图片素材下载青岛市网页设计公司
  • 建网站主要工具成都便宜做网站的
  • 毕业设计网站最容易做什莫类型羊了个羊开发公司
  • 网站建设平台开发电子商务平台经营者通过交易规则
  • 顺德品牌网站建设价位静态网站做淘宝客
  • 在什么网站做兼职翻译织梦系统 子网站
  • 制作网站编程给客户做网站需要付法律责任吗
  • 石家庄电商网站开发wordpress单页调用标题
  • 香河县住房和城乡建设局网站网站中英文切换前端
  • 卫浴网站怎么做鼎承世纪食品有限公司网页制作
  • 网站301的作用百度词条优化
  • 个人与企业签订网站开发合同网站建设招标文件范本
  • 个人主机做网站淘宝客模板 wordpress