mirror of https://github.com/k3s-io/k3s
Change cAdvisor port to 4194.
This is so it doesn't conflict with the default registry address of 5000.pull/6/head
parent
28d42a79a4
commit
4de48613e7
|
@ -6,7 +6,7 @@ containers:
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
hostPort: 5000
|
hostPort: 4194
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: varrun
|
- name: varrun
|
||||||
mountPath: /var/run
|
mountPath: /var/run
|
||||||
|
|
|
@ -105,7 +105,7 @@ func main() {
|
||||||
glog.Fatal("Couldn't connect to docker.")
|
glog.Fatal("Couldn't connect to docker.")
|
||||||
}
|
}
|
||||||
|
|
||||||
cadvisorClient, err := cadvisor.NewClient("http://127.0.0.1:5000")
|
cadvisorClient, err := cadvisor.NewClient("http://127.0.0.1:4194")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Error on creating cadvisor client: %v", err)
|
glog.Errorf("Error on creating cadvisor client: %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue