Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinetrue

...

Multi-Cluster Tenant controller

<This section is incomplete and a work in progress ... needs rework and further updates ... >

Srini notes:


  1. Define CRUD API - add/delete/modify/read MC Tenant.
    1. Cluster from the the Edge location are registered to the ONAP as follows :
      1. Cluster-100.2-labels: { Cascade, SRIOV, QAT,}
      2. Cluster-101.1-labels: { Sky-lake, SRIOV}
    2. Tenant Object is template in ONAP with following filed


      Code Block
      languagejs
      {
      	"metadata": {
      		"name": "tenant-a",
      		"clusterlabels": "label-A"
      	},
      	"spec": {
      		"users": [
      			{
      				"name": "users-1",
      				"crt": "/path/to/crt"
      			},
      			{
      				"name": "users-2",
      				"crt": "/path/to/crt"
      			}
      		]
      	}
      }


    3. ONAP create the Tenant based on the cluster labels
    4. Find the cluster Artifacts kubeconfig based on the cluster labels
    5. Get the Multicloud k8s-plugin API to create the Tenant json
      1. curl -d @create_tenant-a.json http://NODE_IP:30280/api/multicloud-k8s/v1/v1/tenant
    6. MC Cluster Tenant API - <This section is incomplete and a work in progress ... needs rework and further updates ... >
      1.  Create 
      2. Update 
      3. Delete 
      4. Get
      5. List 
      6. Watch
      7. Patch
    7. Each corresponding MC Cluster Tenant API will have a K8s Tenant CR API

       

  1. Design note :
    • On how this would be done as Micro-service in the ONAP.
    • How does interact with K8S clusters.
    • How does it ensure that all the configuration is applied (rollbacks, unsuccessful edges).
    • Visibility of the configuration applied on per MCTenant basis.
    • When new K8S cluster is added with the label of interest, taking care of creating tenant-specific information in that edge etc..
    • Extensibility (future K8S clusters having some other features that require configuration for multi-tenancy).

...