如何将kubernetes从v1.10.0升级到v1.10.11-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

如何将kubernetes从v1.10.0升级到v1.10.11

我通过kubeadm在1.9下安装了kubernete,并在使用时将其升级到1.10.0 kubeadm upgrade。我对1.10.x感到非常满意,并且不想处理升级到任何新版本的潜在问题。

所以我想升级到1.10.11。

我试过了

$ kubeadm upgrade plan v1.10.11
[preflight] Running pre-flight checks.
[upgrade] Making sure the cluster is healthy:
[upgrade/config] Making sure the configuration is correct:
[upgrade/config] Reading configuration from the cluster...
[upgrade/config] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -oyaml'
[upgrade/plan] computing upgrade possibilities
[upgrade] Fetching available versions to upgrade to
[upgrade/versions] Cluster version: v1.10.0
[upgrade/versions] kubeadm version: v1.10.11
[upgrade/versions] Latest stable version: v1.13.1
[upgrade/versions] Latest version in the v1.1 series: v1.1.8
[upgrade/versions] WARNING: No recommended etcd for requested kubernetes version (v1.13.1)

Components that must be upgraded manually after you have upgraded the control plane with 'kubeadm upgrade apply':
COMPONENT CURRENT AVAILABLE
Kubelet 5 x v1.10.0 v1.13.1

                      2 x v1.10.3   v1.13.1
                      1 x v1.10.5   v1.13.1
                      2 x v1.9.6    v1.13.1

Upgrade to the latest stable version:

COMPONENT CURRENT AVAILABLE
API Server v1.10.0 v1.13.1
Controller Manager v1.10.0 v1.13.1
Scheduler v1.10.0 v1.13.1
Kube Proxy v1.10.0 v1.13.1
Kube DNS 1.14.8 1.14.8
Etcd 3.1.12 N/A

You can now apply the upgrade by executing the following command:

kubeadm upgrade apply v1.13.1

Note: Before you can perform this upgrade, you have to update kubeadm to v1.13.1.

_
它似乎要我升级到1.13!

我怎么能/我/从我的v1.10.0设置升级到v1.10.11?

展开
收起
k8s小能手 2018-12-14 17:15:53 2392 0
1 条回答
写回答
取消 提交回答
  • k8s小能手
    整合最优质的专家资源和技术资料,问答解疑

    这是一步一步的说明:

    export VERSION="1.10.11"
    export ARCH=amd64
    wget https://storage.googleapis.com/kubernetes-release/release/v1.10.11/bin/linux/amd64/kubeadm > /usr/bin/kubeadm

    chmod a+rx /usr/bin/kubeadm
    现在查看kubeadm升级计划

    [root@ centos]# kubeadm upgrade plan
    [preflight] Running pre-flight checks.
    [upgrade] Making sure the cluster is healthy:
    [upgrade/config] Making sure the configuration is correct:
    [upgrade/config] Reading configuration from the cluster...
    [upgrade/config] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -oyaml'
    [upgrade/plan] computing upgrade possibilities
    [upgrade] Fetching available versions to upgrade to
    [upgrade/versions] Cluster version: v1.10.11
    [upgrade/versions] kubeadm version: v1.10.11
    [upgrade/versions] Latest stable version: v1.13.1
    [upgrade/versions] Latest version in the v1.1 series: v1.1.8
    [upgrade/versions] WARNING: No recommended etcd for requested kubernetes version (v1.13.1)

    Components that must be upgraded manually after you have upgraded the control plane with 'kubeadm upgrade apply':
    COMPONENT CURRENT AVAILABLE
    Kubelet 1 x v1.10.0 v1.13.1

    Upgrade to the latest stable version:

    COMPONENT CURRENT AVAILABLE
    API Server v1.10.11 v1.13.1
    Controller Manager v1.10.11 v1.13.1
    Scheduler v1.10.11 v1.13.1
    Kube Proxy v1.10.11 v1.13.1
    Kube DNS 1.14.8 1.14.8
    Etcd 3.1.12 N/A

    You can now apply the upgrade by executing the following command:

    kubeadm upgrade apply v1.13.1

    Note: Before you can perform this upgrade, you have to update kubeadm to v1.13.1.
    现在代替升级适用于v1.13.1,你应该使用:

    kubeadm upgrade apply 1.10.11

    [preflight] Running pre-flight checks.
    [upgrade] Making sure the cluster is healthy:
    [upgrade/config] Making sure the configuration is correct:
    [upgrade/config] Reading configuration from the cluster...
    [upgrade/config] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -oyaml'
    [upgrade/version] You have chosen to change the cluster version to "v1.10.11"
    [upgrade/versions] Cluster version: v1.10.11
    [upgrade/versions] kubeadm version: v1.10.11

    .......
    [bootstraptoken] Configured RBAC rules to allow the csrapprover controller automatically approve CSRs from a Node Bootstrap Token
    [bootstraptoken] Configured RBAC rules to allow certificate rotation for all node client certificates in the cluster
    [addons] Applied essential addon: kube-dns
    [addons] Applied essential addon: kube-proxy

    [upgrade/successful] SUCCESS! Your cluster was upgraded to "v1.10.11". Enjoy!

    2019-07-17 23:21:25
    赞同 展开评论 打赏
问答排行榜
最热
最新
相关电子书
更多
深耕云原生技术– Kubernetes应用渐入佳境
立即下载
Kubernetes 问题排查全景图
立即下载
企业运维之云原生和Kubernetes 实战
立即下载