mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-11-09 10:19:16 +00:00
1 line
5.7 KiB
JavaScript
1 line
5.7 KiB
JavaScript
"use strict";(self.webpackChunkrancher_docs=self.webpackChunkrancher_docs||[]).push([[45417],{3905:(e,t,n)=>{n.d(t,{Zo:()=>d,kt:()=>u});var r=n(67294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s=r.createContext({}),c=function(e){var t=r.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=c(e.components);return r.createElement(s.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,d=l(e,["components","mdxType","originalType","parentName"]),m=c(n),u=o,h=m["".concat(s,".").concat(u)]||m[u]||p[u]||a;return n?r.createElement(h,i(i({ref:t},d),{},{components:n})):r.createElement(h,i({ref:t},d))}));function u(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,i=new Array(a);i[0]=m;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l.mdxType="string"==typeof e?e:o,i[1]=l;for(var c=2;c<a;c++)i[c]=n[c];return r.createElement.apply(null,i)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},21911:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>p,frontMatter:()=>a,metadata:()=>l,toc:()=>c});var r=n(87462),o=(n(67294),n(3905));const a={title:"Troubleshooting"},i=void 0,l={unversionedId:"getting-started/installation-and-upgrade/advanced-options/advanced-use-cases/helm2/helm-init/troubleshooting",id:"version-2.0-2.4/getting-started/installation-and-upgrade/advanced-options/advanced-use-cases/helm2/helm-init/troubleshooting",title:"Troubleshooting",description:"Helm commands show forbidden",source:"@site/versioned_docs/version-2.0-2.4/getting-started/installation-and-upgrade/advanced-options/advanced-use-cases/helm2/helm-init/troubleshooting.md",sourceDirName:"getting-started/installation-and-upgrade/advanced-options/advanced-use-cases/helm2/helm-init",slug:"/getting-started/installation-and-upgrade/advanced-options/advanced-use-cases/helm2/helm-init/troubleshooting",permalink:"/v2.0-v2.4/getting-started/installation-and-upgrade/advanced-options/advanced-use-cases/helm2/helm-init/troubleshooting",draft:!1,editUrl:"https://github.com/rancher/rancher-docs/edit/main/versioned_docs/version-2.0-2.4/getting-started/installation-and-upgrade/advanced-options/advanced-use-cases/helm2/helm-init/troubleshooting.md",tags:[],version:"2.0-2.4",lastUpdatedAt:1663953084,formattedLastUpdatedAt:"Sep 23, 2022",frontMatter:{title:"Troubleshooting"},sidebar:"tutorialSidebar",previous:{title:"Initialize Helm: Install the Tiller Service",permalink:"/v2.0-v2.4/pages-for-subheaders/helm2-helm-init"},next:{title:"4. Install Rancher",permalink:"/v2.0-v2.4/pages-for-subheaders/helm-rancher"}},s={},c=[{value:"Helm commands show forbidden",id:"helm-commands-show-forbidden",level:3}],d={toc:c};function p(e){let{components:t,...n}=e;return(0,o.kt)("wrapper",(0,r.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h3",{id:"helm-commands-show-forbidden"},"Helm commands show forbidden"),(0,o.kt)("p",null,"When Helm is initiated in the cluster without specifying the correct ",(0,o.kt)("inlineCode",{parentName:"p"},"ServiceAccount"),", the command ",(0,o.kt)("inlineCode",{parentName:"p"},"helm init")," will succeed but you won't be able to execute most of the other ",(0,o.kt)("inlineCode",{parentName:"p"},"helm")," commands. The following error will be shown:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre"},'Error: configmaps is forbidden: User "system:serviceaccount:kube-system:default" cannot list configmaps in the namespace "kube-system"\n')),(0,o.kt)("p",null,"To resolve this, the server component (",(0,o.kt)("inlineCode",{parentName:"p"},"tiller"),") needs to be removed and added with the correct ",(0,o.kt)("inlineCode",{parentName:"p"},"ServiceAccount"),". You can use ",(0,o.kt)("inlineCode",{parentName:"p"},"helm reset --force")," to remove the ",(0,o.kt)("inlineCode",{parentName:"p"},"tiller")," from the cluster. Please check if it is removed using ",(0,o.kt)("inlineCode",{parentName:"p"},"helm version --server"),"."),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre"},"helm reset --force\nTiller (the Helm server-side component) has been uninstalled from your Kubernetes Cluster.\nhelm version --server\nError: could not find tiller\n")),(0,o.kt)("p",null,"When you have confirmed that ",(0,o.kt)("inlineCode",{parentName:"p"},"tiller")," has been removed, please follow the steps provided in ",(0,o.kt)("a",{parentName:"p",href:"/v2.0-v2.4/pages-for-subheaders/helm2-helm-init"},"Initialize Helm (Install tiller)")," to install ",(0,o.kt)("inlineCode",{parentName:"p"},"tiller")," with the correct ",(0,o.kt)("inlineCode",{parentName:"p"},"ServiceAccount"),"."))}p.isMDXComponent=!0}}]); |