mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Added influxdb to wrestlingdev
This commit is contained in:
@@ -2,6 +2,7 @@ version: "2.2"
|
||||
networks:
|
||||
database:
|
||||
caching:
|
||||
metrics:
|
||||
|
||||
volumes:
|
||||
mysql:
|
||||
@@ -23,9 +24,13 @@ services:
|
||||
- MEMCACHIER_PASSWORD=
|
||||
- WRESTLINGDEV_DEVISE_SECRET_KEY=2f29d49db6704377ba263f7cb9db085b386bcb301c0cd501126a674686ab1a109754071165b08cd72af03cec4642a4dd04361c994462254dd5d85e9594e8b9aa
|
||||
- WRESTLINGDEV_SECRET_KEY_BASE=077cdbef5c2ccf22543fb17a67339f234306b7fa2e1e4463d851c444c10a5611829a2290b253da78339427f131571fac9a42c83d960b2d25ecc10a4a0a7ce1a2
|
||||
- WRESTLINGDEV_INFLUXDB_DATABASE=wrestlingdev
|
||||
- WRESTLINGDEV_INFLUXDB_HOST=influxdb
|
||||
- WRESTLINGDEV_INFLUXDB_PORT=8086
|
||||
networks:
|
||||
database:
|
||||
caching:
|
||||
metrics:
|
||||
restart: always
|
||||
ports:
|
||||
- "80:80"
|
||||
@@ -58,16 +63,28 @@ services:
|
||||
- MEMCACHIER_PASSWORD=
|
||||
- WRESTLINGDEV_DEVISE_SECRET_KEY=2f29d49db6704377ba263f7cb9db085b386bcb301c0cd501126a674686ab1a109754071165b08cd72af03cec4642a4dd04361c994462254dd5d85e9594e8b9aa
|
||||
- WRESTLINGDEV_SECRET_KEY_BASE=077cdbef5c2ccf22543fb17a67339f234306b7fa2e1e4463d851c444c10a5611829a2290b253da78339427f131571fac9a42c83d960b2d25ecc10a4a0a7ce1a2
|
||||
- WRESTLINGDEV_INFLUXDB_DATABASE=wrestlingdev
|
||||
- WRESTLINGDEV_INFLUXDB_HOST=influxdb
|
||||
- WRESTLINGDEV_INFLUXDB_PORT=8086
|
||||
networks:
|
||||
database:
|
||||
caching:
|
||||
metrics:
|
||||
restart: always
|
||||
command: bundle exec bin/delayed_job -n 1 run
|
||||
|
||||
influxdb:
|
||||
image: influxdb:1.8-alpine
|
||||
environment:
|
||||
- INFLUXDB_DB=wrestlingdev
|
||||
ports:
|
||||
- "8086:8086"
|
||||
networks:
|
||||
metrics:
|
||||
|
||||
memcached:
|
||||
image: memcached:1.5
|
||||
mem_limit: 64000000
|
||||
restart: always
|
||||
networks:
|
||||
caching:
|
||||
|
||||
caching:
|
||||
74
deploy/kubernetes/manifests/influxdb.yaml
Normal file
74
deploy/kubernetes/manifests/influxdb.yaml
Normal file
@@ -0,0 +1,74 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: wrestlingdev-influxdb
|
||||
labels:
|
||||
app: wrestlingdev
|
||||
tier: metrics
|
||||
spec:
|
||||
ports:
|
||||
- port: 8086
|
||||
selector:
|
||||
app: wrestlingdev
|
||||
tier: metrics
|
||||
clusterIP: None
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: wrestlingdev-influxdb
|
||||
labels:
|
||||
app: wrestlingdev
|
||||
tier: metrics
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: wrestlingdev
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: wrestlingdev
|
||||
tier: metrics
|
||||
spec:
|
||||
containers:
|
||||
- name: wrestlingdev-influxdb
|
||||
image: influxdb:1.8-alpine
|
||||
ports:
|
||||
- containerPort: 8086
|
||||
env:
|
||||
- name: INFLUXDB_DB
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: wrestlingdev-secrets
|
||||
key: influxdb_database
|
||||
volumeMounts:
|
||||
- name: wrestlingdev-influxdb-persistent-storage
|
||||
mountPath: /var/lib/influxdb
|
||||
resources:
|
||||
limits:
|
||||
cpu: "0.7"
|
||||
memory: "512Mi"
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "0.5"
|
||||
volumes:
|
||||
- name: wrestlingdev-influxdb-persistent-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: wrestlingdev-influxdb-pv-claim
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: wrestlingdev-influxdb-pv-claim
|
||||
labels:
|
||||
app: wrestlingdev
|
||||
tier: metrics
|
||||
spec:
|
||||
storageClassName: standard
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Gi
|
||||
@@ -81,6 +81,21 @@ spec:
|
||||
secretKeyRef:
|
||||
name: wrestlingdev-secrets
|
||||
key: gmailemail
|
||||
- name: WRESTLINGDEV_INFLUXDB_DATABASE
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: wrestlingdev-secrets
|
||||
key: influxdb_database
|
||||
- name: WRESTLINGDEV_INFLUXDB_HOST
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: wrestlingdev-secrets
|
||||
key: influxdb_hostname
|
||||
- name: WRESTLINGDEV_INFLUXDB_PORT
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: wrestlingdev-secrets
|
||||
key: influxdb_port
|
||||
resources:
|
||||
limits:
|
||||
cpu: "0.5"
|
||||
@@ -187,6 +202,21 @@ spec:
|
||||
secretKeyRef:
|
||||
name: wrestlingdev-secrets
|
||||
key: gmailemail
|
||||
- name: WRESTLINGDEV_INFLUXDB_DATABASE
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: wrestlingdev-secrets
|
||||
key: influxdb_database
|
||||
- name: WRESTLINGDEV_INFLUXDB_HOST
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: wrestlingdev-secrets
|
||||
key: influxdb_hostname
|
||||
- name: WRESTLINGDEV_INFLUXDB_PORT
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: wrestlingdev-secrets
|
||||
key: influxdb_port
|
||||
command: ["bundle"]
|
||||
args: ["exec", "bin/delayed_job", "-n", "1", "run"]
|
||||
resources:
|
||||
|
||||
@@ -11,4 +11,7 @@ stringData:
|
||||
devisesecretkey: PUT_SECRET_HERE get from running rails secret
|
||||
railssecretkey: PUT_SECRET_HERE get from running rails secret
|
||||
emailpassword: PUT_EMAIL_PASSWORD_HERE
|
||||
gmailemail: PUT EMAIL ADDRESS HERE
|
||||
gmailemail: PUT EMAIL ADDRESS HERE
|
||||
influxdb_database: PUT INFLUXDB DATABASE NAME HERE
|
||||
influxdb_hostname: PUT INFLUXDB HOSTNAME OR IP HERE
|
||||
influxdb_port: PUT INFLUXDB PORT HERE
|
||||
Reference in New Issue
Block a user