mirror of
https://github.com/jambonz/jambonz-infrastructure.git
synced 2026-10-29 21:44:11 +00:00
fix: influxdb
This commit is contained in:
1 parent
be949ec68f
commit
711c03368a
4 files changed
+64
-1
No files matched your search
@@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: influxdb
|
||||
name: influxdb
|
||||
spec:
|
||||
ports:
|
||||
- name: influxdb
|
||||
port: 8086
|
||||
targetPort: 8086
|
||||
selector:
|
||||
app: influxdb
|
||||
@@ -0,0 +1,48 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
labels:
|
||||
app: influxdb
|
||||
name: influxdb
|
||||
spec:
|
||||
serviceName: influxdb
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: influxdb
|
||||
template:
|
||||
metadata:
|
||||
name: influxdb
|
||||
labels:
|
||||
app: influxdb
|
||||
spec:
|
||||
containers:
|
||||
- image: influxdb:1.8
|
||||
name: influxdb
|
||||
livenessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /health
|
||||
port: api
|
||||
scheme: HTTP
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 5
|
||||
ports:
|
||||
- containerPort: 8086
|
||||
name: api
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/influxdb
|
||||
name: influxdb-claim
|
||||
restartPolicy: Always
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: influxdb-claim
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
@@ -3,7 +3,7 @@ ENABLE_METRICS=0
|
||||
|
||||
JAMBONES_CLUSTER_ID=jb
|
||||
JAMBONES_LOGLEVEL=info
|
||||
JAMBONES_TIME_SERIES_HOST=127.0.0.1
|
||||
JAMBONES_TIME_SERIES_HOST=influxdb
|
||||
JAMBONES_NETWORK_CIDR=10.42.0.0/16
|
||||
JAMBONES_MYSQL_DATABASE=jambones
|
||||
JAMBONES_MYSQL_HOST=mysql
|
||||
|
||||
@@ -6,6 +6,8 @@ namespace: jambonz
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- db/db-create.yaml
|
||||
- influxdb/influxdb-service.yaml
|
||||
- influxdb/influxdb-statefulset.yaml
|
||||
- mysql/mysql-service.yaml
|
||||
- mysql/mysql-statefulset.yaml
|
||||
- redis/redis-service.yaml
|
||||
|
||||
Reference in new issue
Block a user