12-05-2017 02:42 AM - edited 03-01-2019 04:03 AM
Hi Team, I'm looking at guidelines or any documentation to have NSO running into a Docker, especially how to manage CDB with respect to the underneath host filesystem.
Thanks,
Marco.
Solved! Go to Solution.
01-09-2018 11:46 AM
I've started to look into how to run NSO in Docker/K8s and there are a few things to consider.
Run NSO in the foreground to get logs to stdout
Mount either the entire project as a persistent volume or just the ncs-cdb and state directories.
You could argue that the logs directory should be persistent, OTOH if you capture logs from stdout already you may no need that.
If you use k8s, it's good practice to specify limits and requests as well as specifying a readinessProbe and a livenessProbe.
01-05-2018 12:57 PM
I don't think there is any official NSO documentation regarding Docker.
-Dan
01-09-2018 11:46 AM
I've started to look into how to run NSO in Docker/K8s and there are a few things to consider.
Run NSO in the foreground to get logs to stdout
Mount either the entire project as a persistent volume or just the ncs-cdb and state directories.
You could argue that the logs directory should be persistent, OTOH if you capture logs from stdout already you may no need that.
If you use k8s, it's good practice to specify limits and requests as well as specifying a readinessProbe and a livenessProbe.
01-30-2018 05:55 AM
I've been running NSO in docker for some time now but have recently (in version 4.5.3) run into an issue where including cisco-ios package causes package loading to hang indefinitely. show packages package oper-status shows the java vm uninitialized. Have you run into this issue?
01-30-2018 08:12 AM
No, we haven’t, we are not using cisco-ios package, we are developing a generic ned based on corba.
07-26-2018 05:40 AM
07-29-2018 09:43 AM
07-30-2018 09:27 AM
We have been running NCS inside Docker for the last two years, externally mounting volume for directories under /var/opt/ncs except the packages dir.
The hang CLI issue is related to a bug in 4.5. The work around is to add a sleep after the echo command:
bash -c "(echo -e 'your cli command here'; sleep 2) | /opt/ncs/current/bin/ncs_cli -u admin ..."
07-30-2018 11:36 PM
Moving files directly into packages-in-use is not recommended. But you will have to have either an external mount with the files or make sure they are copied into the container in some other way.
Copying the packages into a local packages directory has worked well for me.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide