Versions Compared

Key

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

...

The DCM is one of the components of ONAP4K8s. It will run as a microservice exposing Rest APIs, external components will use REST to communicate with the DCM while other microservices will use gRPC. The DCM will perform the following functions;

  1. User creation
  2. Logical Cloud creation
  3. Create the Istio control planes for the logical clouds.Namespace creation
  4. Generate intermediate CA key for each edge which is signed by an root or intermediate key
  5. Logical Cloud creation - Create Istio control planes for the logical clouds.

Different components (microservice) work together with the DCM to make the above possible, the components are;

...

Code Block
languagejs
themeMidnight
titlePUT Logical Cloud
linenumberstrue
URL: /v2/projects/<project-name>/logical-clouds/<name>
PUT BODY:
{
 "description": "logical cloud for walmart finance department",  //description for the logical cloud
 "user" : {
    "name" : "user-1",  //name of user for this cloud
    "type" : "certificate",   //type of authentication credentials used by user (certificate, APIKey, UNPW)
    "certificate" : "/path/to/user1/crt" ,  //Path to user certificate
    "permissions" : {
       "apiGroups" : ["stable.example.com"]
       "resources" : ["secrets", "pods"]
       "verbs" : ["get", "watch", "list", "create"]
     }
  }
}


4. POST (Associate cluster with logical cloud )

Code Block
languagejs
themeMidnight
titleAssociate logical cloud with cluster
linenumberstrue
URL: /v2/projecs/<project-name>/logical-clouds/<logical-cloud-name>/cluster-references/
POST BODY:
{
 "name": "cluster-1",  //cluster name
 "description" : "edge a cluster" //cluster description
}


5. POST (Create namespace for logical cloud)

Code Block
languagejs
themeMidnight
titleCreate namespace for logical cloud
linenumberstrue
URL: /v2/projects/<project-name>/logical-clouds/<logical-cloud-name>/namespaces
POST BODY:
{
 "namespace" : "ns-1" // namespace for logical cloud 1
 "description" : "logical-cloud-1 namespaces"
}