{"id":9940,"date":"2023-01-25T12:35:45","date_gmt":"2023-01-25T12:35:45","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=9940"},"modified":"2023-01-25T12:35:46","modified_gmt":"2023-01-25T12:35:46","slug":"knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\/","title":{"rendered":"Knative Error: invalid apiVersion &#8220;client.authentication.k8s.io\/v1alpha1"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Error<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>$ func deploy\r\n   \ud83d\ude4c Function image built: docker.io\/rajeshkumarin\/hello:latest\r\nPlease provide credentials for image registry (index.docker.io).\r\n? Username: rajeshkumarin\r\n? Password: ************\r\nCredentials will not be saved.\r\nIf you would like to save your credentials in the future,\r\nyou can install docker credential helper https:\/\/github.com\/docker\/docker-credential-helpers.\r\n   \u2b06\ufe0f  Deploying function to the cluster\r\nError: failed to create new serving client: exec plugin: invalid apiVersion \"client.authentication.k8s.io\/v1alpha1\"<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kn service create hello \\\r\n> --image gcr.io\/knative-samples\/helloworld-go \\\r\n> --port 8080 \\\r\n> --env TARGET=World\r\nError: exec plugin: invalid apiVersion \"client.authentication.k8s.io\/v1alpha1\"\r\nRun 'kn --help' for usage<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl version\r\nKubeconfig user entry is using deprecated API version client.authentication.k8s.io\/v1alpha1. Run 'aws eks update-kubeconfig' to update.\r\nClient Version: version.Info{Major:\"1\", Minor:\"22\", GitVersion:\"v1.22.2\", GitCommit:\"8b5a19147530eaac9476b0ab82980b4088bbc1b2\", GitTreeState:\"clean\", BuildDate:\"2021-09-15T21:38:50Z\", GoVersion:\"go1.16.8\", Compiler:\"gc\", Platform:\"linux\/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"22+\", GitVersion:\"v1.22.16-eks-ffeb93d\", GitCommit:\"52e500d139bdef42fbc4540c357f0565c7867a81\", GitTreeState:\"clean\", BuildDate:\"2022-11-29T18:41:42Z\", GoVersion:\"go1.16.15\", Compiler:\"gc\", Platform:\"linux\/amd64\"}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Solution &#8211; 1<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>$ aws eks update-kubeconfig --name ${EKS_CLUSTER_NAME} --region ${REGION}\r\n$ aws eks update-kubeconfig --name myeks --region us-west-2<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Solution &#8211; 2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Modify .kube\/config file <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Change v1alpha1 to v1beta1:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; apiVersion: client.authentication.k8s.io\/v1beta1<br>&#8212;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; apiVersion: client.authentication.k8s.io\/v1alpha1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error Solution &#8211; 1 Solution &#8211; 2 Modify .kube\/config file Change v1alpha1 to v1beta1: &lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; apiVersion: client.authentication.k8s.io\/v1beta1&#8212;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; apiVersion: client.authentication.k8s.io\/v1alpha1<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9940","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Knative Error: invalid apiVersion &quot;client.authentication.k8s.io\/v1alpha1 - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Knative Error: invalid apiVersion &quot;client.authentication.k8s.io\/v1alpha1 - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Error Solution &#8211; 1 Solution &#8211; 2 Modify .kube\/config file Change v1alpha1 to v1beta1: &lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; apiVersion: client.authentication.k8s.io\/v1beta1&#8212;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; apiVersion: client.authentication.k8s.io\/v1alpha1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-25T12:35:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-25T12:35:46+00:00\" \/>\n<meta name=\"author\" content=\"rajeshkumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rajeshkumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\\\/\"},\"author\":{\"name\":\"rajeshkumar\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"headline\":\"Knative Error: invalid apiVersion &#8220;client.authentication.k8s.io\\\/v1alpha1\",\"datePublished\":\"2023-01-25T12:35:45+00:00\",\"dateModified\":\"2023-01-25T12:35:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\\\/\"},\"wordCount\":69,\"commentCount\":0,\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\\\/\",\"name\":\"Knative Error: invalid apiVersion \\\"client.authentication.k8s.io\\\/v1alpha1 - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"datePublished\":\"2023-01-25T12:35:45+00:00\",\"dateModified\":\"2023-01-25T12:35:46+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knative Error: invalid apiVersion &#8220;client.authentication.k8s.io\\\/v1alpha1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\",\"name\":\"rajeshkumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"caption\":\"rajeshkumar\"},\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/rajeshkumar\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Knative Error: invalid apiVersion \"client.authentication.k8s.io\/v1alpha1 - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\/","og_locale":"en_US","og_type":"article","og_title":"Knative Error: invalid apiVersion \"client.authentication.k8s.io\/v1alpha1 - scmGalaxy","og_description":"Error Solution &#8211; 1 Solution &#8211; 2 Modify .kube\/config file Change v1alpha1 to v1beta1: &lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; apiVersion: client.authentication.k8s.io\/v1beta1&#8212;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; apiVersion: client.authentication.k8s.io\/v1alpha1","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\/","og_site_name":"scmGalaxy","article_published_time":"2023-01-25T12:35:45+00:00","article_modified_time":"2023-01-25T12:35:46+00:00","author":"rajeshkumar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rajeshkumar","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\/"},"author":{"name":"rajeshkumar","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"headline":"Knative Error: invalid apiVersion &#8220;client.authentication.k8s.io\/v1alpha1","datePublished":"2023-01-25T12:35:45+00:00","dateModified":"2023-01-25T12:35:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\/"},"wordCount":69,"commentCount":0,"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\/","name":"Knative Error: invalid apiVersion \"client.authentication.k8s.io\/v1alpha1 - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"datePublished":"2023-01-25T12:35:45+00:00","dateModified":"2023-01-25T12:35:46+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/knative-error-invalid-apiversion-client-authentication-k8s-io-v1alpha1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Knative Error: invalid apiVersion &#8220;client.authentication.k8s.io\/v1alpha1"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361","name":"rajeshkumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","caption":"rajeshkumar"},"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/rajeshkumar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/9940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=9940"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/9940\/revisions"}],"predecessor-version":[{"id":9941,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/9940\/revisions\/9941"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=9940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=9940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=9940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}