mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 22:46:25 +00:00
Fix container log location for ros
This commit is contained in:
committed by
Alena Prokharchyk
parent
a67b5e1d84
commit
39e846442b
@@ -362,8 +362,8 @@ func (c *Cluster) BuildKubeletProcess(host *hosts.Host, prefixPath string) v3.Pr
|
||||
"/run:/run:rprivate",
|
||||
fmt.Sprintf("%s:/etc/ceph", path.Join(prefixPath, "/etc/ceph")),
|
||||
"/dev:/host/dev:rprivate",
|
||||
fmt.Sprintf("%s:/var/log/containers:z", path.Join(prefixPath, "/var/log/containers")),
|
||||
fmt.Sprintf("%s:/var/log/pods:z", path.Join(prefixPath, "/var/log/pods")),
|
||||
"/var/log/containers:/var/log/containers:z",
|
||||
"/var/log/pods:/var/log/pods:z",
|
||||
"/usr:/host/usr:ro",
|
||||
"/etc:/host/etc:ro",
|
||||
}
|
||||
|
@@ -3,7 +3,6 @@ package services
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"path"
|
||||
|
||||
"github.com/docker/docker/api/types/container"
|
||||
"github.com/rancher/rke/docker"
|
||||
@@ -119,7 +118,7 @@ func createLogLink(ctx context.Context, host *hosts.Host, containerName, plane,
|
||||
}
|
||||
hostCfg := &container.HostConfig{
|
||||
Binds: []string{
|
||||
fmt.Sprintf("%s:/var/lib", path.Join(host.PrefixPath, "/var/lib")),
|
||||
"/var/lib:/var/lib",
|
||||
},
|
||||
Privileged: true,
|
||||
}
|
||||
|
Reference in New Issue
Block a user