helm命令

 欢迎关注我的公众号:

 目前刚开始写一个月,一共写了18篇原创文章,文章目录如下:

istio多集群探秘,部署了50次多集群后我得出的结论

istio多集群链路追踪,附实操视频

istio防故障利器,你知道几个,istio新手不要读,太难!

istio业务权限控制,原来可以这么玩

istio实现非侵入压缩,微服务之间如何实现压缩

不懂envoyfilter也敢说精通istio系列-http-rbac-不要只会用AuthorizationPolicy配置权限

不懂envoyfilter也敢说精通istio系列-02-http-corsFilter-不要只会vs

不懂envoyfilter也敢说精通istio系列-03-http-csrf filter-再也不用再代码里写csrf逻辑了

不懂envoyfilter也敢说精通istio系列http-jwt_authn-不要只会RequestAuthorization

不懂envoyfilter也敢说精通istio系列-05-fault-filter-故障注入不止是vs

不懂envoyfilter也敢说精通istio系列-06-http-match-配置路由不只是vs

不懂envoyfilter也敢说精通istio系列-07-负载均衡配置不止是dr

不懂envoyfilter也敢说精通istio系列-08-连接池和断路器

不懂envoyfilter也敢说精通istio系列-09-http-route filter

不懂envoyfilter也敢说精通istio系列-network filter-redis proxy

不懂envoyfilter也敢说精通istio系列-network filter-HttpConnectionManager

不懂envoyfilter也敢说精通istio系列-ratelimit-istio ratelimit完全手册

 


————————————————

三个核心概念:

Chart: chart就是一个安装包,类似与rpm,deb这样的安装

Reporitory: 仓库,一个http服务器存放Charts

release: heml install一个chart之后生成的实例.一个chart每次安装都会产生一个release.
release
之间没有直接关系,每个releaserevision,对应这个releasehelm管理下的版本.

顶级选项:

--namespace –n  dev

--kubeconfig C:\Users\admin\.kube\config

--kube-context context-cluster1-admin

--debug

--registry-config   C:\Users\admin\AppData\Roaming\helm\registry.json

--repository-config C:\Users\admin\AppData\Roaming\helm\repositories.yaml

--repository-cache C:\Users\admin\AppData\Local\Temp\helm\repository

Klog相关选项:

k8s库中用到,本项目中并未用到

log_dir

log_file

log_file_max_size

Logtostderr

alsologtostderr

v

add_dir_header

skip_headers

skip_log_headers

stderrthreshold

vmodule

log_backtrace_at

4种安装方式:

repository, helm install stable/mysql

charts打包后的tgz,helm install mysql-2.3.tgz

tgz解压后的charts目录,helm install mysql/

url, helm install http://127.0.0.1:8879/charts/mysql

部署命令:

helm install chartmuseum --namespace chartmuseum chartmuseum/

Helm install --generate-name --namespace chartmuseum chartmuseum/

helm3 install chartmuseum --namespace test stable/chartmuseum

helm install chartmuseum --namespace test --version 2.7.0 stable/chartmuseum

helm install chartmuseum -f customvalue.yaml --namespace test chartmuseum-2.7.0.tgz

helm install chartmuseum -f customvalue.yaml --namespace test http://192.168.198.156:32432/api/charts/chartmuseum/2.7.0

Install命令:

helm3 install --generate-name . --dependency-update --dry-run

helm3 install kubeapp . --replace -n kubeapp

helm3 install kubeapp . --wait --timeout 1s  -n kubeapp

helm3 install  . --name-template=myapp   -n kubeapp

helm3 install  . --name-template="myapp-{{now|htmlDate}}"   -n kubeapp

--dry-run

--no-hooks

--replace

--timeout 300s

--wait

--generate-name

--name-template myapp

helm3 install  kubeapp . --atomic --timeout 1s   -n kubeapp

helm3 install  kubeapp .  -n kubeapp  --skip-crds

helm3 install  kubeapp .  -n kubeapp  --render-subchart-notes

--description

