kubernetes / website

Kubernetes website and documentation repo:
https://kubernetes.io
Creative Commons Attribution 4.0 International
4.6k stars 14.49k forks source link

Issue with k8s.io/docs/tasks/administer-cluster/setup-ha-etcd-with-kubeadm/ #9220

Closed youyongsong closed 6 years ago

youyongsong commented 6 years ago

This is a...

Problem: After I run command kubeadm alpha phase etcd local --config /etc/kubeadm/etcdcfg.yaml, the following error occurred:

unable to decode config from "/etc/kubeadm/etcdcfg.yaml" [no kind "MasterConfiguration" is registered for version "kubeadm.k8s.io/v1alpha2"]

Proposed Solution:

Page to Update: https://kubernetes.io/docs/tasks/administer-cluster/setup-ha-etcd-with-kubeadm/

kubeadm version: v1.10.5

leezout commented 6 years ago

Same issue on 1.11

neolit123 commented 6 years ago

@kubernetes/sig-cluster-lifecycle-bugs

neolit123 commented 6 years ago

MasterConfiguration is a valid type for "kubeadm.k8s.io/v1alpha2".

i just tried this with k8s/kubernetes version 1.11.0 and i cannot reproduce the issue. please, try to reset (e.g. sudo kubeadm reset) your cluster and then the tutorial again. also updating to 1.11.1 is a good idea.

if it's still not working for you, file an issue against the kubernetes/kubeadm repo as this is not a docs issue.

/close