The same chart can be used to deploy different flavors of ONOS, depending on the configuration applied. These configurations can be found in the helm-charts/configs
directory.
helm install -n onos -f configs/onos.yaml onos
Nodeports exposed
helm install -n onos onos
Nodeports exposed: None
onos-log-agent
Sidecar containerBy default, the onos helm chart will run a sidecar container to ship logs using Filebeat to Kafka for aggregation of logs with the rest of the CORD platform.
This container is named onos-log-agent
, and because 2 containers are running in the pod when you run kubectl
you may need to use the -c
option to specify which container you want to interact with. For example, to view the ONOS logs via kubectl, you would use:
kubectl logs onos-7bbc9555bf-2754p -c onos
and to view the filebeat logs:
kubectl logs onos-7bbc9555bf-2754p -c onos-log-agent
If this the sidecar isn't required, it can be disabled when installing the chart by passing --set log_agent.enabled=false
or by using a values file.
An option can be added either to the default ONOS values.yaml file, or overritten through an external configuration file. Here is an example:
application_logs: | log4j.logger.org.opencord.olt = DEBUG log4j.logger.org.opencord.kafka = DEBUG log4j.logger.org.opencord.sadis = DEBUG