Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Bug influxdb 2.x Karbon K8s initScripts #628

Open
robbyq92 opened this issue Aug 12, 2022 · 0 comments
Open

Possible Bug influxdb 2.x Karbon K8s initScripts #628

robbyq92 opened this issue Aug 12, 2022 · 0 comments
Labels

Comments

@robbyq92
Copy link

Hi
i think i have one bug or same in Nutanix Karbon K8s.

i run one helm chart influxdata/influxdb2

i go to put true the .sh:

initScripts:
enabled: true
scripts:
init_dbs.sh: |-
#!/bin/bash
set -e
influx bucket create
--name my_db
--description my_db
--token ${DOCKER_INFLUXDB_INIT_ADMIN_TOKEN}
--org ${DOCKER_INFLUXDB_INIT_ORG}
my_db=influx bucket list | grep " my_db" | awk '{printf $1}' ; echo $ my_db; influx v1 dbrp create --db my_db --rp autogen --default -t ${DOCKER_INFLUXDB_INIT_ADMIN_TOKEN} --bucket-id $ my_db;
my_db=influx bucket list | grep "my_db" | awk '{printf $1}' ;

influx v1 auth create \
  --username user \
  --password pass \
  --org orga \
  --write-bucket $my_db \

So i put false in enable work, if i put true i have this problem in pod:

022-08-12T15:18:16. info Executing user-provided scripts {"system": "docker", "script_dir": "/docker-entrypoint-initdb.d"} /docker-entrypoint-initdb.d/init.sh: Error: failed to read template(s) from "https://raw.githubusercontent.com/influxdata/community-templates/master/influxdb2_operational_monitoring/influxdb2_operational_monitoring.yml": Get "https://raw.githubusercontent.com/influxdata/community-templates/master/influxdb2_operational_monitoring/influxdb2_operational_monitoring.yml": dial tcp 1xxxxxxx:443: connect: network is unreachable run-parts: /docker-entrypoint-initdb.d/init.sh exited with return code 1 2022-08-12T15:18:16. warn cleaning bolt and engine files to prevent conflicts on retry {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt", "engine_path": "/var/lib/influxdb2"}

but if i run same chart/influxdata/influxdb2 in aks work fine... i dint modify anithing.

Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.8", GitCommit:"4a3b558c52eb6995b3c5c1db5e54111bd0645a64", GitTreeState:"clean", BuildDate:"2021-12-15T14:52:11Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants