开发工具使用 October 22, 2020

k8s常用命令及技巧

Words count 961 Reading time 1 mins. Read count 0

安装Helm

  1. export HELM_HOME=$HOME/.helm
    mkdir .helm/plugins
  2. 拷贝helm命令,/usr/local/bin
  3. 1
    helm init -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.9.1 –stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts –client-only
  4. 2
    helm repo add cloud-product https://192.168.66.90:443/chartrepo/chart-cloud-product –ca-file=/etc/docker/certs.d/192.168.66.90:443/ca.crt –cert-file=/etc/docker/certs.d/192.168.66.90:443/server.cert –key-file=/etc/docker/certs.d/192.168.66.90:443/server.key –username=admin –password=hollysysAdmin1
  5. 默认没有push命令,安装:
    helm plugin install https://github.com/chartmuseum/helm-push
0%