allow configuring the docker logging driver

Registered by Ricardo Rocha

By default the docker daemon uses the json-file logging driver, which returns logs in json format and is compatible with the command 'docker logs'. This default can be overwritten by users when launching containers.

In some cases users need to push the logs into a central log collection service on their infrastructure. Given docker already has support for a series of logging drivers [1], we should add support to customize this configuration via cluster templates. Users will then be able to customize this themselves using templates, have multiple templates for different configs or during cluster creation.

Should look something like this:

$ magnum cluster-template-update --docker-logging-driver gelf --docker-logging-opt gelf-address=udp://192.168.0.42:12201

$ magnum cluster-create --docker-logging-driver gelf --docker-logging-opt gelf-address=udp://192.168.0.42:12201

We could also rely on labels for a start to speed up implementation.

[1] https://docs.docker.com/engine/admin/logging/overview/

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Ricardo Rocha
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.