mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-05 06:07:20 +00:00
Added influxdb to wrestlingdev
This commit is contained in:
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