Add addon-manager, dashboard, and storage-provisioner to minikube logs

pull/3982/head
Thomas Stromberg 2019-03-26 10:43:03 -07:00
parent 2a3285823d
commit ec135dc4da
2 changed files with 3 additions and 4 deletions

View File

@ -24,9 +24,6 @@ import (
"github.com/golang/glog"
)
// KubernetesContainerPrefix is the prefix of each kubernetes container
const KubernetesContainerPrefix = "k8s_"
// Docker contains Docker runtime state
type Docker struct {
Socket string
@ -99,7 +96,6 @@ func (r *Docker) KubeletOptions() map[string]string {
// ListContainers returns a list of containers
func (r *Docker) ListContainers(filter string) ([]string, error) {
filter = KubernetesContainerPrefix + filter
content, err := r.Runner.CombinedOutput(fmt.Sprintf(`docker ps -a --filter="name=%s" --format="{{.ID}}"`, filter))
if err != nil {
return nil, err

View File

@ -41,6 +41,9 @@ var importantPods = []string{
"coredns",
"kube-scheduler",
"kube-proxy",
"kube-addon-manager",
"kubernetes-dashboard",
"storage-provisioner",
}
// lookbackwardsCount is how far back to look in a log for problems. This should be large enough to