<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Morpheus add external Kubernetes Cluster in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/morpheus-add-external-kubernetes-cluster/m-p/7247076#M250</link>
    <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hpe.com/u/willychen"&gt;@WillyChen&lt;/A&gt;,&lt;BR /&gt;
I’m trying to import Rancher Cluster into Morpheus but I don’t know where to collect API Token as the requirement. I tried to put ‘secret key’ from a Rancher Access Key into the API Token box but it did not work. Can you please leave an instruction? Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 16:08:43 GMT</pubDate>
    <dc:creator>CuongDuong</dc:creator>
    <dc:date>2024-01-11T16:08:43Z</dc:date>
    <item>
      <title>Morpheus add external Kubernetes Cluster</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/morpheus-add-external-kubernetes-cluster/m-p/7247074#M248</link>
      <description>&lt;P&gt;Hello Expert,&lt;/P&gt;
&lt;P&gt;I tried to add an external Kubernetes cluster to Morpheus, it’s created by using Rancher, but I found strange things and don’t have any idea how it happened, I deploy pod/deployment by using “Spec Template”, but the deployment is deployed to Rancher K3s local-node…&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Add rancher-cluster to Morpheus&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="截圖 2023-08-09 上午11.36.46"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150368iC8156A61F61BDE4E/image-size/large?v=v2&amp;amp;px=2000" role="button" title="d0c3fd9ff2aa2953b64405dc7c269c1e5caec0b7.png" alt="d0c3fd9ff2aa2953b64405dc7c269c1e5caec0b7.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;deploy a Spec Template and respond it is unchanged and service is failed&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="截圖 2023-08-09 上午11.37.39"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150058iB71CC5CA371EE80E/image-size/large?v=v2&amp;amp;px=2000" role="button" title="2d81c73c9b8893a4faef3b7ea0b93b6c5b56049c.png" alt="2d81c73c9b8893a4faef3b7ea0b93b6c5b56049c.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;deployment didn’t show up in this cluster&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="截圖 2023-08-09 上午11.37.57"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150563i92DD858D033A30F7/image-size/large?v=v2&amp;amp;px=2000" role="button" title="60699a748d369b59caa2fc8bc28c173351ae0557.png" alt="60699a748d369b59caa2fc8bc28c173351ae0557.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;The deployment and morpheus-agent is deployed in rancher local-node, and the morpheus-agent image seems can’t pull?&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="截圖 2023-08-09 上午11.38.42"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150034iD8944D5EF00B0AA7/image-size/large?v=v2&amp;amp;px=2000" role="button" title="75129d144da42e132b92a136f9829249808c354e.jpeg" alt="75129d144da42e132b92a136f9829249808c354e.jpeg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 09 Aug 2023 03:50:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/morpheus-add-external-kubernetes-cluster/m-p/7247074#M248</guid>
      <dc:creator>willychen</dc:creator>
      <dc:date>2023-08-09T03:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Morpheus add external Kubernetes Cluster</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/morpheus-add-external-kubernetes-cluster/m-p/7247075#M249</link>
      <description>&lt;P&gt;Sorry just catching up on this.  Unsure if you resolved, but currently the kubectl commands from Morpheus utilize the K8s api connection. So Morpheus must be able to resolve and connect (typically via port 6443) to the cluster. [agent comms coming very soon]&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 15:20:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/morpheus-add-external-kubernetes-cluster/m-p/7247075#M249</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2023-11-30T15:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Morpheus add external Kubernetes Cluster</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/morpheus-add-external-kubernetes-cluster/m-p/7247076#M250</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hpe.com/u/willychen"&gt;@WillyChen&lt;/A&gt;,&lt;BR /&gt;
I’m trying to import Rancher Cluster into Morpheus but I don’t know where to collect API Token as the requirement. I tried to put ‘secret key’ from a Rancher Access Key into the API Token box but it did not work. Can you please leave an instruction? Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 16:08:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/morpheus-add-external-kubernetes-cluster/m-p/7247076#M250</guid>
      <dc:creator>CuongDuong</dc:creator>
      <dc:date>2024-01-11T16:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Morpheus add external Kubernetes Cluster</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/morpheus-add-external-kubernetes-cluster/m-p/7247077#M251</link>
      <description>&lt;P&gt;I believe you can pull it from the UI in Rancher, but this post of creating a service account references pulling the API key and may be useful:&lt;/P&gt;
