Multiple A1 Version 26/3326/1
authorLathish <lathishbabu.ganesan@est.tech>
Wed, 15 Apr 2020 11:56:53 +0000 (12:56 +0100)
committerLathishbabu Ganesan <lathishbabu.ganesan@est.tech>
Mon, 20 Apr 2020 08:07:18 +0000 (08:07 +0000)
Issue-ID: NONRTRIC-197
Change-Id: I77e03efc0cbfc0b692bc36785b6b9c4a57979e57
Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
nonrtric/RECIPE_EXAMPLE/example_recipe.yaml
nonrtric/helm/a1simulator/templates/service.yaml
nonrtric/helm/a1simulator/templates/statefulset.yaml
nonrtric/helm/a1simulator/values.yaml
nonrtric/helm/policymanagementservice/resources/config/application_configuration.json

index 0968601..bc9b179 100644 (file)
@@ -39,15 +39,20 @@ a1controller:
     externalPort: 8282
 
 a1simulator:
-  instanceName: a1-sim
+  name: a1-sim
   imagePullPolicy: IfNotPresent
   image:
-    registry: "nexus3.o-ran-sc.org:10002/o-ran-sc"
-    name: near-rt-ric-simulator
+    registry: "nexus3.o-ran-sc.org:10004/o-ran-sc"
+    name: a1-simulator
     tag: 1.0.1
-  replicaCount: 2
   service:
     internalPort: 8085
+  oscVersion:
+    name: a1-sim-osc
+    replicaCount: 2
+  stdVersion:
+    name: a1-sim-std
+    replicaCount: 2
 
 controlpanel:
   imagePullPolicy: IfNotPresent
index 4c16903..616595f 100644 (file)
@@ -17,7 +17,7 @@
 kind: Service
 apiVersion: v1
 metadata:
-  name: {{ .Values.a1simulator.instanceName }}
+  name: {{ .Values.a1simulator.name }}
   namespace: {{ include "common.namespace.nonrtric" . }}
   labels:
     app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }}
index bc65ede..865e2ca 100644 (file)
@@ -17,7 +17,7 @@
 kind: StatefulSet
 apiVersion: apps/v1
 metadata:
-  name: {{ .Values.a1simulator.instanceName }}
+  name: {{ .Values.a1simulator.oscVersion.name }}
   namespace: {{ include "common.namespace.nonrtric" . }}
   generation: 1
   labels:
@@ -28,12 +28,12 @@ metadata:
   annotations:
     deployment.kubernetes.io/revision: '1'
 spec:
-  replicas: {{ .Values.a1simulator.replicaCount }}
+  replicas: {{ .Values.a1simulator.oscVersion.replicaCount }}
   selector:
     matchLabels:
       app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }}
       release: {{ .Release.Name }}
-  serviceName: {{ .Values.a1simulator.instanceName }}
+  serviceName: {{ .Values.a1simulator.name }}
   template:
     metadata:
       labels:
@@ -52,4 +52,51 @@ spec:
           tcpSocket:
             port: {{ .Values.a1simulator.service.internalPort }}
           initialDelaySeconds: 5
-          periodSeconds: 15
\ No newline at end of file
+          periodSeconds: 15
+        env:
+        - name: A1_VERSION
+          value: OSC_2.1.0
+
+---
+kind: StatefulSet
+apiVersion: apps/v1
+metadata:
+  name: {{ .Values.a1simulator.stdVersion.name }}
+  namespace: {{ include "common.namespace.nonrtric" . }}
+  generation: 1
+  labels:
+    app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }}
+    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+    release: {{ .Release.Name }}
+    heritage: {{ .Release.Service }}
+  annotations:
+    deployment.kubernetes.io/revision: '1'
+spec:
+  replicas: {{ .Values.a1simulator.stdVersion.replicaCount }}
+  selector:
+    matchLabels:
+      app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }}
+      release: {{ .Release.Name }}
+  serviceName: {{ .Values.a1simulator.name }}
+  template:
+    metadata:
+      labels:
+        app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }}
+        release: {{ .Release.Name }}
+    spec:
+      hostname: {{ include "common.name.a1simulator" . }}
+      containers:
+      - name: {{ include "common.containername.a1simulator" . }}
+        image: {{ .Values.a1simulator.image.registry }}/{{ .Values.a1simulator.image.name }}:{{ .Values.a1simulator.image.tag }}
+        imagePullPolicy: {{ .Values.a1simulator.imagePullPolicy }}
+        ports:
+        - containerPort: {{ .Values.a1simulator.service.internalPort }}
+          protocol: TCP
+        readinessProbe:
+          tcpSocket:
+            port: {{ .Values.a1simulator.service.internalPort }}
+          initialDelaySeconds: 5
+          periodSeconds: 15
+        env:
+        - name: A1_VERSION
+          value: STD_1.1.3
\ No newline at end of file
index 8fa377b..3544a23 100644 (file)
 # Declare variables to be passed into your templates.
 
 a1simulator:
-  instanceName: a1-sim
+  name: a1-sim
   imagePullPolicy: IfNotPresent
   image:
-    registry: "nexus3.o-ran-sc.org:10002/o-ran-sc"
-    name: near-rt-ric-simulator
+    registry: "nexus3.o-ran-sc.org:10004/o-ran-sc"
+    name: a1-simulator
     tag: 1.0.1
-  replicaCount: 2
   service:
     internalPort: 8085
+  oscVersion:
+    name: a1-sim-osc
+    replicaCount: 2
+  stdVersion:
+    name: a1-sim-std
+    replicaCount: 2
index 7e36881..fcf0f3b 100644 (file)
@@ -1,14 +1,41 @@
 {
     "config":{
+      "controller": [
+         {
+            "name": "controller1",
+            "baseUrl": "http://a1controller:8282",
+            "userName": "admin",
+            "password": "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U"
+         }
+      ],
        "ric":[
           {
              "name":"ric1",
-             "baseUrl":"http://a1-sim1:8085/",
+             "baseUrl":"http://a1-sim-osc-0.a1-sim:8085/",
+             "controller": "controller1",
              "managedElementIds":[
                 "kista_1",
                 "kista_2"
              ]
-          }
+          },
+          {
+            "name":"ric2",
+            "baseUrl":"http://a1-sim-osc-1.a1-sim:8085/",
+            "controller": "controller1",
+            "managedElementIds":[
+               "kista_1",
+               "kista_2"
+            ]
+         },
+          {
+            "name":"ric3",
+            "baseUrl":"http://a1-sim-std-0.a1-sim:8085/",
+            "controller": "controller1",
+            "managedElementIds":[
+               "kista_1",
+               "kista_2"
+            ]
+         }
        ],
        "streams_publishes":{
           "dmaap_publisher":{