jluque0101 opened a new issue, #160:
URL: https://github.com/apache/incubator-devlake-helm-chart/issues/160

   Hi
   
   When using this chart, version: `0.18.0-beta1` and values from below, I am 
facing a problem with the service for Grafana and the ingress definition.
   
   Values: 
   ```yaml
   mysql:
     useExternal: true
     externalServer: my-rds-endpoint
     externalPort: my-rds-port
   
   lake:
     encryptionSecret:
       secret: my-secret
   
   option:
     database: "mysql"
     connectionSecretName: "mysecret"
     autoCreateSecret: false
   
   grafana:
     envFromSecrets:
       - name: "mysecret"
   
   ingress:
     enabled: true
     enableHttps: true
     useDefaultNginx: false
     className: alb
     hostname: hostname.com
     annotations:
       some_custom_annotations
   ```
   
   Grafana service created (`devlake-grafana`) contains the following port 
definition
   ```yaml
   │   ports:                                                                   
                                                             
   │   - name: service                                                          
                                                             
   │     port: 80                                                               
                                                             
   │     protocol: TCP                                                          
                                                             
   │     targetPort: 3000  
   ```
   
   Ingress created contains the following Grafana definition
   ```yaml
   │   - host: hostname.com                                                     
                                                                                
                                                                                
                     
   │     http:                                                                  
                                                                                
                                                                                
                                              
   │       paths:                                                               
                                                                                
                                                                                
                                              
   │       - backend:                                                           
                                                                                
                                                                                
                                              
   │           service:                                                         
                                                                                
                                                                                
                                              
   │             name: devlake-grafana                                          
                                                                                
                                                                                
                                              
   │             port:                                                          
                                                                                
                                                                                
                                              
   │               number: 3000                                                 
                                                                                
                                                                                
                                         
   │         path: /grafana                                                     
                                                                                
                                                                                
                                              
   │         pathType: Prefix   
   ```
   In k8s events I can see:
   ```text
   │ Kind:                Event                                                 
                                                              │
   │ Last Timestamp:      2023-07-18T12:32:17Z                                  
                                                              │
   │ Message:             Failed build model due to ingress: devlake/devlake: 
unable to find port 3000 on service devlake/devlake-grafana
   ```
   
   Note that `number: 3000`  seems to be wrong, as soon as I  edit my ingress 
resource setting `number: 80` ingress is able to move forward and gets properly 
provisioned. 
   I have been looking into values but I can't find a way to parametrize this 
value, it seems to be harcoded to me 
https://github.com/apache/incubator-devlake-helm-chart/blob/81f3833e73787dd78ef0fef3fa44378d14dcf968/charts/devlake/templates/ingresses.yaml#L72C31-L72C31
   
   Could you please guide me on how to set this value from  `values.yaml` file 
so I don't need to manually update said value (if that's possible)? 
   
   Thanks!
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to