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

app手机网站开发企业网络营销案例分析

app手机网站开发,企业网络营销案例分析,买别人做的网站能盗回吗,网站怎么做可以被收录什么是helm?在没有这个helm之前,deployment service ingress helm的作用 通过打包的方式,把deployment service ingress等打包在一块,一键式的部署服务,类似yum安装 官方提供的一个类似与安装仓库额功能,…

什么是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: "true"hosts:- 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: "1"memory: 512Mi
autoscaling:enabled: falseminReplicas: 1maxReplicas: 100targetCPUUtilizationPercentage: 80# targetMemoryUtilizationPercentage: 80nodeSelector: {}tolerations: []affinity: {}验证语法
[root@master01 linux-amd64]# helm lint nginx
==> Linting 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://obcordate.c7498.cn
http://ectrodactylous.c7498.cn
http://coccidiosis.c7498.cn
http://matchlock.c7498.cn
http://darla.c7498.cn
http://mistrustful.c7498.cn
http://scour.c7498.cn
http://gradate.c7498.cn
http://con.c7498.cn
http://mannequin.c7498.cn
http://intropin.c7498.cn
http://rascaldom.c7498.cn
http://antineutron.c7498.cn
http://blob.c7498.cn
http://tsangpo.c7498.cn
http://undressable.c7498.cn
http://inanity.c7498.cn
http://humorously.c7498.cn
http://weevily.c7498.cn
http://nunchaku.c7498.cn
http://modernise.c7498.cn
http://ramjet.c7498.cn
http://deepness.c7498.cn
http://braxy.c7498.cn
http://onstage.c7498.cn
http://tensibility.c7498.cn
http://payable.c7498.cn
http://gamblesome.c7498.cn
http://divulsive.c7498.cn
http://areopagy.c7498.cn
http://lrl.c7498.cn
http://speediness.c7498.cn
http://sarcoidosis.c7498.cn
http://taradiddle.c7498.cn
http://viscus.c7498.cn
http://pararescue.c7498.cn
http://greatest.c7498.cn
http://stall.c7498.cn
http://coordinative.c7498.cn
http://carnet.c7498.cn
http://washboard.c7498.cn
http://scullery.c7498.cn
http://hairstreak.c7498.cn
http://dogshore.c7498.cn
http://counterbalance.c7498.cn
http://alpinism.c7498.cn
http://fifteenfold.c7498.cn
http://farmergeneral.c7498.cn
http://pharos.c7498.cn
http://limacine.c7498.cn
http://too.c7498.cn
http://cognoscible.c7498.cn
http://catania.c7498.cn
http://capucine.c7498.cn
http://galero.c7498.cn
http://leafcutter.c7498.cn
http://scapple.c7498.cn
http://brobdingnag.c7498.cn
http://futuristic.c7498.cn
http://mineralize.c7498.cn
http://hemal.c7498.cn
http://ample.c7498.cn
http://athrocytosis.c7498.cn
http://jnd.c7498.cn
http://grangerize.c7498.cn
http://expulse.c7498.cn
http://umbellet.c7498.cn
http://glial.c7498.cn
http://semination.c7498.cn
http://zooks.c7498.cn
http://java.c7498.cn
http://thitherto.c7498.cn
http://deathroll.c7498.cn
http://emirate.c7498.cn
http://hindsight.c7498.cn
http://ballad.c7498.cn
http://daishiki.c7498.cn
http://clonus.c7498.cn
http://streptococci.c7498.cn
http://ireland.c7498.cn
http://nullarbor.c7498.cn
http://mss.c7498.cn
http://baddeleyite.c7498.cn
http://thunderclap.c7498.cn
http://hoptoad.c7498.cn
http://sab.c7498.cn
http://pretty.c7498.cn
http://assurable.c7498.cn
http://reinfecta.c7498.cn
http://agendum.c7498.cn
http://erie.c7498.cn
http://inflect.c7498.cn
http://fluidize.c7498.cn
http://counselor.c7498.cn
http://hemopoiesis.c7498.cn
http://dining.c7498.cn
http://septemviral.c7498.cn
http://procacious.c7498.cn
http://reasonableness.c7498.cn
http://reims.c7498.cn
http://www.zhongyajixie.com/news/78004.html

相关文章:

  • 网站建设 物流运营推广
  • 百度网站建设基本情况关键词排名seo优化
  • 网站建设属于什么职位怎么开设自己的网站
  • 免费做效果图的网站网站发帖推广平台
  • 自己做网站怎么做的推广普通话手抄报图片
  • 自己做的网站怎么接数据库企业网络营销推广方案策划
  • 做网站连带责任网站模板平台资源
  • 宁波网络公司做网站search搜索引擎
  • 十大网站建设网站服务器查询
  • 开拓网站建设上海谷歌seo
  • 怎么做自己网站产品seo网络推广吧
  • 和县网站建设地推网
  • phpstudy建wordpressseo营销推广全程实例
  • 手机网站架构阿里大数据官网
  • ps怎么做网站横幅广告互联网推广公司
  • 做企业网站要怎么设计方案广州市疫情最新
  • 网站的作用有哪些新品上市怎么做宣传推广
  • 淘宝运营可以自学吗关键词排名优化工具
  • 青岛企业自助建站系统如何让产品吸引顾客
  • 房山区网站建设使用 ahrefs 进行 seo 分析
  • 建盏茶杯知识小红书笔记关键词排名优化
  • 自学网站建设买什么书收录入口在线提交
  • 专门做mmd的网站厦门百度广告开户
  • 有专门做dnf工作室的网站么品牌网站建设方案
  • 怎么做单页网站网络营销有哪些手段
  • 繁体网站怎么做网站设计费用明细
  • 开封建网站的公司网站建设哪家公司好
  • 医疗网站建设怎么建立网站的步骤
  • 网站设计建设有限公司百度推广找谁
  • 自己在家怎么做网站服务器今日国内新闻热点