flagsmith-charts icon indicating copy to clipboard operation
flagsmith-charts copied to clipboard

chart forces svc.cluster.local in service names

Open deefdragon opened this issue 1 year ago • 3 comments

I have deployed my cluster with a custom domain. This results in svc.example.com as my root for all of my services, meaning that the current default deployed cluster, which uses svc.cluster.local can not boot the api pods.

deefdragon avatar Nov 15 '23 04:11 deefdragon

Can you provide more details as well as your values file?

dabeeeenster avatar Nov 15 '23 08:11 dabeeeenster

"api":
  "livenessProbe":
    "timeoutSeconds": 4
"ingress":
  "api":
    "enabled": true
    "hosts":
    - "host": "flags.example.com"
      "paths":
      - "/"
  "frontend":
    "enabled": true
    "hosts":
    - "flagsmith.example.com"

The issue is that the env value in the deployment generated for the influx connection, INFLUXDB_URL has a hardcoded domain ending. Its obviously not the only var to have this problem, just the one I encountered first.

This should be solvable by adding a config option to the values to override svc.cluster.local with some other dns value. I am unsure if this way that other charts do this however, and what the normal method for dealing with this situation is. I suspect bitnami has had to deal with this exact issue previously, so Id reference them.

deefdragon avatar Nov 15 '23 08:11 deefdragon

OK will take a look cc @khvn26 !

dabeeeenster avatar Nov 15 '23 09:11 dabeeeenster