&lt;ASIDE class="quote quote-modified" data-post="1" data-topic="373"&gt;
  &lt;DIV class="title"&gt;
    &lt;DIV class="quote-controls"&gt;&lt;/DIV&gt;
    &lt;IMG loading="lazy" alt="" width="24" height="24" src="https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.morpheusdata.com/cbunge/48/20_2.png" class="avatar" /&gt;
    &lt;A href="https://discuss.morpheusdata.com/t/credential-help-when-adding-brownfield-kubernetes-clusters-to-morpheus/373"&gt;Credential help when adding brownfield Kubernetes Clusters to Morpheus&lt;/A&gt; &lt;A class="badge-category__wrapper " href="https://community.hpe.com/c/infrastructure/10"&gt;&lt;SPAN data-category-id="10" style="--category-badge-color: #c3e3f3; --category-badge-text-color: #000000;" data-drop-close="true" class="badge-category " title="The Infrastructure category focuses on the core infrastructure aspects of the Morpheus platform.  Items such as clouds, Kubernetes clusters, networking, storage, and virtual image management will be discussed here."&gt;&lt;SPAN class="badge-category__name"&gt;Infrastructure&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;
  &lt;/DIV&gt;
  &lt;BLOCKQUOTE&gt;
    I recently wanted to add my lab K8s cluster to Morpheus.  I ended up having to create a service account for Morpheus to fully ingest the brownfield K8s cluster.  Prior to creating this account I had issues listing all namespaces and other resources. 
Here is what I ended up having to do to create an account and get connected: 

&lt;A name="create-service-account-for-morpheus-to-connect-1" class="anchor" href="#create-service-account-for-morpheus-to-connect-1"&gt;&lt;/A&gt;Create Service Account for Morpheus to Connect
kubectl create serviceaccount morpheus 

&lt;A name="create-role-binding-2" class="anchor" href="#create-role-binding-2"&gt;&lt;/A&gt;Create Role Binding
 kubectl create clusterrolebinding morpheus-admin \
 --cluster…
  &lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;</description>
      <pubDate>Thu, 11 Jan 2024 16:27:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/morpheus-add-external-kubernetes-cluster/m-p/7247077#M251</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2024-01-11T16:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Morpheus add external Kubernetes Cluster</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/morpheus-add-external-kubernetes-cluster/m-p/7247078#M252</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hpe.com/u/cbunge"&gt;@cbunge&lt;/A&gt; ,&lt;BR /&gt;
Thank you for your reply, I followed the instruction you provided (as the same website document), and it seems I’m still in the error. Although I created a service account named ‘morpheus’ before I ran the command to Gather Service Account Token, it still returns ‘No resources found in morpheus namespace.’&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot 2024-01-11 at 23.42.14"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149473i7FA7CC2F033A7A94/image-size/large?v=v2&amp;amp;px=2000" role="button" title="d7559fd0925454ab06fa4a084f350ba70d5d8aed.png" alt="d7559fd0925454ab06fa4a084f350ba70d5d8aed.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I also try to pull Secret Key shown in the image for API Token requirement box but it does not work. Thank you again &lt;A class="mention" href="https://community.hpe.com/u/cbunge"&gt;@cbunge&lt;/A&gt; !&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot 2024-01-11 at 23.53.49"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150425iF7118E82F6061A4F/image-size/large?v=v2&amp;amp;px=2000" role="button" title="d0970c64452f7220cfa68d5331c7fb157a365b07.png" alt="d0970c64452f7220cfa68d5331c7fb157a365b07.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 16:56:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/morpheus-add-external-kubernetes-cluster/m-p/7247078#M252</guid>
      <dc:creator>CuongDuong</dc:creator>
      <dc:date>2024-01-11T16:56:19Z</dc:date>
    </item>
  </channel>
</rss>

