Change metrics port to 8080
Use same port as source/helm/notification controllers
This commit is contained in:
		
							parent
							
								
									75879d11f9
								
							
						
					
					
						commit
						e3d437c3f7
					
				| 
						 | 
				
			
			@ -15,7 +15,7 @@ spec:
 | 
			
		|||
        app: kustomize-controller
 | 
			
		||||
      annotations:
 | 
			
		||||
        prometheus.io/scrape: "true"
 | 
			
		||||
        prometheus.io/port: "8282"
 | 
			
		||||
        prometheus.io/port: "8080"
 | 
			
		||||
    spec:
 | 
			
		||||
      terminationGracePeriodSeconds: 10
 | 
			
		||||
      containers:
 | 
			
		||||
| 
						 | 
				
			
			@ -26,7 +26,7 @@ spec:
 | 
			
		|||
          allowPrivilegeEscalation: false
 | 
			
		||||
          readOnlyRootFilesystem: true
 | 
			
		||||
        ports:
 | 
			
		||||
          - containerPort: 8282
 | 
			
		||||
          - containerPort: 8080
 | 
			
		||||
            name: http-prom
 | 
			
		||||
        env:
 | 
			
		||||
          - name: RUNTIME_NAMESPACE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								main.go
								
								
								
								
							
							
						
						
									
										2
									
								
								main.go
								
								
								
								
							| 
						 | 
				
			
			@ -61,7 +61,7 @@ func main() {
 | 
			
		|||
		logJSON              bool
 | 
			
		||||
	)
 | 
			
		||||
 | 
			
		||||
	flag.StringVar(&metricsAddr, "metrics-addr", ":8282", "The address the metric endpoint binds to.")
 | 
			
		||||
	flag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.")
 | 
			
		||||
	flag.StringVar(&eventsAddr, "events-addr", "", "The address of the events receiver.")
 | 
			
		||||
	flag.BoolVar(&enableLeaderElection, "enable-leader-election", false,
 | 
			
		||||
		"Enable leader election for controller manager. "+
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue