- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise Software
- >
- Credential help when adding brownfield Kubernetes ...
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2022 12:15 PM
05-25-2022 12:15 PM
Credential help when adding brownfield Kubernetes Clusters to Morpheus
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:
Create Service Account for Morpheus to Connect
kubectl create serviceaccount morpheus
Create Role Binding
kubectl create clusterrolebinding morpheus-admin \
--clusterrole=cluster-admin --serviceaccount=default:morpheus \
--namespace=default
Gather API URL
kubectl config view --minify | grep server | cut -f 2- -d ":" | tr -d " "
Gather Service Account Token
SECRET_NAME=$(kubectl get secrets | grep ^morpheus | cut -f1 -d ' ')
kubectl describe secret $SECRET_NAME | grep -E '^token' | cut -f2 -d':' | tr -d " "
Add Brownfield K8s
Infra > Clusters > +Add Clusters > External Kubernetes Clusters
- Assign Group
- Assign:
Cluster Name
Resource Name
Description (Optional)
Visibility
Labels (Optional) - Assign
Layout
API URL
API Token
Additional Links:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 09:12 PM
06-05-2023 09:12 PM
Re: Credential help when adding brownfield Kubernetes Clusters to Morpheus
Nice ! i added Openshift into Morpheus by External K8s