--devel

--dependency-update

--atomic

--skip-crds

--render-subchart-notes

-o –output table|json|yaml

helm3 install nginx nginx-ingress --version 1.30.3 --repo  https://kubernetes-charts.storage.googleapis.com -n kubeapp

helm3 install kubeapp . -n kubeapp --set frontend.image.tag=1.16

--values –f values.yaml

--set aa=bb,cc=dd

--set-string aa=false,bb=cc

--set-file  aa=script.sh,bb=script2.sh

--version 1.0

--verify

--keyring secring.gpg

--repo  http://1111

--username admin

--password admin

env completion命令

helm3 env

helm3 completion bash

helm3 completion bash > .helmrc ;echo "source .helmrc" >> .bashrc

Version命令:

helm3 version

helm version --template "{{.GoVersion}}"

helm version --template "{{.GitTreeState}}“

helm version --template "{{.GitCommit}}“

helm version --template "{{.Version}}"

--short

--client

--template

Status命令:

helm3 status chartmuseum -n chartmuseum

helm status nginx-ingress -n nginx-ingress --revision 2 -o table

--revision 1

-o –output

List命令:

helm3 list --all-namespaces

helm3 list -n chartmuseum

helm list --all-namespaces  --date --reverse

helm list --all-namespaces --short

--short

--date

--all

--uninstalled

--superseded

--uninstalling

helm list --all-namespaces  --all

--deployed

--failed

--pending

--all-namespaces

--max 256

--offset 1

--filter ^c.*m$

-o –output table|json|yaml

Search hub命令:

helm3 search hub chartmuseum

helm search hub --max-col-width 200 redis -o yaml --endpoint  http://192.168.198.154:31568

-o –output  json|table|yaml

--endpoint https://hub.helm.sh

--max-col-width 200

Search repo命令:

helm3 search repo chartmuseum

helm search repo redis –versions

helm search repo redis --versions --version 10.5.1s

--regexp

--versions

--version 10.5.1

--max-col-width 200

-o –output table|json|yaml

--devel

Repo命令:

helm repo remove stable

helm repo update更新index文件

Repo add命令:

helm3 repo add stable https://kubernetes-charts.storage.googleapis.com/

helm3 repo add chartmuseum http://192.168.198.156:nodePort --username admin --password admin

--username admin

--password admin

--no-update

Repo list 命令:

helm repo list

--output table|json|yaml

-o  table|json|yaml

Repo index命令:

helm3 repo index kubeapps --url http://192.168.198.156:32432/

生成index文件

Helm3 repo index .  --url http://192.168.198.156:32432 --merge C:\Users\admin\AppData\Local\Temp\helm\repository\chartmuseum-index.yaml

--url http://192.168.198.156:32432/

--merge C:\Users\admin\AppData\Local\Temp\helm\repository\chartmuseum-index.yaml

删除命令:

helm uninstall chartmuseum -n chartmuseum

Helm del chartmuseum -n chartmuseum

Helm delete chartmuseum -n chartmuseum

Helm un chartmuseum -n chartmuseum

--dry-run

--no-hooks

--keep-history

--timeout 300s

create命令:

helm3 create test

--starter  name

Template命令:

helm3 template test test

helm3 template test test-0.1.0.tgz

Helm template kubeapp kubeapps --show-only templates\chartsvc-deployment.yaml --show-only templates\chartsvc-service.yaml

Helm template kubeapp kubeapps --output-dir mydir

--show-only templates\chartsvc-deployment.yaml

--output-dir dir

--validate

--include-crds

--is-upgrade

--api-versions v1

--release-name

--post-renderer

install一样的flag

Package命令:

helm3 package --sign --key markhuang --keyring .gnupg/secring.gpg redis

helm3 package --sign --key markhuang --keyring .gnupg/secring.gpg redis --version 3.2.3 --app-version v1.7.2 --destination /root/aaa

helm3 package kubeapps --dependency-update

--sign

--key markhuang

--keyring secring.gpg

--version 3.2.3

