Closed ondrej-ivanko closed 2 years ago
I spent nearly 3 days trying to solve this, I have the exact same issue. Did you find a solution? Thank you.
I know this was posted ages ago but here is another issue describing how to connect Kapacitor with an InfluxDB2-instance. It is not very straight forward if I may say. I have not tried it myself but see a problem in the scenario you later want to do kapacitor-tasks on a new database. Then you will need to delete and recreate the user with new permissions, as I understand the influxdb v1-user system.
Steps to reproduce: List the minimal actions needed to reproduce the behavior.
Expected behavior: Kapacitor should connect to InfluxDBv2 instance and be able to read/write into bucket
Actual behavior: Kapacitator connecting to InfluxDBv2 instance returns 401 unauthorized error
Environment info: Linux 5.8.0-38-generic x86_64 InfluxDB 2.0.3 (git: fe04d346df) build_date: 2020-12-15T01:00:16Z Kapacitor OSS version 1.5.2 (git: HEAD 3086452d00830e01d932838d8c6d1df818648ad3)
Config: Relevant part of ConfigMap. File is mounted on path /etc/kapacitor/kapacitor.conf
InfluxDB2 instance current config file mounted in /root/config.toml
Logs: Kubernetes logs of Kapacitor pod:
Bucket mapping:
org list
bucket list
Im at loss, what else should be done to authorize access to Influx instance. I also used different tokens with auths specifically for org and rp related to bucket, which I want to write to. I tried base64 decoded and encoded ones. Did not work.
I do not have limited access to InfluxDB2 instance via RBAC, I set up those instances myself.
Thank you for help.