Lorenz Brun | 842536b | 2021-01-26 13:54:57 +0100 | [diff] [blame] | 1 | Copyright 2020 The Monogon Project Authors. |
| 2 | |
| 3 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | you may not use this file except in compliance with the License. |
| 5 | You may obtain a copy of the License at |
| 6 | |
| 7 | http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | |
| 9 | Unless required by applicable law or agreed to in writing, software |
| 10 | distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | See the License for the specific language governing permissions and |
| 13 | limitations under the License. |
| 14 | |
| 15 | |
| 16 | From 9b6bdecfd07d026eae2c1b62cc8b7b06d14292ee Mon Sep 17 00:00:00 2001 |
| 17 | From: Lorenz Brun <lorenz@brun.one> |
| 18 | Date: Mon, 25 Jan 2021 17:20:51 +0100 |
| 19 | Subject: [PATCH] Change hardcoded pod logs root dir |
| 20 | |
| 21 | --- |
| 22 | pkg/kubelet/kuberuntime/kuberuntime_manager.go | 2 +- |
| 23 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 24 | |
| 25 | diff --git a/pkg/kubelet/kuberuntime/kuberuntime_manager.go b/pkg/kubelet/kuberuntime/kuberuntime_manager.go |
| 26 | index eebba49bbbe..c24b3133bcc 100644 |
| 27 | --- a/pkg/kubelet/kuberuntime/kuberuntime_manager.go |
| 28 | +++ b/pkg/kubelet/kuberuntime/kuberuntime_manager.go |
| 29 | @@ -57,7 +57,7 @@ const ( |
| 30 | // The api version of kubelet runtime api |
| 31 | kubeRuntimeAPIVersion = "0.1.0" |
| 32 | // The root directory for pod logs |
| 33 | - podLogsRootDirectory = "/var/log/pods" |
| 34 | + podLogsRootDirectory = "/data/kubelet/logs" |
| 35 | // A minimal shutdown window for avoiding unnecessary SIGKILLs |
| 36 | minimumGracePeriodInSeconds = 2 |
| 37 | |
| 38 | -- |
| 39 | 2.25.1 |
| 40 | |