added k8s config
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-08 15:48:56 +02:00
parent e194f0ed10
commit cca6aff3c0
18 changed files with 5559 additions and 197 deletions

17
k8s/configmap.yml Normal file
View File

@ -0,0 +1,17 @@
 apiVersion: v1
kind: ConfigMap
metadata:
name: output-service-tsdb-config
labels:
app: output-service-tsdb
namespace: birbnetes
data:
CS_RABBITMQ_HOSTNAME: rabbitmq
CS_RABBITMQ_USERNAME: rabbitmq
CS_RABBITMQ_PASSWORD: rabbitmq
CS_RABBITMQ_EXCHANGE: rabbitmq
CS_RABBITMQ_QUEUE: rabbitmq
CS_INFLUXDB_HOST: "http://localhost:9999/"
CS_INFLUXDB_TOKEN: ""
CS_INFLUXDB_BUCKET: buck_ket
CS_INFLUXDB_ORG: birbnetes

25
k8s/deployment.yml Normal file
View File

@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: output-service-tsdb
namespace: birbnetes
labels:
app: output-service-tsdb
spec:
replicas: 1
selector:
matchLabels:
app: output-service-tsdb
strategy:
type: Recreate
template:
metadata:
labels:
app: output-service-tsdb
spec:
containers:
- image: registry.kmlabz.com/tormakris/output-service-tsdb
name: output-service-tsdb
envFrom:
- configMapRef:
name: output-service-tsdb-config