Add InfluxDB service
Change-Id: I580a08984beadbf2684615ddb43fb92c8328b9b7
This commit is contained in:
parent
60397d24f4
commit
16d0f01247
|
@ -0,0 +1,17 @@
|
|||
FROM {{ namespace }}/base-tools:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
# NOTE(elemoine): the InfluxDB package is downloaded from dl.influxdb.com. Do
|
||||
# we want to host the package instead?
|
||||
|
||||
RUN gpg \
|
||||
--keyserver hkp://ha.pool.sks-keyservers.net \
|
||||
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5 \
|
||||
&& curl https://dl.influxdata.com/influxdb/releases/influxdb_{{ influxdb_version }}_amd64.deb.asc -o /tmp/influxdb.deb.asc \
|
||||
&& curl https://dl.influxdata.com/influxdb/releases/influxdb_{{ influxdb_version }}_amd64.deb -o /tmp/influxdb.deb \
|
||||
&& gpg --batch --verify /tmp/influxdb.deb.asc /tmp/influxdb.deb \
|
||||
&& dpkg -i /tmp/influxdb.deb \
|
||||
&& chown -R influxdb: /etc/influxdb \
|
||||
&& rm -f /tmp/influxdb.deb.asc /tmp/influxdb.deb
|
||||
|
||||
USER influxdb
|
|
@ -5,3 +5,6 @@ configs:
|
|||
heka_max_procs: 2
|
||||
heka_log_directory_root: "/var/log"
|
||||
heka_service_pattern: "^k8s_(.-)%..*"
|
||||
influxdb_port: 8086
|
||||
versions:
|
||||
influxdb_version: "0.13.0"
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
reporting-disabled = true
|
||||
|
||||
[meta]
|
||||
dir = "/var/lib/influxdb/meta"
|
||||
|
||||
[data]
|
||||
engine = "tsm1"
|
||||
dir = "/var/lib/influxdb/data"
|
||||
wal-dir = "/var/lib/influxdb/wal"
|
||||
|
||||
[admin]
|
||||
enabled = true
|
||||
|
||||
[http]
|
||||
auth-enabled = false # FIXME(elemoine)
|
||||
bind-address = "{{ network_topology["private"]["address"] }}:{{ influxdb_port }}"
|
||||
log-enabled = false
|
|
@ -0,0 +1,25 @@
|
|||
service:
|
||||
name: influxdb
|
||||
node-selector:
|
||||
openstack-controller: "true"
|
||||
ports:
|
||||
- influxdb_port
|
||||
containers:
|
||||
- name: influxdb
|
||||
image: influxdb
|
||||
probes:
|
||||
readiness: "true"
|
||||
liveness: "true"
|
||||
daemon:
|
||||
command: influxd -config /etc/influxdb/influxdb.conf
|
||||
files:
|
||||
- influxdb.conf
|
||||
volumes:
|
||||
- name: influxdb-data
|
||||
type: empty-dir
|
||||
path: /var/lib/influxdb
|
||||
files:
|
||||
influxdb.conf:
|
||||
path: /etc/influxdb/influxdb.conf
|
||||
content: influxdb.conf.j2
|
||||
perm: "0600"
|
Loading…
Reference in New Issue