--- /dev/null
+../nonrtric/RECIPE_EXAMPLE/
\ No newline at end of file
--- /dev/null
+#!/bin/bash
+################################################################################
+# Copyright (c) 2020 Nordix Foundation. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+# This script deploys NonRtRic components automatically
+
+if [ "$#" -eq 1 ]; then
+ OVERRIDEYAML=$1
+else
+
+ while [ -n "$1" ]; do # while loop starts
+
+ case "$1" in
+
+ -f) OVERRIDEYAML=$2
+ shift
+ ;;
+ *) echo "Option $1 not recognized" ;; # In case you typed a different option other than a,b,c
+
+ esac
+
+ shift
+
+ done
+fi
+
+
+if [ -z "$OVERRIDEYAML" ];then
+ echo "****************************************************************************************************************"
+ echo " ERROR "
+ echo "****************************************************************************************************************"
+ echo "RIC deployment without deployment recipe is currently disabled. Please specify an recipe with the -f option."
+ echo "****************************************************************************************************************"
+ exit 1
+fi
+
+
+ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
+
+# Start Helm local repo if there isn't one
+HELM_REPO_PID=$(ps -x | grep "helm serve" | grep -v "grep" | awk '{print $1}')
+if [ -z "$HELM_REPO_PID" ]; then
+ nohup helm serve >& /dev/null &
+fi
+
+# Package nonrtric-common and serve it using Helm local repo
+HELM_HOME=$(helm home)
+COMMON_CHART_VERSION=$(cat $ROOT_DIR/../ric-common/Common-Template/helm/nonrtric-common/Chart.yaml | grep version | awk '{print $2}')
+helm package -d /tmp $ROOT_DIR/../ric-common/Common-Template/helm/nonrtric-common
+cp /tmp/nonrtric-common-$COMMON_CHART_VERSION.tgz $HELM_HOME/repository/local/
+
+COMPONENTS=${LIST_OF_COMPONENTS:-"controlpanel a1controller a1simulator policymanagementservice"}
+echo "Packaging NONRTRIC components [$COMPONENTS]"
+
+for component in $COMPONENTS; do
+ helm dep up $ROOT_DIR/../nonrtric/helm/$component
+ VERSION=$(cat $ROOT_DIR/../nonrtric/helm/$component/Chart.yaml | grep version | awk '{print $2}')
+ helm package -d /tmp $ROOT_DIR/../nonrtric/helm/$component
+ cp /tmp/$component-$VERSION.tgz $HELM_HOME/repository/local/
+done
+
+helm repo index $HELM_HOME/repository/local/
+
+# Make sure that helm local repo is added
+helm repo remove local
+helm repo add local http://127.0.0.1:8879/charts
+
+echo "Finished Packaging NONRTRIC components [$COMPONENTS]"
+
+$ROOT_DIR/../nonrtric/bin/install -f $OVERRIDEYAML
--- /dev/null
+#!/bin/bash
+################################################################################
+# Copyright (c) 2020 Nordix Foundation. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+# This script to undeploy the NONRTRIC
+
+ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
+$ROOT_DIR/../nonrtric/bin/uninstall
helm package -d /tmp $ROOT_DIR/../ric-common/Common-Template/helm/aux-common
cp /tmp/aux-common-$AUX_COMMON_CHART_VERSION.tgz $HELM_HOME/repository/local/
+NONRTRIC_COMMON_CHART_VERSION=$(cat $ROOT_DIR/../ric-common/Common-Template/helm/nonrtric-common/Chart.yaml | grep version | awk '{print $2}')
+helm package -d /tmp $ROOT_DIR/../ric-common/Common-Template/helm/nonrtric-common
+cp /tmp/nonrtric-common-$NONRTRIC_COMMON_CHART_VERSION.tgz $HELM_HOME/repository/local/
+
+
+
helm repo index $HELM_HOME/repository/local/
echo "Make sure that helm local repo is added"
#-------------------------------------------------------------------------
common:
- releasePrefix: r2
-
-# If a local docker registry is used, please specify it using the following option
-# localregistry: nexus3.o-ran-sc.org:10004
-
-# Change the overall image pull policy using the following option
-# pullpolicy: IfNotPresent
+ releasePrefix: r2-dev-nonrtric
# Change the namespaces using the following options
namespace:
nonrtric: nonrtric
-# Specify the number of NEARRT-RIC instance
- simulatorinstance:
- count: 1
+component: nonrtric
+
+a1controller:
+ imagePullPolicy: IfNotPresent
+ image:
+ registry: "nexus3.o-ran-sc.org:10002/o-ran-sc"
+ name: nonrtric-a1-controller
+ tag: 1.7.4
+ replicaCount: 1
+ service:
+ internalPort: 8181
+ externalPort: 8282
a1simulator:
+ instanceName: a1-sim
imagePullPolicy: IfNotPresent
image:
registry: "nexus3.o-ran-sc.org:10002/o-ran-sc"
name: near-rt-ric-simulator
tag: 1.0.1
+ replicaCount: 2
+ service:
+ internalPort: 8085
+
+controlpanel:
+ imagePullPolicy: IfNotPresent
+ # image registry and tag to be changed after first release of controlpanel
+ image:
+ registry: "nexus3.o-ran-sc.org:10004/o-ran-sc"
+ name: nonrtric-controlpanel
+ tag: 1.0.0
+ replicaCount: 1
+ service:
+ internalPort: 8080
+ externalPort: 30090
policymanagementservice:
imagePullPolicy: IfNotPresent
registry: "nexus3.o-ran-sc.org:10004/o-ran-sc"
name: nonrtric-policy-agent
tag: 1.0.0
+ service:
+ internalPort: 8081
+ #Need to check the external port Availability
+ externalPort: 30091
+
NAMESPACE_BLOCK=$(cat $OVERRIDEYAML | awk '/^ namespace:/{getline; while ($0 ~ /^ .*|^ *$/) {print $0; if (getline == 0) {break}}}')
NONRTRIC_NAMESPACE=$(echo "$NAMESPACE_BLOCK" | awk '/^ *nonrtric:/{print $2}')
RELEASE_PREFIX=$(echo "$COMMON_BLOCK" | awk '/^ *releasePrefix:/{print $2}')
-SIMULATOR_BLOCK=$(cat $OVERRIDEYAML | awk '/^ simulatorinstance:/{getline; while ($0 ~ /^ +.*|^ *$/) {print $0; if (getline == 0) {break}}}')
-SIMULATOR_COUNT=$(echo "$SIMULATOR_BLOCK" | awk '/^ *count:/{print $2}')
-COMPONENTS=${LIST_OF_COMPONENTS:-"a1simulator policymanagementservice"}
-echo "SIMULATOR_COUNT [$SIMULATOR_COUNT]"
+PARENT_CHART=$(cat $OVERRIDEYAML | awk '/^ *component:/{print $2}')
+COMPONENTS=${LIST_OF_COMPONENTS:-"controlpanel a1controller a1simulator policymanagementservice nonrtric"}
+echo "Chart name- $PARENT_CHART"
if ! kubectl get ns ${NONRTRIC_NAMESPACE:-nonrtric}> /dev/null 2>&1; then
kubectl create ns ${NONRTRIC_NAMESPACE:-nonrtric}
echo "Deploying NONRTRIC components [$COMPONENTS]"
-for component in $COMPONENTS; do
- helm dep up $DIR/../helm/$component
- case "$component" in
- a1simulator)
- for((i=1;i<=$SIMULATOR_COUNT;i++)) ; do
- echo "CREATING SIMUALATOR INSTANCE $i"
- helm install -f $OVERRIDEYAML --namespace "${NONRTRIC_NAMESPACE:-nonrtric}" --name "${RELEASE_PREFIX}-$component-$i" --set a1simulator.instanceName=a1-sim-$i $DIR/../helm/$component
- done
- ;;
- *)
- helm install -f $OVERRIDEYAML --namespace "${NONRTRIC_NAMESPACE:-nonrtric}" --name "${RELEASE_PREFIX}-$component" $DIR/../helm/$component
+echo "Updating the Parent Chart [$PARENT_CHART]"
+helm dep up $DIR/../helm/$PARENT_CHART
- esac
+helm install $DIR/../helm/"${PARENT_CHART}" -f $OVERRIDEYAML --namespace "${NONRTRIC_NAMESPACE:-nonrtric}" --name "${RELEASE_PREFIX}"
-done
################################################################################
-COMPONENTS="a1simulator policymanagementservice"
+COMPONENTS="controlpanel a1controller a1simulator policymanagementservice"
RECIPE_NAMESPACE=$(kubectl get cm --all-namespaces | grep nonrtric-recipe | awk '{print $1}')
kubectl get configmap -n $RECIPE_NAMESPACE nonrtric-recipe -o jsonpath='{.data.recipe}' > /tmp/recipe.yaml
NAMESPACE_BLOCK=$(cat /tmp/recipe.yaml | awk '/^ namespace:/{getline; while ($0 ~ /^ .*|^ *$/) {print $0; if (getline == 0) {break}}}')
NONRTRIC_NAMESPACE=$(echo "$NAMESPACE_BLOCK" | awk '/^ *nonrtric:/{print $2}')
RELEASE_PREFIX=$(echo "$COMMON_BLOCK" | awk '/^ *releasePrefix:/{print $2}')
-SIMULATOR_BLOCK=$(cat /tmp/recipe.yaml | awk '/^ simulatorinstance:/{getline; while ($0 ~ /^ +.*|^ *$/) {print $0; if (getline == 0) {break}}}')
-SIMULATOR_COUNT=$(echo "$SIMULATOR_BLOCK" | awk '/^ *count:/{print $2}')
echo "Undeploying NONRTRIC components [$COMPONENTS]"
-
-for component in $COMPONENTS; do
- case "$component" in
- a1simulator)
- for((i=1;i<=$SIMULATOR_COUNT;i++)) ; do
- echo "Undeploying SIMUALATOR INSTANCE $i"
- helm delete --purge ${RELEASE_PREFIX}-$component-$i
- done
- ;;
- *)
- helm delete --purge ${RELEASE_PREFIX}-$component
-
- esac
-done
+helm delete --purge ${RELEASE_PREFIX}
kubectl delete cm -n ${NONRTRIC_NAMESPACE:-nonrtric} nonrtric-recipe
--- /dev/null
+################################################################################
+# Copyright (c) 2020 Nordix Foundation. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+dependencies:
+ - name: nonrtric-common
+ version: ^1.0.0
+ repository: "@local"
command:
- /opt/onap/sdnc/bin/startODL.sh
ports:
- - containerPort: {{ include "common.serviceport.a1controller.internal" . }}
+ - containerPort: {{ .Values.a1controller.service.internalPort }}
protocol: TCP
readinessProbe:
tcpSocket:
- port: {{ include "common.serviceport.a1controller.internal" . }}
+ port: {{ .Values.a1controller.service.internalPort }}
initialDelaySeconds: 15
periodSeconds: 15
---
spec:
type: ClusterIP
ports:
- - port: {{ include "common.serviceport.a1controller.external" . }}
+ - port: {{ .Values.a1controller.service.externalPort }}
protocol: TCP
- targetPort: {{ include "common.serviceport.a1controller.internal" . }}
+ targetPort: {{ .Values.a1controller.service.internalPort }}
selector:
app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1controller" . }}
release: {{ .Release.Name }}
registry: "nexus3.o-ran-sc.org:10002/o-ran-sc"
name: nonrtric-a1-controller
tag: 1.7.4
- replicaCount: 1
\ No newline at end of file
+ replicaCount: 1
+ service:
+ internalPort: 8181
+ externalPort: 8282
\ No newline at end of file
################################################################################
apiVersion: v1
-appVersion: "1.0"
description: A Helm chart for A1 simulator
name: a1simulator
version: 1.0.1
--- /dev/null
+################################################################################
+# Copyright (c) 2020 Nordix Foundation. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+dependencies:
+ - name: nonrtric-common
+ version: ^1.0.0
+ repository: "@local"
ports:
- name: http
protocol: TCP
- port: {{ include "common.serviceport.a1simulator.http" . }}
- targetPort: {{ include "common.serviceport.a1simulator.http" . }}
+ port: {{ .Values.a1simulator.service.internalPort }}
+ targetPort: {{ .Values.a1simulator.service.internalPort }}
selector:
app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }}
release: {{ .Release.Name }}
type: ClusterIP
+ clusterIP: None
\ No newline at end of file
# limitations under the License. #
################################################################################
-kind: Deployment
+kind: StatefulSet
apiVersion: apps/v1
metadata:
- name: {{ .Release.Name }}-{{ .Values.a1simulator.instanceName }}
+ name: {{ .Values.a1simulator.instanceName }}
namespace: {{ include "common.namespace.nonrtric" . }}
generation: 1
labels:
annotations:
deployment.kubernetes.io/revision: '1'
spec:
- replicas: 1
+ replicas: {{ .Values.a1simulator.replicaCount }}
selector:
matchLabels:
app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }}
release: {{ .Release.Name }}
+ serviceName: {{ .Values.a1simulator.instanceName }}
template:
metadata:
labels:
image: {{ .Values.a1simulator.image.registry }}/{{ .Values.a1simulator.image.name }}:{{ .Values.a1simulator.image.tag }}
imagePullPolicy: {{ .Values.a1simulator.imagePullPolicy }}
ports:
- - containerPort: {{ include "common.serviceport.a1simulator.http" . }}
+ - containerPort: {{ .Values.a1simulator.service.internalPort }}
protocol: TCP
readinessProbe:
tcpSocket:
- port: {{ include "common.serviceport.a1simulator.http" . }}
+ port: {{ .Values.a1simulator.service.internalPort }}
initialDelaySeconds: 5
periodSeconds: 15
\ No newline at end of file
# Declare variables to be passed into your templates.
a1simulator:
- instanceName: a1-sim1
+ instanceName: a1-sim
imagePullPolicy: IfNotPresent
image:
registry: "nexus3.o-ran-sc.org:10002/o-ran-sc"
name: near-rt-ric-simulator
tag: 1.0.1
+ replicaCount: 2
+ service:
+ internalPort: 8085
################################################################################
apiVersion: v1
-appVersion: "1.0"
description: A Helm chart for nonrtric controlpanel
name: controlpanel
version: 1.0.0
--- /dev/null
+################################################################################
+# Copyright (c) 2020 Nordix Foundation. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+dependencies:
+ - name: nonrtric-common
+ version: ^1.0.0
+ repository: "@local"
imagePullPolicy: {{ .Values.controlpanel.imagePullPolicy }}
ports:
- name: http
- containerPort: {{ include "common.serviceport.controlpanel.container" . }}
+ containerPort: {{ .Values.controlpanel.service.internalPort }}
protocol: TCP
volumeMounts:
- name: configmap
readOnly: true
readinessProbe:
tcpSocket:
- port: {{ include "common.serviceport.controlpanel.container" . }}
+ port: {{ .Values.controlpanel.service.internalPort }}
initialDelaySeconds: 15
periodSeconds: 15
volumes:
spec:
type: NodePort
ports:
- - port: {{ include "common.serviceport.controlpanel.container" . }}
- nodePort: {{ include "common.serviceport.controlpanel.http" . }}
+ - port: {{ .Values.controlpanel.service.internalPort }}
+ nodePort: {{ .Values.controlpanel.service.externalPort }}
protocol: TCP
- targetPort: http
+ targetPort: {{ .Values.controlpanel.service.internalPort }}
selector:
app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.controlpanel" . }}
release: {{ .Release.Name }}
\ No newline at end of file
registry: "nexus3.o-ran-sc.org:10004/o-ran-sc"
name: nonrtric-controlpanel
tag: 1.0.0
- replicaCount: 1
\ No newline at end of file
+ replicaCount: 1
+ service:
+ internalPort: 8080
+ externalPort: 30090
--- /dev/null
+################################################################################
+# Copyright (c) 2020 Nordix Foundation. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+apiVersion: v1
+description: NonRealTime RAN Intelligent Controller
+name: nonrtric
+version: 1.0.0
--- /dev/null
+################################################################################
+# Copyright (c) 2020 Nordix Foundation. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+dependencies:
+ - name: a1controller
+ version: ~1.0.0
+ repository: "@local"
+ - name: a1simulator
+ version: ~1.0.1
+ repository: "@local"
+ - name: controlpanel
+ version: ~1.0.0
+ repository: "@local"
+ - name: policymanagementservice
+ version: ~1.0.0
+ repository: "@local"
+ - name: nonrtric-common
+ version: ^1.0.0
+ repository: "@local"
--- /dev/null
+################################################################################
+# Copyright (c) 2020 Nordix Foundation. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+
+
################################################################################
apiVersion: v1
-appVersion: "1.0"
description: A Helm chart for Policy Management Service
name: policymanagementservice
-version: 1.0.1
+version: 1.0.0
--- /dev/null
+################################################################################
+# Copyright (c) 2020 Nordix Foundation. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+dependencies:
+ - name: nonrtric-common
+ version: ^1.0.0
+ repository: "@local"
apiVersion: v1
kind: ConfigMap
metadata:
- name: {{ .Release.Name }}-policy-configmap
+ name: {{ include "common.name.policymanagementservice" . }}-configmap
namespace: {{ include "common.namespace.nonrtric" . }}
labels:
app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.policymanagementservice" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
data:
-{{ tpl (.Files.Glob "resources/config/*").AsConfig . | indent 2 }}
+{{ tpl (.Files.Glob "resources/config/*").AsConfig . | indent 2 }}
\ No newline at end of file
image: {{ .Values.policymanagementservice.image.registry }}/{{ .Values.policymanagementservice.image.name }}:{{ .Values.policymanagementservice.image.tag }}
imagePullPolicy: {{ .Values.policymanagementservice.imagePullPolicy }}
ports:
- - containerPort: {{ include "common.serviceport.policymanagementservice.http" . }}
+ - containerPort: {{ .Values.policymanagementservice.service.internalPort }}
protocol: TCP
readinessProbe:
tcpSocket:
- port: {{ include "common.serviceport.policymanagementservice.http" . }}
+ port: {{ .Values.policymanagementservice.service.internalPort }}
initialDelaySeconds: 5
periodSeconds: 15
volumeMounts:
- - name: {{ .Release.Name }}-policy-conf
+ - name: {{ include "common.name.policymanagementservice" . }}-policy-conf
mountPath: /opt/app/policy-agent/config/application_configuration.json
subPath: application_configuration.json
volumes:
- - name: {{ .Release.Name }}-policy-conf
+ - name: {{ include "common.name.policymanagementservice" . }}-policy-conf
configMap:
- name: {{ .Release.Name }}-policy-configmap
\ No newline at end of file
+ name: {{ include "common.name.policymanagementservice" . }}-configmap
\ No newline at end of file
heritage: {{ .Release.Service }}
spec:
ports:
- - name: http
+ - name: {{ .Values.policymanagementservice.service.name }}
protocol: TCP
- port: {{ include "common.serviceport.policymanagementservice.http" . }}
- targetPort: {{ include "common.serviceport.policymanagementservice.http" . }}
+ port: {{ .Values.policymanagementservice.service.internalPort }}
+ nodePort: {{ .Values.policymanagementservice.service.externalPort }}
selector:
- app: nonrtric-{{ include "common.name.policymanagementservice" . }}
+ app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.policymanagementservice" . }}
release: {{ .Release.Name }}
- type: ClusterIP
+ type: NodePort
registry: "nexus3.o-ran-sc.org:10004/o-ran-sc"
name: nonrtric-policy-agent
tag: 1.0.0
+ service:
+ name: http
+ internalPort: 8081
+ #Need to check the external port Availability
+ externalPort: 30091
+
+
--- /dev/null
+################################################################################
+# Copyright (c) 2020 Nordix Foundation. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+apiVersion: v1
+description: NONRTRIC Common templates for inclusion in other charts
+name: nonrtric-common
+version: 1.0.0
\ No newline at end of file
{{- printf "a1controller" -}}
{{- end -}}
-{{- define "common.namespace.nonrtric" -}}
- {{- printf "nonrtric" -}}
-{{- end -}}
-
{{- define "common.containername.a1controller" -}}
{{- $name := ( include "common.name.a1controller" . ) -}}
{{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
-
-{{- define "common.serviceport.a1controller.internal" -}}8181{{- end -}}
-
-{{- define "common.serviceport.a1controller.external" -}}8282{{- end -}}
\ No newline at end of file
+{{- end -}}
\ No newline at end of file
{{- printf "a1simulator" -}}
{{- end -}}
-{{- define "common.namespace.nonrtric" -}}
- {{- printf "nonrtric" -}}
-{{- end -}}
-
{{- define "common.fullname.a1simulator" -}}
{{- $name := ( include "common.name.a1simulator" . ) -}}
{{- $namespace := "nonrtric" -}}
{{- $name := ( include "common.fullname.a1simulator" . ) -}}
{{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
-
-{{- define "common.serviceport.a1simulator.http" -}}8085{{- end -}}
--- /dev/null
+################################################################################
+# Copyright (c) 2020 Nordix Foundation. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+{{- define "common.namespace.nonrtric" -}}
+ {{- printf "nonrtric" -}}
+{{- end -}}
{{- printf "controlpanel" -}}
{{- end -}}
-{{- define "common.namespace.nonrtric" -}}
- {{- printf "nonrtric" -}}
-{{- end -}}
-
{{- define "common.containername.controlpanel" -}}
{{- $name := ( include "common.name.controlpanel" . ) -}}
{{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
-
-{{- define "common.serviceport.controlpanel.http" -}}30090{{- end -}}
-
-{{- define "common.serviceport.controlpanel.container" -}}8080{{- end -}}
\ No newline at end of file
+{{- end -}}
\ No newline at end of file
{{- printf "policymanagementservice" -}}
{{- end -}}
-{{- define "common.namespace.nonrtric" -}}
- {{- printf "nonrtric" -}}
-{{- end -}}
-
{{- define "common.container.policymanagementservice" -}}
{{- $name := ( include "common.name.policymanagementservice" . ) -}}
{{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
-
-{{- define "common.serviceport.policymanagementservice.http" -}}8081{{- end -}}
--- /dev/null
+################################################################################
+# Copyright (c) 2020 Nordix Foundation. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
\ No newline at end of file
-Subproject commit bc4d2b325c496bbf2557b634ce70ba86ac353997
+Subproject commit 91184df84b97b4d867f3324c5dc3e6a6a734134a