--app-version v1.7.2

--destination /root

--dependency-update

Helm lint 命令:

helm3 lint redis nginx-ingress

--strict  fail on warnings

--with-subcharts

--values  values.yaml,values2.yaml

--set key1=val1,key2=val2

--set-string key1=val1,key2=val2

--set-file key1=path1,key2=path2

Upgrade命令:

Helm upgrade chartmuseum -n chartmusuem chartmusum/

--install

--devel

--dry-run

--recreate-pods Deprecated

--force 

--no-hooks

--timeout 300s

--reset-values

--reuse-values

--wait

 --atomic

--history-max 0

--cleanup-on-fail

--render-subchart-notes

--description

--version  1.0

--verify

--keyring secring.gpg

--repo http://xx

--username admin

--password admin

--values –f  values.yaml

--set aa=bb,cc=dd

--set-string aa=false,bb=cc

--set-file aa=script.sh,bb=scripts2.sh

-o –output json|table|yaml

--post-renderer execfile

Rollback命令:

helm rollback chartmuseum 2 -nchartmusuem

helm rollback nginx-ingress 1 -n nginx-ingress –force

helm rollback nginx-ingress 1 -n nginx-ingress --recreate-pods

--dry-run

--recreate-pods

--no-hooks

--timeout

--wait

--cleanup-on-fail

History命令:

helm3 hist chartmuseum -n chartmuseum\

Helm3 history chartmuseum -n chartmuseum

--max 10

-o –output table|json|yaml

Show命令:

Aliases:

 show, inspect

 helm3 show all  chartmuseum

 helm3 show chart chartmuseum

helm3 show readme chartmuseum

helm3 show values chartmuseum

-- version 1.0

-- verify

-- repo https://kubernetecharts.storage.googleapis.com

-- username admin

--password admin

Get命令:

helm3 get hooks chartmuseum -n chartmuseum

--revision

helm3 get manifest chartmuseum -n chartmuseum

--revision

helm3 get notes chartmuseum -n chartmuseum

--revision

helm3 get all chartmuseum -n chartmuseum

helm get all nginx-ingress  -n nginx-ingress --template {{.Release.Chart.Metadata.Description}}

--revision 1

--template {{.Release.Name}} |{{.Release.Manifest}}| {{.Release.Chart.Metadata.Description}}

helm3 get values chartmuseum -n chartmuseum

helm get values nginx-ingress  -n nginx-ingress --all -o table

--all

--revision 1

-o –output table|json|yaml

Dependency命令:

Aliases:

dependency, dep, dependencies

helm3 dep up chartmuseum

Helm3 dep update chartmuseum

helm3 dep list chartmuseum

helm dependency build CHART

--skip-refresh

Plugin命令:

helm3 plugin list
Install Aliases :

 install, add

helm plugin install [options] <path|url>... [flags]

Uninstall Aliases:

  uninstall, rm, remove

helm plugin uninstall <plugin>... [flags]

Update Aliases:

  update, up

helm plugin update <plugin>... [flags]

helm3 plugin update push

Verify命令:

Aliases:

helm3 verify kubeapps-3.2.3.tgz --keyring secring.gpg

 --keyring secring.gpg

Test命令:

helm3 test chartmuseum -n chartmuseum

执行test hook

--timeout 300s

--logs  test hooklog

Helm pull命令:

pull, fetch

Helm pull stable/chartmuseum

Helm pull stable/chartmuseumversion=2.7.0

helm3 pull --prov stable/chartmuseum

--devel

--prov

--untar

--untardir redis

--destination /root

--version 1.0

--verify

--repo https://kubernetecharts.storage.googleapis.com

--username

--password

helm3 pull stable/nginx-ingress --prov --destination /root/aaa --untardir nginx --untar devel

helm3 pull nginx-ingress  --version 1.29.3 --destination aaa --repo https://kubernetes-charts.storage.googleapis.com

Registry命令:

export HELM_EXPERIMENTAL_OCI=1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

hxpjava1

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值