kubernetes
  • Introduction
  • 安装
    • 组件端口
    • 二进制安装
    • Kubeadm
      • 安装单Master集群
      • 安装高可用集群(手动分发证书)
      • 安装高可用集群(自动上传证书)
      • 安装ETCD集群
      • 安装高可用集群(外部ETCD)
    • 启动参数解析
      • ETCD相关参数
  • 负载均衡
    • Service
    • Ingress
    • 安装MetalLB
    • Nginx-ingress-controller
      • 转发TCP与UDP服务
      • 启动参数
      • 自定义Nginx模板
  • 存储
    • Volume
    • PV与PVC
    • StorageClass
    • Local-PV
      • Static-Provisioner
    • 实践
      • Ceph-RBD
      • NFS
  • 有状态服务
    • Mysql实践
    • Operator
      • Etcd
      • Zookeeper
      • Mysql
  • 认证与授权
    • 认证
      • 实践
    • 授权
  • Helm
    • 安装
    • Chart
      • 依赖
    • Helm命令
    • Repository
  • 日志
  • 监控
    • Prometheus体系
      • Prometheus
        • 内置函数
        • 配置
          • 规则文件
        • PromQL
      • Exporter
        • Metrics
      • Grafana
        • 配置
      • AlertManager
        • 配置
    • 容器监控
      • Cadvisor的指标
      • k8s中部署Prom与Cadvisor
  • Istio
  • 资源预留
    • imagefs与nodefs
    • 总结
  • 集群联邦
    • 联邦DNS原理
    • 联邦DNS安装
    • 安装federation-v1
  • Other
    • ImagePullSecret
    • QOS
    • Apiserver的代理
    • 资源配额
Powered by GitBook
On this page
  • helm init
  • helm install
  • helm repo
  • helm repo list
  • helm repo index

Was this helpful?

  1. Helm

Helm命令

本文将介绍helm的常用命令

helm init

to be continued

helm install

helm install stable/tomcat --version=0.2.0
helm install ./tomcat-0.2.0.tgz
helm install ./tomcat-0.2.0
helm install https://kubernetes-charts.storage.googleapis.com/tomcat-0.2.0.tgz
helm install --repo https://kubernetes-charts.storage.googleapis.com nginx --version=x.x.x

helm repo

helm repo list
helm repo add name URL
helm repo remove name
helm repo update    # like yum makecache
helm repo index DIR    # generate index.yaml

helm repo list

$ helm repo list
NAME URL
stable    https://kubernetes-charts.storage.googleapis.com
local http://127.0.0.1:8879/charts

可以看到stable这个repository对应的URL是https://kubernetes-charts.storage.googleapis.com,它其实就是google的repository。其实我们也可以在~/.helm/repository/repositories.yaml文件中找到相同的内容(其中~表示执行helm init时所使用的用户的主目录)

apiVersion: v1
generated: 2019-04-08T05:21:15.557206406-04:00
repositories:
- caFile: ""
cache: /root/.helm/repository/cache/stable-index.yaml
certFile: ""
keyFile: ""
name: stable
password: ""
url: https://kubernetes-charts.storage.googleapis.com
username: ""
- caFile: ""
cache: /root/.helm/repository/cache/local-index.yaml
certFile: ""
keyFile: ""
name: local
password: ""
url: http://127.0.0.1:8879/charts
username: ""

helm repo index

Previous依赖NextRepository

Last updated 5 years ago

Was this helpful?