Code Monkey home page Code Monkey logo

helm's Introduction

1.修改Chart.yaml中版本号为代码构建的版本号
2.个性value.yaml中配置后直接使用helm upgrade进行更新

安装helm push插件
helm plugin install https://github.com/chartmuseum/helm-push

添加harbor搭建的helm charts
helm repo add --username=admin --password=Harbor12345 myrepo http://xxx.xxx.xxx.xxx/chartrepo

查看本机所有helm repo
helm repo list

上传本地helm repo项目到仓库,项目Chart.yml定义版本
helm push --username=admin --password=Harbor12345 php myrepo

检查helm语法
helm lint ./php

安装本地仓库helm的chart,指定版本--version 1.7
helm install ./php -n php
helm install -n nginx --version 1.7 nginx

删除通过helm创建的服务
helm del --purge php

升级版本
helm ls
格式:helm upgrade [应用名称] [chart]
helm upgrade nginx nginx  #不指定--version升级到Chart.yml中定义的version的版本
helm upgrade --version 1.8 nginx nginx

可以通过Helm history查看一个Release的多次更改
helm history nginx

如果更新后的程序由于某些原因运行有问题,我们则需要回退到旧版本的应用,可以采用下面的命令进行回退。其中的参数1是前面Helm history中查看到的Release的更改历史
helm rollback nginx 1

升级传递变量设置和发布tag
helm upgrade --install jenkins \
        --set imagePullSecrets=docker-reg-secret \
        --set image.repository=${DOCKER_REG}/jenkins \
        --set image.tag='lts-k8s' \
        ./helm/jenkins-k8s

代码打包方式
cat > Dockerfile << EOF
FROM busybox:latest
COPY . /var/web/www
EOF

helm's People

Contributors

qiang93 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.