Install InfluxDB #
1helm repo add influxdata https://helm.influxdata.com/
2helm repo update
3helm install influxdb influxdata/influxdbInfluxDB - Helm 설치 참고
Customize Default Configuration #
values.yaml 수정
최상위 values.yaml을 수정하면 하위 폴더 values.yaml을 override 한다. {: .prompt-info }
Setting config #
1...✂...
2
3config:
4 reporting_disabled: false
5 rpc:
6 bind-address: ":8088"
7 meta: {}
8 data: {}
9 coordinator: {}
10 retention: {}
11 shard_precreation: {}
12 monitor: {}
13 http:
14 enabled: true
15 bind-address: ":8086"
16 flux-enabled: true
17 logging: {}
18 subscriber: {}
19 graphite: {}
20 collectd: {}
21 opentsdb: {}
22 udp: {}
23 continuous_queries: {}
24 tls: {}
25
26...✂...Setting create database #
1...✂...
2
3initScripts:
4 enabled: false
5 scripts:
6 init.iql: |+
7 CREATE DATABASE "telegraf" WITH DURATION 30d REPLICATION 1 NAME "rp_30d"
8
9...✂...API Create Database
1curl -XPOST 'http://[influxdb-svc].[influxdb-namespace].svc:8086/query' --data-urlencode 'q=CREATE DATABASE mydb'참고
Install Customize Default Configuration #
1helm install [RELEASE NAME] [Chart.yaml 경로] -f [YAML 파일 또는 URL에 값 지정 (여러 개를 지정가능)] -n [NAMESPACE NAME]1helm install influxdb influxdata/influxdb -f override-values.yaml -n [NAMESPACE NAME]Advertisement