Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
ab12b23e
Commit
ab12b23e
authored
8 years ago
by
Antoine Legrand
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1173 from bradbeam/dockerlogs
Setting defaults for docker log rotation
parents
797bdbd9
5d3414a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/kargo-defaults/defaults/main.yaml
+5
-1
5 additions, 1 deletion
roles/kargo-defaults/defaults/main.yaml
with
5 additions
and
1 deletion
roles/kargo-defaults/defaults/main.yaml
+
5
−
1
View file @
ab12b23e
...
...
@@ -97,11 +97,15 @@ kube_apiserver_insecure_port: 8080 # (http)
# Path used to store Docker data
docker_daemon_graph
:
"
/var/lib/docker"
# Docker log options
# Rotate container stderr/stdout logs at 50m and keep last 5
docker_log_opts
:
"
--log-opt
max-size=50m
--log-opt
max-file=5"
## A string of extra options to pass to the docker daemon.
## This string should be exactly as you wish it to appear.
## An obvious use case is allowing insecure-registry access
## to self hosted registries like so:
docker_options
:
"
--insecure-registry={{
kube_service_addresses
}}
--graph={{
docker_daemon_graph
}}"
docker_options
:
"
--insecure-registry={{
kube_service_addresses
}}
--graph={{
docker_daemon_graph
}}
{{
docker_log_opts
}}"
# Settings for containerized control plane (etcd/kubelet/secrets)
etcd_deployment_type
:
docker
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment