Added influxdb package

This commit is contained in:
Raul Sanchez
2017-04-05 20:03:23 +02:00
parent b9833ae1f1
commit 2516dc537b
5 changed files with 199 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# Influxdb
### Info:
This template deploys a Influxdb.
### Usage:
Select influxdb from catalog.
Change the following cloud9 default parameters, if you need:
- Expose influxdb=true # Exposed influxdb service
- Influxdb port=8086 # Influxdb exposed port
Click deploy.
Influxdb can now be accessed over the Rancher network and over exposed port.
+36
View File
@@ -0,0 +1,36 @@
version: '2'
services:
{{- if eq .Values.EXPOSE_SERVICE "true"}}
lb:
image: rancher/lb-service-haproxy:v0.6.2
ports:
- ${influxdb_port}:8086/tcp
labels:
io.rancher.container.agent.role: environmentAdmin
io.rancher.container.create_agent: 'true'
{{- end}}
influxdb:
image: influxdb:1.2.2-alpine
stdin_open: true
tty: true
labels:
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.container.hostname_override: container_name
io.rancher.sidekicks: influxdb-volume
volumes_from:
- influxdb-volume
influxdb-volume:
network_mode: "none"
labels:
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.container.hostname_override: container_name
io.rancher.container.start_once: true
environment:
- SERVICE_UID=0
- SERVICE_GID=0
- SERVICE_VOLUME=/var/lib/influxdb
volumes:
- /var/lib/influxdb
volume_driver: local
image: rawmind/alpine-volume:0.0.2-1
+55
View File
@@ -0,0 +1,55 @@
.catalog:
name: Influxdb
description: |
Influxdb
version: 1.2.2-rancher1
minimum_rancher_version: v1.0.0
maintainer: "Raul Sanchez <rawmind@gmail.com>"
uuid: influxdb-0
questions:
- variable: "EXPOSE_SERVICE"
description: "Expose Influxdb"
label: "Expose influxdb:"
required: true
type: enum
default: "true"
options:
- "true"
- "false"
- variable: "influxdb_port"
description: |
Port to expose.
label: "Influxdb port:"
default: "8086"
required: true
type: "int"
version: '2'
services:
lb:
scale: 1
start_on_create: true
lb_config:
certs: []
port_rules:
- hostname: ''
priority: 1
protocol: http
service: influxdb
source_port: ${influxdb_port}
target_port: 8086
health_check:
response_timeout: 2000
healthy_threshold: 2
port: 42
unhealthy_threshold: 3
interval: 2000
influxdb:
scale: 1
start_on_create: true
health_check:
response_timeout: 2000
healthy_threshold: 2
port: 8086
unhealthy_threshold: 3
interval: 2000