mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Change cAdvisor port to 4194.
This is so it doesn't conflict with the default registry address of 5000.
This commit is contained in:
		@@ -6,7 +6,7 @@ containers:
 | 
			
		||||
    ports:
 | 
			
		||||
      - name: http
 | 
			
		||||
        containerPort: 8080
 | 
			
		||||
        hostPort: 5000
 | 
			
		||||
        hostPort: 4194
 | 
			
		||||
    volumeMounts:
 | 
			
		||||
      - name: varrun
 | 
			
		||||
        mountPath: /var/run
 | 
			
		||||
 
 | 
			
		||||
@@ -105,7 +105,7 @@ func main() {
 | 
			
		||||
		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 {
 | 
			
		||||
		glog.Errorf("Error on creating cadvisor client: %v", err)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user