Add addon-manager, dashboard, and storage-provisioner to minikube logs
parent
2a3285823d
commit
ec135dc4da
|
@ -24,9 +24,6 @@ import (
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
// KubernetesContainerPrefix is the prefix of each kubernetes container
|
|
||||||
const KubernetesContainerPrefix = "k8s_"
|
|
||||||
|
|
||||||
// Docker contains Docker runtime state
|
// Docker contains Docker runtime state
|
||||||
type Docker struct {
|
type Docker struct {
|
||||||
Socket string
|
Socket string
|
||||||
|
@ -99,7 +96,6 @@ func (r *Docker) KubeletOptions() map[string]string {
|
||||||
|
|
||||||
// ListContainers returns a list of containers
|
// ListContainers returns a list of containers
|
||||||
func (r *Docker) ListContainers(filter string) ([]string, error) {
|
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))
|
content, err := r.Runner.CombinedOutput(fmt.Sprintf(`docker ps -a --filter="name=%s" --format="{{.ID}}"`, filter))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
@ -41,6 +41,9 @@ var importantPods = []string{
|
||||||
"coredns",
|
"coredns",
|
||||||
"kube-scheduler",
|
"kube-scheduler",
|
||||||
"kube-proxy",
|
"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
|
// lookbackwardsCount is how far back to look in a log for problems. This should be large enough to
|
||||||
|
|
Loading…
Reference in New Issue