kafka-1:
image: ${STRIMZI_IMAGE}
+ container_name: common-kafka-1-1
command: [
"sh", "-c",
"bin/kafka-server-start.sh /tmp/kafka/strimzi.properties"
- nodeport: 31812
- user: admin
- password: mySuP3rS3cr3tT0keN
+
+### Controlpanel
+Browser for control-panel \
+browser: `<host ip>:30091/ei-coordinator`
+- nodeport: 30091
--- /dev/null
+# Patterns to ignore when building packages.
+# This supports shell glob matching, relative path matching, and
+# negation (prefixed with !). Only one pattern per line.
+.DS_Store
+# Common VCS dirs
+.git/
+.gitignore
+.bzr/
+.bzrignore
+.hg/
+.hgignore
+.svn/
+# Common backup files
+*.swp
+*.bak
+*.tmp
+*~
+# Various IDEs
+.project
+.idea/
+*.tmproj
+.vscode/
--- /dev/null
+################################################################################
+# Copyright (c) 2023 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: "2.0.0"
+description: A Helm chart for nonrtric controlpanel
+name: controlpanel
+version: 2.0.0
--- /dev/null
+events{}
+
+http {
+ include /etc/nginx/mime.types;
+
+ upstream backend {
+ server kong-proxy.kong:80;
+ }
+
+ server {
+ listen 8080;
+ server_name localhost;
+ root /usr/share/nginx/html;
+ index index.html;
+ location /a1-policy/ {
+ proxy_pass http://backend;
+ }
+ location /data-producer/ {
+ proxy_pass http://backend;
+ }
+ location /data-consumer/ {
+ proxy_pass http://backend;
+ }
+ location / {
+ try_files $uri $uri/ /index.html;
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+events{}
+
+http {
+ include /etc/nginx/mime.types;
+
+ upstream backend {
+ server nonrtricgateway:9090;
+ }
+
+ server {
+ listen 8080;
+ server_name localhost;
+ root /usr/share/nginx/html;
+ index index.html;
+ location /a1-policy/ {
+ proxy_pass http://backend;
+ }
+ location /data-producer/ {
+ proxy_pass http://backend;
+ }
+ location /data-consumer/ {
+ proxy_pass http://backend;
+ }
+ location / {
+ try_files $uri $uri/ /index.html;
+ }
+ }
+}
--- /dev/null
+################################################################################
+# Copyright (c) 2023 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
+kind: ConfigMap
+metadata:
+ name: controlpanel-configmap
+ namespace: nonrtric
+ labels:
+ app: nonrtric-controlpanel
+data:
+{{if eq .Values.controlpanel.ingress.enabled false }}
+{{ tpl (.Files.Glob "resources-ngw/*").AsConfig . | indent 2 }}
+{{ else }}
+{{ tpl (.Files.Glob "resources-ing/*").AsConfig . | indent 2 }}
+{{ end }}
\ No newline at end of file
--- /dev/null
+################################################################################
+# Copyright (c) 2023 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. #
+################################################################################
+
+kind: Deployment
+apiVersion: apps/v1
+metadata:
+ name: controlpanel
+ namespace: nonrtric
+ labels:
+ app: nonrtric-controlpanel
+spec:
+ replicas: {{ .Values.controlpanel.replicaCount }}
+ selector:
+ matchLabels:
+ app: nonrtric-controlpanel
+ template:
+ metadata:
+ labels:
+ app: nonrtric-controlpanel
+ spec:
+ containers:
+ - name: controlpanel
+ image: "{{ .Values.controlpanel.image.registry }}/{{ .Values.controlpanel.image.name }}:{{ .Values.controlpanel.image.tag }}"
+ imagePullPolicy: {{ .Values.controlpanel.imagePullPolicy }}
+ ports:
+ - containerPort: {{ .Values.controlpanel.service.targetPort1 }}
+ protocol: TCP
+ - containerPort: {{ .Values.controlpanel.service.targetPort2 }}
+ protocol: TCP
+ volumeMounts:
+ - name: controlpanel-configmap
+ mountPath: /etc/nginx/nginx.conf
+ subPath: nginx.conf
+ readOnly: true
+ readinessProbe:
+ tcpSocket:
+ port: {{ .Values.controlpanel.service.targetPort1 }}
+ initialDelaySeconds: {{ .Values.controlpanel.readiness.initialDelaySeconds }} # liveness -> readiness
+ periodSeconds: {{ .Values.controlpanel.readiness.periodSeconds }} # liveness -> readiness
+ livenessProbe:
+ tcpSocket:
+ port: {{ .Values.controlpanel.service.targetPort1 }}
+ initialDelaySeconds: {{ .Values.controlpanel.liveness.initialDelaySeconds }}
+ periodSeconds: {{ .Values.controlpanel.liveness.periodSeconds }}
+ volumes:
+ - name: controlpanel-configmap
+ configMap:
+ name: controlpanel-configmap
--- /dev/null
+################################################################################
+# Copyright (c) 2023 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. #
+################################################################################
+
+kind: Service
+apiVersion: v1
+metadata:
+ name: controlpanel
+ namespace: nonrtric
+ labels:
+ app: nonrtric-controlpanel
+spec:
+ type: NodePort
+ ports:
+ {{if eq .Values.controlpanel.service.allowHttp true -}}
+ - name: {{ index .Values.controlpanel.service.httpName }}
+ port: {{ .Values.controlpanel.service.internalPort1 }}
+ targetPort: {{ .Values.controlpanel.service.targetPort1 }}
+ nodePort: {{ .Values.controlpanel.service.externalPort1 }}
+ protocol: TCP
+ {{- end }}
+ - name: {{ index .Values.controlpanel.service.httpsName }}
+ port: {{ .Values.controlpanel.service.internalPort2 }}
+ targetPort: {{ .Values.controlpanel.service.targetPort2 }}
+ nodePort: {{ .Values.controlpanel.service.externalPort2 }}
+ protocol: TCP
+ selector:
+ app: nonrtric-controlpanel
--- /dev/null
+################################################################################
+# Copyright (c) 2023 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. #
+################################################################################
+
+# Default values for controlpanel.
+# This is a YAML-formatted file.
+# Declare variables to be passed into your templates.
+
+controlpanel:
+ imagePullPolicy: IfNotPresent
+ image:
+ registry: 'nexus3.o-ran-sc.org:10002/o-ran-sc'
+ name: nonrtric-controlpanel
+ tag: 2.5.0
+ replicaCount: 1
+ service:
+ allowHttp: true
+ httpName: http
+ internalPort1: 8080
+ targetPort1: 8080
+ externalPort1: 30091
+ httpsName: https
+ internalPort2: 8081
+ targetPort2: 8082
+ externalPort2: 30092
+ liveness:
+ initialDelaySeconds: 20
+ periodSeconds: 10
+ readiness:
+ initialDelaySeconds: 20
+ periodSeconds: 10
+ ingress:
+ enabled: false
--- /dev/null
+# Patterns to ignore when building packages.
+# This supports shell glob matching, relative path matching, and
+# negation (prefixed with !). Only one pattern per line.
+.DS_Store
+# Common VCS dirs
+.git/
+.gitignore
+.bzr/
+.bzrignore
+.hg/
+.hgignore
+.svn/
+# Common backup files
+*.swp
+*.bak
+*.tmp
+*~
+# Various IDEs
+.project
+.idea/
+*.tmproj
+.vscode/
--- /dev/null
+################################################################################
+# Copyright (c) 2023 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: "0.0.1"
+description: A Helm chart for Nonrtric Gateway
+name: nonrtricgateway
+version: 1.0.0
--- /dev/null
+################################################################################
+# Copyright (c) 2023 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. #
+################################################################################
+
+server:
+ port: 9090
+spring:
+ cloud:
+ gateway:
+ httpclient:
+ ssl:
+ useInsecureTrustManager: true
+ wiretap: true
+ httpserver:
+ wiretap: true
+ routes:
+ - id: A1-EI
+ uri: http://informationservice:8083
+ predicates:
+ - Path=/data-producer/**,/data-consumer/**
+# - id: A1-EI2
+#uri: http://ics:8083
+management:
+ endpoint:
+ gateway:
+ enabled: true
+ endpoints:
+ web:
+ exposure:
+ include: "gateway,loggers,logfile,health,info,metrics,threaddump,heapdump"
+logging:
+ level:
+ ROOT: ERROR
+ org.springframework: ERROR
+ org.springframework.cloud.gateway: INFO
+ reactor.netty: INFO
+ file:
+ name: /var/log/nonrtric-gateway/application.log
--- /dev/null
+################################################################################
+# Copyright (c) 2023 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
+kind: ConfigMap
+metadata:
+ name: nonrtricgateway-configmap
+ namespace: nonrtric
+ labels:
+ app: nonrtric-nonrtricgateway
+data:
+{{ tpl (.Files.Glob "resources/config/*").AsConfig . | indent 2 }}
\ No newline at end of file
--- /dev/null
+################################################################################
+# Copyright (c) 2023 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. #
+################################################################################
+
+kind: Deployment
+apiVersion: apps/v1
+metadata:
+ name: nonrtricgateway
+ namespace: nonrtric
+ labels:
+ app: nonrtric-nonrtricgateway
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: nonrtric-nonrtricgateway
+ template:
+ metadata:
+ labels:
+ app: nonrtric-nonrtricgateway
+ spec:
+ containers:
+ - name: nonrtric-nonrtricgateway
+ image: "{{ .Values.nonrtricgateway.image.registry }}/{{ .Values.nonrtricgateway.image.name }}:{{ .Values.nonrtricgateway.image.tag }}"
+ imagePullPolicy: {{ .Values.nonrtricgateway.imagePullPolicy }}
+ ports:
+ - containerPort: {{ .Values.nonrtricgateway.service.targetPort1 }}
+ protocol: TCP
+ readinessProbe:
+ tcpSocket:
+ port: {{ .Values.nonrtricgateway.service.targetPort1 }}
+ initialDelaySeconds: {{ .Values.nonrtricgateway.readiness.initialDelaySeconds }} # changed from liveness
+ periodSeconds: {{ .Values.nonrtricgateway.readiness.periodSeconds }}
+ livenessProbe:
+ tcpSocket:
+ port: {{ .Values.nonrtricgateway.service.targetPort1 }}
+ initialDelaySeconds: {{ .Values.nonrtricgateway.liveness.initialDelaySeconds }}
+ periodSeconds: {{ .Values.nonrtricgateway.liveness.periodSeconds }}
+ volumeMounts:
+ - name: nonrtricgateway-config
+ mountPath: /opt/app/nonrtric-gateway/config
+ volumes:
+ - name: nonrtricgateway-config
+ configMap:
+ name: nonrtricgateway-configmap
--- /dev/null
+################################################################################
+# Copyright (c) 2023 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. #
+################################################################################
+
+kind: Service
+apiVersion: v1
+metadata:
+ name: nonrtricgateway
+ namespace: nonrtric
+ labels:
+ app: nonrtric-nonrtricgateway
+spec:
+ ports:
+ - name: {{ .Values.nonrtricgateway.service.httpName }} # name: {{ index .Values.nonrtricgateway.service.httpName }}, remove index
+ port: {{ .Values.nonrtricgateway.service.internalPort1 }}
+ targetPort: {{ .Values.nonrtricgateway.service.targetPort1 }}
+ nodePort: {{ .Values.nonrtricgateway.service.externalPort1 }}
+ protocol: TCP
+ selector:
+ app: nonrtric-nonrtricgateway
+ type: NodePort
--- /dev/null
+################################################################################
+# Copyright (c) 2023 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. #
+################################################################################
+
+# Default values for Gateway application.
+# This is a YAML-formatted file.
+# Declare variables to be passed into your templates.
+
+nonrtricgateway:
+ imagePullPolicy: IfNotPresent
+ image:
+ registry: 'nexus3.o-ran-sc.org:10002/o-ran-sc'
+ name: nonrtric-gateway
+ tag: 1.2.0
+ service:
+ httpName: http
+ internalPort1: 9090
+ targetPort1: 9090
+ externalPort1: 30093
+ liveness:
+ initialDelaySeconds: 20
+ periodSeconds: 10
+ readiness:
+ initialDelaySeconds: 20
+ periodSeconds: 10
\ No newline at end of file
echo ""
+##################################################################################
+echo "##### Installing: chart nonrtricgateway"
+##################################################################################
+
+helm install --wait -n nonrtric nonrtricgateway helm/nonrtricgateway
+echo ""
+
+##################################################################################
+echo "##### Installing: chart controlpanel"
+##################################################################################
+
+helm install --wait -n nonrtric controlpanel helm/controlpanel
+echo ""
+
##################################################################################
echo "##### Installing: chart ran"
##################################################################################
echo "Wait until all pods are running before installation additional charts"
echo "Do: 'kubectl get po -n nonrtric' and verify that all pods are in status Running"
echo " and all included containers are Ready"
-echo "######################################################################"
\ No newline at end of file
+echo "######################################################################"
. scripts/create_influxdb2_bucket.sh
. scripts/create_ics_job.sh
-echo "Installtion pm to influx job"
+echo "Installation pm to influx job"
echo " Retriving influxdb2 access token..."
INFLUXDB2_TOKEN=$(get_influxdb2_token influxdb2-0 nonrtric)
NUM_ERRORS=0
+helm uninstall -n nonrtric controlpanel
+check_error $? controlpanel
+helm uninstall -n nonrtric nonrtricgateway
+check_error $? nonrtricgateway
+
helm uninstall -n ran ran
+check_error $? ran
helm uninstall -n nonrtric nrt-pm
+check_error $? nrt-pm
helm uninstall -n nonrtric nrt-base-1
+check_error $? nrt-base-1
helm uninstall -n nonrtric nrt-base-0
+check_error $? nrt-base-0
INST="strimzi-kafka CRDs"
echo "##########################"
cd "${ROOT_DIR}"
# Array of scripts to execute
-scripts=("uninstall-pm-rapp.sh" "uninstall-nrt.sh")
+scripts=("uninstall-pm-rapp.sh" "uninstall-pm-log.sh" "uninstall-nrt.sh")
for script in "${scripts[@]}"; do
echo "*****************************************************************"
echo "*****************************************************************"
echo "All RANPM uninstallation scripts executed successfully!"
echo "*****************************************************************"
-echo "*****************************************************************"
\ No newline at end of file
+echo "*****************************************************************"