X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fcharm%2Fng-ui%2FREADME.md;h=9b77b5d5dc07e994087e1cf2f68c4ea7f66a207d;hb=95ba7e1641316616ce5a9442d485753456ff9525;hp=19d82279bdebc121ea846b7a28661f41a286852f;hpb=889e8bb27900b540ef7ff08e892e3e80731069fb;p=osm%2Fdevops.git diff --git a/installers/charm/ng-ui/README.md b/installers/charm/ng-ui/README.md index 19d82279..9b77b5d5 100644 --- a/installers/charm/ng-ui/README.md +++ b/installers/charm/ng-ui/README.md @@ -18,32 +18,30 @@ ```bash juju deploy . # cs:~charmed-osm/ng-ui --channel edge -juju relate ng-ui nbi-k8s +juju relate ng-ui nbi ``` -## How to scale +## How to expose the NG-UI through ingress ```bash - juju scale-application ng-ui 3 +juju config ng-ui site_url=ng..xip.io +juju expose ng-ui ``` -## How to use certificates +> Note: The is the IP of the K8s worker node. With microk8s, you can see the IP with `microk8s.config`. It is usually the IP of your host machine. -Generate your own certificate if you don't have one already: +## How to scale ```bash -sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ssl_certificate.key -out ssl_certificate.crt -sudo chown $USER:$USER ssl_certificate.key -juju attach-resource ng-ui ssl_certificate=ssl_certificate.crt -juju attach-resource ng-ui ssl_certificate_key=ssl_certificate.key -juju config ng-ui port 443 + juju scale-application ng-ui 3 ``` + ## Config Examples ```bash juju config ng-ui image=opensourcemano/ng-ui: juju config ng-ui port=80 juju config server_name= -juju config client_max_body_size=25M +juju config max_file_size=25 ```