mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #724 from vmarmol/change-port
Change cAdvisor port to 4194.
This commit is contained in:
commit
b88c2a2109
@ -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
Block a user