Commit 6b6aa44c authored by Christos Tranoris's avatar Christos Tranoris
Browse files

updates #9

parent 467173f8
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
# OpenSlice and support for kubernetes

This section contains information on how Service Designers can expose Kubernetes resources as services
 No newline at end of file
+0 −66
Original line number Diff line number Diff line
@@ -87,72 +87,6 @@ The following figure is an example of such a rule design. The rule for example w
See our [LCM Blocks specification](./specification.md)


## Examples of Rules


The following images provide some examples of rules.

### define variables according to cases

In the following example we :

* define a String variable. 
* Then according to the Area of Service selected from the Service Order of the Service Specification we need to define it properly.
* We output the value to the OSOM Log
* Define dynamically the value of another parameter (This is fictional) and then do some other condition check

The strAreaCodes could be passed then e.g. to NFVO for instantiation of services to these cells.


[![lcmrules](./images/lcm/lcmfig9.png)](./images/lcm/lcmfig9.png)



### Define complex OSM configs for DAY 0

The following displays some complex examples for defining the parameters to pass to the NFV. In this case is OSM.

* NOTE: The OSM_CONFIG characteristic of a service is the one that it is used in orchestration to instantiate NS from OSM

* check the variable strTargetsParam. It is passed to the variable strOsmConfig3 which is executed if the Number of Cameras is more than 100. 
* if the Video quality requested is 3, then the Maximum Namber of camers will be 8. Check the OSM detailed configuration block and its syntax.
* if the Video quality requested is 2, we use a simpler OSM Config block to configure the parameter OSM_CONFIG. We just injected a json text ( watch the Escape of the string for the Quotes!)
* if the Video quality requested is 1, again we use a simpler OSM Config block to configure the parameter OSM_CONFIG. We use as injected json text a variable constructed later


[![lcmrules](./images/lcm/lcmfig10.png)](./images/lcm/lcmfig10.png)


### Define and instantiate different services according to Service Order request

In the following example we would like to offer a service either as Platinum, Gold or Silver. Depending on the selection we need to instantiate different services.

There are different ways to accomplish this:

* create dynamically New Service Orders of RFSs with equivalent quality of Services
* change for example the VIMs that you deploy the NS
* change the NSD (that is use different VNFs)

The following image displays for example the latter case.

[![lcmrules](./images/lcm/lcmfig11.png)](./images/lcm/lcmfig11.png)


### Call an external RESTful service

This is useful in cases for example of alarms , external logging, calling other services e.g. email or even a complex algorithm written in other language e.g. call an external service and get a result. (service e.g. a Python service)


[![lcmrules](./images/lcm/lcmfig12.png)](./images/lcm/lcmfig12.png)

[![lcmrules](./images/lcm/lcmfig13.png)](./images/lcm/lcmfig13.png)

### Create New Service Orders

The following example calls to Order a New Service Specification with specific Parameter Values

[![lcmrules](./images/lcm/lcmfig14.png)](./images/lcm/lcmfig14.png)



## Probe further
+1 −0
Original line number Diff line number Diff line
@@ -112,6 +112,7 @@ nav:
      - NFV Services: ./naas/nfv/nfvservices.md
  - Service design:
    - Introduction: ./service_design/intro.md
    - Catalogs: ./service_design/catalogs.md
    - Support for Kubernetes:
      - Introduction: ./service_design/kubernetes/intro.md
      - Exposing Kubernetes Resources: ./service_design/kubernetes/ExposingKubernetesResources.md