-->

DEVOPSZONES

  • Recent blogs

    error: unable to recognize "v1.8.3.yaml": no matches for kind "Deployment" in version "apps/v1beta2"

    error: unable to recognize "v1.8.3.yaml": no matches for kind "Deployment" in version "apps/v1beta2"

    kubernetes

    Solution:


    To find out what exact apps/xxx api version your cluster supports, use "kubectl api-versions" and the exact apps/xxx version will be listed there. Now edit and put the same api version in your deployment yaml.

    [root@k8smaster /]# kubectl api-versions
    admissionregistration.k8s.io/v1
    admissionregistration.k8s.io/v1beta1
    apiextensions.k8s.io/v1
    apiextensions.k8s.io/v1beta1
    apiregistration.k8s.io/v1
    apiregistration.k8s.io/v1beta1
    apps/v1
    authentication.istio.io/v1alpha1
    authentication.k8s.io/v1
    authentication.k8s.io/v1beta1
    authorization.k8s.io/v1
    authorization.k8s.io/v1beta1

    [root@k8smaster /]# vi v1.8.3.yaml

    [root@k8smaster /]# kubectl create -f v1.8.3.yaml
    secret/kubernetes-dashboard-certs created
    serviceaccount/kubernetes-dashboard created
    role.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created
    rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created
    deployment.apps/kubernetes-dashboard created
    service/kubernetes-dashboard created
    [root@k8smaster /]#
    [root@k8smaster /]#


    No comments