mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
e2e_node: lower the log verbosity level
The current level is so high that the logs are almost unreadable.
This commit is contained in:
parent
3a29aa7941
commit
a6b91a41fa
@ -52,6 +52,11 @@ type logFileData struct {
|
|||||||
journalctlCommand []string
|
journalctlCommand []string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
// This is consistent with the level used in a cluster e2e test.
|
||||||
|
LOG_VERBOSITY_LEVEL = "4"
|
||||||
|
)
|
||||||
|
|
||||||
func newE2eService(nodeName string) *e2eService {
|
func newE2eService(nodeName string) *e2eService {
|
||||||
// Special log files that need to be collected for additional debugging.
|
// Special log files that need to be collected for additional debugging.
|
||||||
var logFiles = map[string]logFileData{
|
var logFiles = map[string]logFileData{
|
||||||
@ -194,7 +199,7 @@ func (es *e2eService) startApiServer() (*killCmd, error) {
|
|||||||
"--service-cluster-ip-range", "10.0.0.1/24",
|
"--service-cluster-ip-range", "10.0.0.1/24",
|
||||||
"--kubelet-port", "10250",
|
"--kubelet-port", "10250",
|
||||||
"--allow-privileged", "true",
|
"--allow-privileged", "true",
|
||||||
"--v", "8", "--logtostderr",
|
"--v", LOG_VERBOSITY_LEVEL, "--logtostderr",
|
||||||
)
|
)
|
||||||
hcc := newHealthCheckCommand(
|
hcc := newHealthCheckCommand(
|
||||||
"http://127.0.0.1:8080/healthz",
|
"http://127.0.0.1:8080/healthz",
|
||||||
@ -235,7 +240,7 @@ func (es *e2eService) startKubeletServer() (*killCmd, error) {
|
|||||||
"--serialize-image-pulls", "false",
|
"--serialize-image-pulls", "false",
|
||||||
"--config", es.kubeletStaticPodDir,
|
"--config", es.kubeletStaticPodDir,
|
||||||
"--file-check-frequency", "10s", // Check file frequently so tests won't wait too long
|
"--file-check-frequency", "10s", // Check file frequently so tests won't wait too long
|
||||||
"--v", "8", "--logtostderr",
|
"--v", LOG_VERBOSITY_LEVEL, "--logtostderr",
|
||||||
)
|
)
|
||||||
cmd := exec.Command("sudo", cmdArgs...)
|
cmd := exec.Command("sudo", cmdArgs...)
|
||||||
hcc := newHealthCheckCommand(
|
hcc := newHealthCheckCommand(
|
||||||
|
Loading…
Reference in New Issue
Block a user