Skip to content
石头软件测试技术分享石头软件测试技术分享
主页
github icon
  • cicd

    • 传统项目部署

      • 持续集成/持续发布
        • jenkins简介
          • jenkins项目部署
          • 容器化部署

            • jenkins打包dokcer镜像
              • jenkins升级rancher服务
                • 参考文档
                  • 使用插件
                    • rancher配置
                      • Rancher创建api key
                        • 获取工作api路径
                        • jenkins配置
                          • 增加rancher秘钥
                            • 使用rancher插件
                        • 工具集成

                          • jenkins集成jmeter
                            • jenkins集成allure
                              • jenkins分发资源
                                • 钉钉消息发送

                              jenkins升级rancher服务

                              author icon石头calendar icon2022年1月18日category icon
                              • 持续集成/持续发布
                              tag icon
                              • jenkins
                              timer icon小于 1 分钟

                              此页内容
                              • 参考文档
                              • 使用插件
                              • rancher配置
                                • Rancher创建api key
                                • 获取工作api路径
                              • jenkins配置
                                • 增加rancher秘钥
                                • 使用rancher插件

                              # jenkins升级rancher服务

                              # 参考文档

                              https://blog.csdn.net/baidu_39478047/article/details/108485528open in new windowhttps://www.cnblogs.com/xiao987334176/p/13162700.html#autoid-0-0-0open in new window

                              # 使用插件

                              Redeploy Rancher2.x Workload

                              警告

                              可能会遇到插件无法选择rancher秘钥的情况,请下载插件替换: https://github.com/hicjcn/redeploy-rancher2-workload-plugin

                              # rancher配置

                              # Rancher创建api key

                              1. 添加key
                                img.png

                              2.输入描述选择失效时间和范围
                              img_1.png

                              1. 保存key
                                api访问地址和Bearer Token将在jenkins中添加秘钥使用
                                img_2.png

                              # 获取工作api路径

                              1. 找到rancher工作api入口
                                img_3.png

                              2. 获取游览器url取/v3/后面的路径
                                img_5.png

                              # jenkins配置

                              # 增加rancher秘钥

                              1. 直接在使用时配置
                                img_6.png

                              2. 选择秘钥类型为 Rancher2.x APl Keys
                                img_7.png

                              3. 填入内容
                                填入描述 Endpoint填入rancher工作api的url中/project/前的内容
                                填入上面获取到的Bearer Token
                                img_8.png

                              # 使用rancher插件

                              1. 选择使用秘钥
                              2. 使用前面步骤获取到的工作api路径,以/project/开头的内容
                              3. 勾选总是拉取镜像
                              4. 输入需要更新的镜像地址
                                img_4.png
                              上一页
                              jenkins打包dokcer镜像
                              Copyright © 2021-present Evan You 石头 | 备案号 : 蜀ICP备2021021200号-2 | 友情链接 : APP开发者工具