Loading manifests/nginx_ingress_http.yaml +7 −0 Original line number Diff line number Diff line Loading @@ -106,3 +106,10 @@ spec: name: nbiservice port: number: 8080 - path: /()(ztp-api/.*) pathType: Prefix backend: service: name: nbiservice port: number: 8080 manifests/ztp_server.yaml→manifests/ztp_serverservice.yaml +6 −6 Original line number Diff line number Diff line Loading @@ -15,16 +15,16 @@ apiVersion: apps/v1 kind: Deployment metadata: name: ztp_serverservice name: ztp-serverservice spec: selector: matchLabels: app: ztp_serverservice app: ztp-serverservice #replicas: 1 template: metadata: labels: app: ztp_serverservice app: ztp-serverservice spec: terminationGracePeriodSeconds: 5 containers: Loading Loading @@ -55,13 +55,13 @@ spec: apiVersion: v1 kind: Service metadata: name: ztp_serverservice name: ztp-serverservice labels: app: ztp_serverservice app: ztp-serverservice spec: type: ClusterIP selector: app: ztp_serverservice app: ztp-serverservice ports: - name: http protocol: TCP Loading my_deploy.sh +3 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,9 @@ export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/" # Set the list of components, separated by spaces, you want to build images for, and deploy. export TFS_COMPONENTS="context device pathcomp service slice nbi webui" # Uncomment to activate ZTP export TFS_COMPONENTS="${TFS_COMPONENTS} ztp_server" # Uncomment to activate Monitoring (old) #export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring" Loading scripts/show_logs_ztp.sh 0 → 100644 +28 −0 Original line number Diff line number Diff line #!/bin/bash # Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) # # 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 your deployment settings here ######################################################################################################################## # If not already set, set the name of the Kubernetes namespace to deploy to. export TFS_K8S_NAMESPACE=${TFS_K8S_NAMESPACE:-"tfs"} ######################################################################################################################## # Automated steps start here ######################################################################################################################## kubectl -n ${TFS_K8S_NAMESPACE:-tfs} logs deploy/ztp-serverservice -c server src/nbi/Dockerfile +3 −0 Original line number Diff line number Diff line Loading @@ -89,6 +89,9 @@ COPY src/vnt_manager/__init__.py vnt_manager/__init__.py COPY src/vnt_manager/client/. vnt_manager/client/ RUN mkdir -p /var/teraflow/tests/tools COPY src/tests/tools/mock_osm/. tests/tools/mock_osm/ COPY src/ztp_server/__init__.py ztp_server/__init__.py COPY src/ztp_server/client/. ztp_server/client/ # Start the service # NOTE: Configured single worker to prevent issues with multi-worker synchronization. To be invetsigated. Loading Loading
manifests/nginx_ingress_http.yaml +7 −0 Original line number Diff line number Diff line Loading @@ -106,3 +106,10 @@ spec: name: nbiservice port: number: 8080 - path: /()(ztp-api/.*) pathType: Prefix backend: service: name: nbiservice port: number: 8080
manifests/ztp_server.yaml→manifests/ztp_serverservice.yaml +6 −6 Original line number Diff line number Diff line Loading @@ -15,16 +15,16 @@ apiVersion: apps/v1 kind: Deployment metadata: name: ztp_serverservice name: ztp-serverservice spec: selector: matchLabels: app: ztp_serverservice app: ztp-serverservice #replicas: 1 template: metadata: labels: app: ztp_serverservice app: ztp-serverservice spec: terminationGracePeriodSeconds: 5 containers: Loading Loading @@ -55,13 +55,13 @@ spec: apiVersion: v1 kind: Service metadata: name: ztp_serverservice name: ztp-serverservice labels: app: ztp_serverservice app: ztp-serverservice spec: type: ClusterIP selector: app: ztp_serverservice app: ztp-serverservice ports: - name: http protocol: TCP Loading
my_deploy.sh +3 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,9 @@ export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/" # Set the list of components, separated by spaces, you want to build images for, and deploy. export TFS_COMPONENTS="context device pathcomp service slice nbi webui" # Uncomment to activate ZTP export TFS_COMPONENTS="${TFS_COMPONENTS} ztp_server" # Uncomment to activate Monitoring (old) #export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring" Loading
scripts/show_logs_ztp.sh 0 → 100644 +28 −0 Original line number Diff line number Diff line #!/bin/bash # Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) # # 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 your deployment settings here ######################################################################################################################## # If not already set, set the name of the Kubernetes namespace to deploy to. export TFS_K8S_NAMESPACE=${TFS_K8S_NAMESPACE:-"tfs"} ######################################################################################################################## # Automated steps start here ######################################################################################################################## kubectl -n ${TFS_K8S_NAMESPACE:-tfs} logs deploy/ztp-serverservice -c server
src/nbi/Dockerfile +3 −0 Original line number Diff line number Diff line Loading @@ -89,6 +89,9 @@ COPY src/vnt_manager/__init__.py vnt_manager/__init__.py COPY src/vnt_manager/client/. vnt_manager/client/ RUN mkdir -p /var/teraflow/tests/tools COPY src/tests/tools/mock_osm/. tests/tools/mock_osm/ COPY src/ztp_server/__init__.py ztp_server/__init__.py COPY src/ztp_server/client/. ztp_server/client/ # Start the service # NOTE: Configured single worker to prevent issues with multi-worker synchronization. To be invetsigated. Loading