Skip to content

Commit

Permalink
Merge pull request #5638 from tstromberg/kubelet-logs
Browse files Browse the repository at this point in the history
Use sudo to get kubelet logs: required by permissions on v1.5 ISO
  • Loading branch information
tstromberg authored Oct 16, 2019
2 parents 5e5c042 + 3f6d9bb commit 37a69ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/minikube/bootstrapper/kubeadm/kubeadm.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (k *Bootstrapper) GetAPIServerStatus(ip net.IP, apiserverPort int) (string,
// LogCommands returns a map of log type to a command which will display that log.
func (k *Bootstrapper) LogCommands(o bootstrapper.LogOptions) map[string]string {
var kubelet strings.Builder
kubelet.WriteString("journalctl -u kubelet")
kubelet.WriteString("sudo journalctl -u kubelet")
if o.Lines > 0 {
kubelet.WriteString(fmt.Sprintf(" -n %d", o.Lines))
}
Expand Down

0 comments on commit 37a69ee

Please sign in to comment.