Tanzu Kubernetes Cluster 版本升级
2021-01-26 20:16
标签:conf role style mic -- context div type cfs namespace为 tkc-cluster, Tanzu Kubernetes Cluster为:tkc-guest-cluster 在vSphere Web Client中看到为Tanzu Kubernetes Cluster创建的ContentLabrary中已经自动下载了 v1.17.7版本,于是将已部署的Tanzu Kubernetes Cluster进行升级。 Tanzu Kubernetes集群当前版本为 1.16.8 注意需要登录suppervisor cluster才能执行升级命令 $ kubectl patch --type=merge tanzukubernetescluster tkc-guest-cluster --patch "$PATCH" # 需要切换到supersivor cluster tanzukubernetescluster.run.tanzu.vmware.com/tkc-guest-cluster patched 默认以滚动的方式进行升级。 Tanzu Kubernetes Cluster 版本升级 标签:conf role style mic -- context div type cfs 原文地址:https://www.cnblogs.com/vincenshen/p/13226073.html环境信息:
第一步:ContentLabrary
第二步:确定当前版本
$ 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
第三步:执行版本升级
$ read -r -d ‘‘ PATCH ‘EOF‘
spec:
distribution:
fullVersion: null
version: v1.17.7
EOF
第四步:查看升级进度
$ 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
上一篇:React 的 JSX 简介
下一篇:启动tomcat 报 Could not delete D:/online/.metadata/.plugins/org.eclipse.wst.server.core/tm,起不来
文章标题:Tanzu Kubernetes Cluster 版本升级
文章链接:http://soscw.com/index.php/essay/47434.html