prashant kumar
prashant kumar

Reputation: 21

getting error while installing kubernetes

ubuntu@kmaster:~$ kubectl apply -f

https://docs.projectcalico.org/v3.0/getting-started/kubernetes/installation/hosted/kubeadm/1.7/calico.yaml
configmap/calico-config unchanged
service/calico-etcd unchanged
serviceaccount/calico-cni-plugin unchanged
serviceaccount/calico-kube-controllers unchanged
resource mapping not found for name: "calico-etcd" namespace: "kube-system" from "https://docs.projectcalico.org/v3.0/getting-started/kubernetes/installation/hosted/kubeadm/1.7/calico.yaml": no matches for kind "DaemonSet" in version "extensions/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "calico-node" namespace: "kube-system" from "https://docs.projectcalico.org/v3.0/getting-started/kubernetes/installation/hosted/kubeadm/1.7/calico.yaml": no matches for kind "DaemonSet" in version "extensions/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "calico-kube-controllers" namespace: "kube-system" from "https://docs.projectcalico.org/v3.0/getting-started/kubernetes/installation/hosted/kubeadm/1.7/calico.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "calico-cni-plugin" namespace: "" from "https://docs.projectcalico.org/v3.0/getting-started/kubernetes/installation/hosted/kubeadm/1.7/calico.yaml": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "calico-cni-plugin" namespace: "" from "https://docs.projectcalico.org/v3.0/getting-started/kubernetes/installation/hosted/kubeadm/1.7/calico.yaml": no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "calico-kube-controllers" namespace: "" from "https://docs.projectcalico.org/v3.0/getting-started/kubernetes/installation/hosted/kubeadm/1.7/calico.yaml": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "calico-kube-controllers" namespace: "" from "https://docs.projectcalico.org/v3.0/getting-started/kubernetes/installation/hosted/kubeadm/1.7/calico.yaml": no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1beta1"

ensure CRDs are installed firstenter image description here

Upvotes: 2

Views: 5380

Answers (1)

zer0
zer0

Reputation: 2899

I suspect you're trying to install outdated manifests. The API versions of the resources you're applying have been deprecated in the k8s version you have. See the deprecation guide here.

You have to use the latest version which will have the v1 version of these manifests.

Upvotes: 4

Related Questions