Skip to content
Snippets Groups Projects
Commit d4955a06 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

MicroK8s deployment scripts:

- moved old deployment scripts to scripts/old
- added NGINX-based ingress controller to expose http-based endpoints from a single connection point
- adapted webui K8s manifest to be used with the ingress controller
- improved install_requirements.sh (renamed from install_development_dependencies.sh) to prevent collision of package versions
- adapted script to show deployment
- created functional example settings script my_deploy.sh
- created improved deploy.sh script
- added first version of the deployment tutorial. Run Experiments and Development are work in progress.
parent c7ce67d9
No related branches found
No related tags found
1 merge request!54Release 2.0.0
# 3.2. Development Commands, Tricks, and Hints (WORK IN PROGRESS)
## 3.2.1. Report the log of a specific TFS controller component
A number of scripts are pre-created to facilitate the inspection of the component logs. For instance, to dump the log
of the Context component, run the following command. You can avoid sourcing `my_deploy.sh` if it has been already done.
__Note__: these commands should be run on the VM, not in the Docker-based runtime environment.
```bash
source my_deploy.sh
./scripts/show_logs_context.sh
```
## Items to be addressed:
- pytest flags: --log-level=INFO --verbose -o log_cli=true -o log_file=my_log_file.log -o log_file_level=DEBUG
- code coverage
- nginx ingress grpc to enable access from external sources
# interesting Docker commands
Build by hand:
docker build -t "context:lgr-test" -f ./src/context/Dockerfile .
Run by hand:
docker run --rm --name lgr-test -it --env "DB_BACKEND=inmemory" --entrypoint /bin/bash context:lgr-test
# ETSI TeraFlowSDN Controller Tutorials
## Abstract
This document provides a walkthrough on how to prepare your environment for executing and contributing to the
[ETSI TeraFlowSDN OSG](https://tfs.etsi.org/).
This walkthrough makes some reasonable assumptions to simplify the deployment of the ETSI TeraFlowSDN controller, the
execution of experiments and tests, and development of new contributions. In particular, we assume:
- [VirtualBox](https://www.virtualbox.org/) version 6.1.34 r150636
- [VSCode](https://code.visualstudio.com/) with the "Remote SSH" extension
- VM software:
- [Ubuntu Server 20.04 LTS](https://releases.ubuntu.com/20.04/)
- [MicroK8s](https://microk8s.io/)
## Contact
If your environment does not fit with the proposed assumptions and you experience some trouble preparing it to work
with the ETSI TeraFlowSDN controller, contact the ETSI TeraFlowSDN OSG team through
[Slack](https://join.slack.com/t/teraflowsdn/shared_invite/zt-18gc5jvkh-1_DEZHFhxeuOqzJZPq~U~A)
## Table of Content:
- [1. Deployment Guide](./1-0-deployment.md)
- [1.1. Create VM for the TeraFlowSDN controller](./1-1-create-vm.md)
- [1.2. Install MicroK8s Kubernetes platform](./1-2-install-microk8s.md)
- [1.3. Deploy TeraFlowSDN over MicroK8s](./1-3-deploy-tfs.md)
- [1.4. Access TeraFlowSDN WebUI and Grafana Dashboards](./1-4-access-webui.md)
- [2. Run Experiments Guide (WORK IN PROGRESS)](./2-0-run-experiments.md)
- [2.1. Configure the Python environment](./2-1-python-environment.md)
- [2.2. Execute OFC'22 Experiment (WORK IN PROGRESS)](./2-2-ofc22.md)
- [2.3. Execute OECC/PSC'22 Experiment (WORK IN PROGRESS)](./2-3-oeccpsc22.md)
- [3. Development Guide (WORK IN PROGRESS)](./3-0-development.md)
- [3.1. Configure VSCode and Connect to the VM](./3-1-configure-vscode.md)
- [3.2. Development Commands, Tricks, and Hints (WORK IN PROGRESS)](./3-2-develop-cth.md)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment