helm repo add influxdata https://helm.influxdata.com/
helm repo update
----
kubectl create namespace influxdb
----
influxdb-values.yaml:
image:
  repository: influxdb
  tag: 2.7

persistence:
  enabled: true
  size: 20Gi

resources:
  requests:
    cpu: 200m
    memory: 256Mi
  limits:
    cpu: 1
    memory: 1Gi

service:
  type: ClusterIP
  port: 8086

adminUser:
  organization: sts-lab
  bucket: demo-bucket
  user: admin
  password: KAYQE1QA7uwUZ8uI5
  token: my-super-token


----  
helm install influxdb influxdata/influxdb2  --namespace influxdb  -f influxdb-values.yaml
  
 --- 
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: influxdb
spec:
  hostnames:
  - poc2.italiadatacenter.com
  parentRefs:
  - name: main-gateway
    namespace: nginx-gateway
  rules:
  - matches:
    - path:
        type: PathPrefix
        value: /
    backendRefs:
    - name: influxdb-influxdb2
      port: 8086

  
  
  
******************  TEST ****************************
  
echo $(kubectl get secret influxdb-influxdb2-auth -o "jsonpath={.data['admin-password']}" --namespace influxdb | base64 --decode)
  
  logon UI
  http://localhost:8086
  
  user: admin
  password: KAYQE1QA7uwUZ8uI5
  
  TEST API:
  curl http://localhost:8086/health
  
  
  link svc:
  influxdb-influxdb2.influxdb.svc.cluster.local