zoukankan      html  css  js  c++  java
  • Tanzu Kubernetes Cluster 版本升级

    环境信息:

    namespace为 tkc-cluster, Tanzu Kubernetes Cluster为:tkc-guest-cluster

    第一步:ContentLabrary

    在vSphere Web Client中看到为Tanzu Kubernetes Cluster创建的ContentLabrary中已经自动下载了 v1.17.7版本,于是将已部署的Tanzu Kubernetes Cluster进行升级。

    第二步:确定当前版本

    Tanzu Kubernetes集群当前版本为 1.16.8

    
    
    $ kubectl config use-context tkc-guest-cluster   # 切换到 tanzu kubernetes cluster
    Switched to context "tkc-guest-cluster".
    $ kubectl get node
    NAME                                               STATUS   ROLES    AGE    VERSION
    tkc-guest-cluster-control-plane-6cfsf              Ready    master   10d    v1.16.8+vmware.1
    tkc-guest-cluster-control-plane-drlqp              Ready    master   10d    v1.16.8+vmware.1
    tkc-guest-cluster-control-plane-wmn2s              Ready    master   10d    v1.16.8+vmware.1
    tkc-guest-cluster-workers-8k9c8-5576b69b67-rcsvd   Ready    <none>   3d2h   v1.16.8+vmware.1
    tkc-guest-cluster-workers-8k9c8-5576b69b67-s7hch   Ready    <none>   10d    v1.16.8+vmware.1
    tkc-guest-cluster-workers-8k9c8-5576b69b67-sb6ss   Ready    <none>   3d2h   v1.16.8+vmware.1
    tkc-guest-cluster-workers-8k9c8-5576b69b67-tnxn2   Ready    <none>   10d    v1.16.8+vmware.1
    tkc-guest-cluster-workers-8k9c8-5576b69b67-vxgt9   Ready    <none>   10d    v1.16.8+vmware.1

    第三步:执行版本升级

    注意需要登录suppervisor cluster才能执行升级命令

    $ read -r -d '' PATCH <<'EOF'
    spec:
      distribution:
         fullVersion: null
        version: v1.17.7
    EOF

     $ kubectl patch --type=merge tanzukubernetescluster tkc-guest-cluster --patch "$PATCH"    # 需要切换到supersivor cluster

      tanzukubernetescluster.run.tanzu.vmware.com/tkc-guest-cluster patched

    第四步:查看升级进度

    默认以滚动的方式进行升级。

    $ kubectl config use-context tkc-guest-cluster   # 切换到 tanzu kubernetes cluster
    Switched to context "tkc-guest-cluster".
    $ kubectl get node
    NAME                                               STATUS     ROLES    AGE     VERSION
    tkc-guest-cluster-control-plane-6cfsf-7138032      NotReady   master   8m55s   v1.17.7+vmware.1
    tkc-guest-cluster-control-plane-drlqp              Ready      master   10d     v1.16.8+vmware.1
    tkc-guest-cluster-control-plane-drlqp-7138032      Ready      master   2m36s   v1.17.7+vmware.1
    tkc-guest-cluster-control-plane-wmn2s              Ready      master   10d     v1.16.8+vmware.1
    tkc-guest-cluster-workers-8k9c8-5576b69b67-rcsvd   Ready      <none>   3d3h    v1.16.8+vmware.1
    tkc-guest-cluster-workers-8k9c8-5576b69b67-s7hch   Ready      <none>   10d     v1.16.8+vmware.1
    tkc-guest-cluster-workers-8k9c8-5576b69b67-sb6ss   Ready      <none>   3d3h    v1.16.8+vmware.1
    tkc-guest-cluster-workers-8k9c8-5576b69b67-tnxn2   Ready      <none>   10d     v1.16.8+vmware.1
    tkc-guest-cluster-workers-8k9c8-5576b69b67-vxgt9   NotReady   <none>   10d     v1.16.8+vmware.1
  • 相关阅读:
    CentOS7安装xrdp(windows远程桌面连接linux)
    MySQL⽀持的分区类型有哪些?
    为什么说B+⽐B树更适合实际应⽤中操作系统的⽂件索引和数据库索引?
    为什么使⽤数据索引能提⾼效率?
    前端day12 作用域 作用域链 闭包 JS块状作用域 JS对象和构造函数 JS原型和原型链 JS-Object对象 JS获取页面中元素-给元素添加事件-设置元素样式 JS使用技巧-获取元素-设置样式-定时器
    flask08--蓝图,多app使用
    Flask06,cookie,session,flask-session
    Flask05--视图,请求,响应
    Flask09--闪现 , g对象,信号
    flask04-模板
  • 原文地址:https://www.cnblogs.com/vincenshen/p/13226073.html
Copyright © 2011-2022 走看看