Influxdb version 2 getting started
Jump to navigation
Jump to search
Something like this
helm repo add influxdata https://helm.influxdata.com/ helm search repo influxdata helm show values influxdata/influxdb2 > values.yaml edit values kubectl create namespace influxdb helm upgrade --install release1 influxdata/influxdb -f helm/influxdb/values.yaml --namespace influxdb helm -n influxdb uninstall v1 v1 helm upgrade --install version1 influxdata/influxdb -f helm/influxdb/v1/values.yaml --namespace influxdb helm upgrade version1 influxdata/influxdb -f helm/influxdb/v1/values.yaml --namespace influxdb helm -n influxdb uninstall version1 influx user create -n foo -p XXX -o foo -token XXX influx user list -token XXX influx config set -n $CFG_NAME -u $HOST_URL -t $TOKEN -o $ORG_NAME influx user create -n foo -o foo -p influx org members add --member 09756efbacf92000 --name insights
#!/bin/bash set -eu member=myuser org=loadtest createOrg(){ influx org create -n $org || true } createUser(){ member=$1 org=$2 password=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32 ; echo '') influx user create -n $member -o $org -p "$password" || true echo Member $member has been added to org $org with password $password } createConfig(){ influx config create \ -n $org \ -u ${INFLUXDB_URL} \ -t $INFLUXDB_ADMINUSER_API_TOKEN \ -a } createToken(){ token=$(influx auth create \ --org $org \ --all-access) } # createToken createUser loadtest loadtest