DecipherNow / terraform-aws-openshift

Creates OpenShift Container Platform(OCP) or OKD cluster
https://registry.terraform.io/modules/literalice/openshift/aws
1 stars 0 forks source link

Update the docker options #11

Open chrisbsmith opened 5 years ago

chrisbsmith commented 5 years ago

Docker options need to be configurable via the OpenShift inventory file. Currently, the default options are set, but additional options are needed for log rotation, etc. This should help with the pod evictions seen in Dev and Prod

OPTIONS=' --selinux-enabled       --signature-verification=False'

According to this document, we need to add the openshift_docker_options to our inventory file. We should consider adding the following log rotation options to it

--log-driver=json-file --log-opt  max-size=1M --log-opt max-file=3

to provide a final options of

openshift_docker_options==' --log-driver=json-file --log-opt  max-size=10M --log-opt max-file=3'
chrisbsmith commented 5 years ago

https://docs.okd.io/3.11/install_config/aggregate_logging.html#fluentd-update-source