mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-27 13:38:07 +00:00
deploy: 5bf5c87b3f
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
|
||||
<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" charset="UTF-8" data-domain-script="0f98beb0-fc4c-417d-a42e-564e2cae42d2" async></script>
|
||||
<script src="/scripts/optanonwrapper.js" async></script><link rel="stylesheet" href="/assets/css/styles.b83e5a9c.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.44ecdfdc.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.15033bfa.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.d2100efe.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.1e10d058.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-57KS2MW" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
@@ -28,7 +28,7 @@
|
||||
The kubeconfig token is cached in the path where you run kubectl under <code>./.cache/token</code>. This token is valid till <a href="/v2.0-v2.4/reference-guides/about-the-api/api-tokens#setting-ttl-on-kubeconfig-tokens">it expires</a>, or <a href="/v2.0-v2.4/reference-guides/about-the-api/api-tokens#deleting-tokens">gets deleted from the Rancher server</a>
|
||||
Upon expiration, the next <code>kubectl get pods</code> will ask you to log in with the Rancher server again.</p><p><em>Note</em></p><p>As of CLI <a href="https://github.com/rancher/cli/releases/tag/v2.4.10" target="_blank" rel="noopener noreferrer">v2.4.10</a>, the kubeconfig token can be cached at a chosen path with <code>cache-dir</code> flag or env var <code>RANCHER_CACHE_DIR</code>.</p><p><em><strong>Current Known Issues</strong></em></p><ol><li>If <a href="/v2.0-v2.4/reference-guides/rancher-manager-architecture/communicating-with-downstream-user-clusters#4-authorized-cluster-endpoint">authorized cluster endpoint</a> is enabled for RKE clusters to <a href="/v2.0-v2.4/how-to-guides/advanced-user-guides/manage-clusters/access-clusters/use-kubectl-and-kubeconfig#authenticating-directly-with-a-downstream-cluster">authenticate directly with downstream cluster</a> and Rancher server goes down, all kubectl calls will fail after the kubeconfig token expires. No new kubeconfig tokens can be generated if Rancher server isn't accessible.</li><li>If a kubeconfig token is deleted from Rancher <a href="/v2.0-v2.4/reference-guides/about-the-api/api-tokens#deleting-tokens">API tokens</a> page, and the token is still cached, cli won't ask you to login again until the token expires or is deleted.
|
||||
<code>kubectl</code> calls will result into an error like <code>error: You must be logged in to the server (the server has asked for the client to provide credentials</code>. Tokens can be deleted using <code>rancher token delete</code>.</li></ol></div><footer class="theme-doc-footer docusaurus-mt-lg"><div class="theme-doc-footer-edit-meta-row row"><div class="col"><a href="https://github.com/rancher/rancher-docs/edit/main/versioned_docs/version-2.0-2.4/getting-started/quick-start-guides/cli.md" target="_blank" rel="noreferrer noopener" class="theme-edit-this-page"><svg fill="currentColor" height="20" width="20" viewBox="0 0 40 40" class="iconEdit_Z9Sw" aria-hidden="true"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col lastUpdated_vwxv"><span class="theme-last-updated">Last updated<!-- --> on <b><time datetime="2024-01-13T00:07:44.000Z">Jan 13, 2024</time></b></span></div></div></footer></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages"><a class="pagination-nav__link pagination-nav__link--prev" href="/v2.0-v2.4/getting-started/quick-start-guides"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Rancher Deployment Quick Start Guides</div></a><a class="pagination-nav__link pagination-nav__link--next" href="/v2.0-v2.4/getting-started/quick-start-guides/deploy-rancher-manager"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Deploying Rancher Server</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_bqdL thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#rancher-cli" class="table-of-contents__link toc-highlight">Rancher CLI</a></li><li><a href="#kubectl" class="table-of-contents__link toc-highlight">kubectl</a></li><li><a href="#authentication-with-kubectl-and-kubeconfig-tokens-with-ttl" class="table-of-contents__link toc-highlight">Authentication with kubectl and kubeconfig Tokens with TTL</a></li></ul></div></div></div></div></main></div></div><footer class="footer footer--dark"><div class="container container-fluid"><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2024 SUSE Rancher. All Rights Reserved.</div></div></div></footer></div>
|
||||
<script src="/assets/js/runtime~main.44ecdfdc.js"></script>
|
||||
<script src="/assets/js/main.15033bfa.js"></script>
|
||||
<script src="/assets/js/runtime~main.d2100efe.js"></script>
|
||||
<script src="/assets/js/main.1e10d058.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user