Loading .gitignore +3 −0 Original line number Diff line number Diff line Loading @@ -171,5 +171,8 @@ local_k8s_deployment.sh # asdf configuration .tool-versions # libyang build files libyang/ # Other logs **/logs/*.log.* deploy/all.sh +3 −0 Original line number Diff line number Diff line Loading @@ -175,6 +175,9 @@ export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"} # Deploy TeraFlowSDN ./deploy/tfs.sh #Configure Subscription WS #./deploy/subscription_ws.sh # Show deploy summary ./deploy/show.sh Loading deploy/subscription_ws.sh 0 → 100755 +45 −0 Original line number Diff line number Diff line #!/bin/bash # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (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. ######################################################################################################################## # Read deployment settings ######################################################################################################################## # If not already set, set the namespace where CockroackDB will be deployed. export SUBSCRIPTION_WS_NAMESPACE=${SUBSCRIPTION_WS_NAMESPACE:-"tfs"} # If not already set, set the internal port interface will be exposed to. export SUBSCRIPTION_WS_INT_PORT=${SUBSCRIPTION_WS_INT_PORT:-"8765"} # If not already set, set the external port interface will be exposed to. export SUBSCRIPTION_WS_EXT_PORT=${SUBSCRIPTION_WS_EXT_PORT:-"8765"} ######################################################################################################################## # Automated steps start here ######################################################################################################################## echo "Subscription WebSocket Port Mapping" echo ">>> ExposeSubscription WebSocket port (${SUBSCRIPTION_WS_EXT_PORT}->${SUBSCRIPTION_WS_EXT_PORT})" PATCH='{"data": {"'${SUBSCRIPTION_WS_EXT_PORT}'": "'${SUBSCRIPTION_WS_NAMESPACE}'/nbiservice:'${SUBSCRIPTION_WS_EXT_PORT}'"}}' kubectl patch configmap nginx-ingress-tcp-microk8s-conf --namespace ingress --patch "${PATCH}" PORT_MAP='{"containerPort": '${SUBSCRIPTION_WS_EXT_PORT}', "hostPort": '${SUBSCRIPTION_WS_EXT_PORT}'}' CONTAINER='{"name": "nginx-ingress-microk8s", "ports": ['${PORT_MAP}']}' PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}' kubectl patch daemonset nginx-ingress-microk8s-controller --namespace ingress --patch "${PATCH}" echo install_requirements.sh +3 −0 Original line number Diff line number Diff line Loading @@ -32,8 +32,11 @@ sudo apt-get --yes --quiet --quiet update sudo apt-get --yes --quiet --quiet install build-essential cmake libpcre2-dev python3-dev python3-cffi mkdir libyang git clone https://github.com/CESNET/libyang.git libyang git fetch git checkout v2.1.148 mkdir libyang/build cd libyang/build echo "*" > .gitignore cmake -D CMAKE_BUILD_TYPE:String="Release" .. make sudo make install Loading manifests/e2e_orchestratorservice.yaml +7 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,9 @@ spec: app: e2e-orchestratorservice template: metadata: annotations: config.linkerd.io/skip-outbound-ports: "8765" config.linkerd.io/skip-inbound-ports: "8765" labels: app: e2e-orchestratorservice spec: Loading @@ -33,6 +36,7 @@ spec: ports: - containerPort: 10050 - containerPort: 9192 - containerPort: 8765 env: - name: LOG_LEVEL value: "INFO" Loading Loading @@ -67,6 +71,9 @@ spec: - name: metrics port: 9192 targetPort: 9192 - name: ws port: 8765 targetPort: 8765 --- apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler Loading Loading
.gitignore +3 −0 Original line number Diff line number Diff line Loading @@ -171,5 +171,8 @@ local_k8s_deployment.sh # asdf configuration .tool-versions # libyang build files libyang/ # Other logs **/logs/*.log.*
deploy/all.sh +3 −0 Original line number Diff line number Diff line Loading @@ -175,6 +175,9 @@ export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"} # Deploy TeraFlowSDN ./deploy/tfs.sh #Configure Subscription WS #./deploy/subscription_ws.sh # Show deploy summary ./deploy/show.sh Loading
deploy/subscription_ws.sh 0 → 100755 +45 −0 Original line number Diff line number Diff line #!/bin/bash # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (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. ######################################################################################################################## # Read deployment settings ######################################################################################################################## # If not already set, set the namespace where CockroackDB will be deployed. export SUBSCRIPTION_WS_NAMESPACE=${SUBSCRIPTION_WS_NAMESPACE:-"tfs"} # If not already set, set the internal port interface will be exposed to. export SUBSCRIPTION_WS_INT_PORT=${SUBSCRIPTION_WS_INT_PORT:-"8765"} # If not already set, set the external port interface will be exposed to. export SUBSCRIPTION_WS_EXT_PORT=${SUBSCRIPTION_WS_EXT_PORT:-"8765"} ######################################################################################################################## # Automated steps start here ######################################################################################################################## echo "Subscription WebSocket Port Mapping" echo ">>> ExposeSubscription WebSocket port (${SUBSCRIPTION_WS_EXT_PORT}->${SUBSCRIPTION_WS_EXT_PORT})" PATCH='{"data": {"'${SUBSCRIPTION_WS_EXT_PORT}'": "'${SUBSCRIPTION_WS_NAMESPACE}'/nbiservice:'${SUBSCRIPTION_WS_EXT_PORT}'"}}' kubectl patch configmap nginx-ingress-tcp-microk8s-conf --namespace ingress --patch "${PATCH}" PORT_MAP='{"containerPort": '${SUBSCRIPTION_WS_EXT_PORT}', "hostPort": '${SUBSCRIPTION_WS_EXT_PORT}'}' CONTAINER='{"name": "nginx-ingress-microk8s", "ports": ['${PORT_MAP}']}' PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}' kubectl patch daemonset nginx-ingress-microk8s-controller --namespace ingress --patch "${PATCH}" echo
install_requirements.sh +3 −0 Original line number Diff line number Diff line Loading @@ -32,8 +32,11 @@ sudo apt-get --yes --quiet --quiet update sudo apt-get --yes --quiet --quiet install build-essential cmake libpcre2-dev python3-dev python3-cffi mkdir libyang git clone https://github.com/CESNET/libyang.git libyang git fetch git checkout v2.1.148 mkdir libyang/build cd libyang/build echo "*" > .gitignore cmake -D CMAKE_BUILD_TYPE:String="Release" .. make sudo make install Loading
manifests/e2e_orchestratorservice.yaml +7 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,9 @@ spec: app: e2e-orchestratorservice template: metadata: annotations: config.linkerd.io/skip-outbound-ports: "8765" config.linkerd.io/skip-inbound-ports: "8765" labels: app: e2e-orchestratorservice spec: Loading @@ -33,6 +36,7 @@ spec: ports: - containerPort: 10050 - containerPort: 9192 - containerPort: 8765 env: - name: LOG_LEVEL value: "INFO" Loading Loading @@ -67,6 +71,9 @@ spec: - name: metrics port: 9192 targetPort: 9192 - name: ws port: 8765 targetPort: 8765 --- apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler Loading