Skip to content

Commit

Permalink
Merge pull request kubernetes-retired#1033 from HotelsDotCom/rkt-cont…
Browse files Browse the repository at this point in the history
…ainer-fix

Add rkt container cleanup to journald-cloudwatch-logs service
  • Loading branch information
mumoshu authored Nov 27, 2017
2 parents 382012b + 1d0db14 commit 3e402be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/controlplane/config/templates/cloud-config-controller
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ coreos:
--mount volume=journal,target=/var/log/journal \
--volume machine-id,kind=host,source=/etc/machine-id,readOnly=true \
--mount volume=machine-id,target=/etc/machine-id \
--uuid-file-save=/var/journald-cloudwatch-logs/journald-cloudwatch-logs.uuid \
{{ .JournaldCloudWatchLogsImage.RktRepo }} -- {{.ClusterName}}
ExecStopPost=/usr/bin/rkt rm --uuid-file=/var/journald-cloudwatch-logs/journald-cloudwatch-logs.uuid
Restart=always
RestartSec=60s

Expand Down
2 changes: 2 additions & 0 deletions core/controlplane/config/templates/cloud-config-etcd
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ coreos:
--mount volume=journal,target=/var/log/journal \
--volume machine-id,kind=host,source=/etc/machine-id,readOnly=true \
--mount volume=machine-id,target=/etc/machine-id \
--uuid-file-save=/var/journald-cloudwatch-logs/journald-cloudwatch-logs.uuid \
{{ .JournaldCloudWatchLogsImage.RktRepo }} -- {{.ClusterName}}
ExecStopPost=/usr/bin/rkt rm --uuid-file=/var/journald-cloudwatch-logs/journald-cloudwatch-logs.uuid
Restart=always
RestartSec=60s

Expand Down
2 changes: 2 additions & 0 deletions core/controlplane/config/templates/cloud-config-worker
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ coreos:
--mount volume=journal,target=/var/log/journal \
--volume machine-id,kind=host,source=/etc/machine-id,readOnly=true \
--mount volume=machine-id,target=/etc/machine-id \
--uuid-file-save=/var/journald-cloudwatch-logs/journald-cloudwatch-logs.uuid \
{{ .JournaldCloudWatchLogsImage.RktRepo }} -- {{.ClusterName}}
ExecStopPost=/usr/bin/rkt rm --uuid-file=/var/journald-cloudwatch-logs/journald-cloudwatch-logs.uuid
Restart=always
RestartSec=60s

Expand Down

0 comments on commit 3e402be

Please sign in to comment.