BetterManEddy

导航

 

解析:

helm是chart的一个管理工具,chart类似yum的rpm包,就是说helm相当于yum或者apt-get

使用方式:

1.helm search搜索可用的chart,分为公开以及自定义:

1.1helm search hub

1.2helm search repo (使用个人仓库地址)

helm search支持模糊匹配

2.helm install安装需要的包

2.1 helm 接受两个参数A release name that you pick, and the name of the chart you want to install

2.2 安装资源顺序:

  • Namespace
  • NetworkPolicy
  • ResourceQuota
  • LimitRange
  • PodSecurityPolicy
  • PodDisruptionBudget
  • ServiceAccount
  • Secret
  • SecretList
  • ConfigMap
  • StorageClass
  • PersistentVolume
  • PersistentVolumeClaim
  • CustomResourceDefinition
  • ClusterRole
  • ClusterRoleList
  • ClusterRoleBinding
  • ClusterRoleBindingList
  • Role
  • RoleList
  • RoleBinding
  • RoleBindingList
  • Service
  • DaemonSet
  • Pod
  • ReplicationController
  • ReplicaSet
  • Deployment
  • HorizontalPodAutoscaler
  • StatefulSet
  • Job
  • CronJob
  • Ingress
  • APIService

3.修改charts默认值

helm show values  chart_name

$ echo '{mariadb.auth.database: user0db, mariadb.auth.username: user0}' > values.yaml
$ helm install -f values.yaml bitnami/wordpress --generate-name

两种方式进行修改value

--set 通过命令行的方式修改

--values 通过yaml文件格式去修改

如果同时使用,则会将set的值覆盖yaml文件里面的值;helm get values会获取set后的值

4.helm update

helm update会更新修改的内容到最新的release ,不会修改旧的没有发生更改的内容

5.helm rollback

posted on 2022-12-06 15:57  BetterManEddy  阅读(325)  评论(0)    收藏  举报