Commit 7a6847ed authored by Sergio Gonzalez Diaz's avatar Sergio Gonzalez Diaz
Browse files

Test influxdb secrets

parent 705e1908
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -39,14 +39,14 @@ build influx:
    # # - kubectl get all
    # - curl -XGET "10.97.74.29:8086/health" 
    # # - kubectl delete -f "manifests/influx.yaml"
    - kubectl delete secret influxdb-secrets
    - kubectl create secret generic influxdb-secrets --from-literal=INFLUXDB_DB="monitoring" --from-literal=INFLUXDB_ADMIN_USER="teraflow" --from-literal=INFLUXDB_ADMIN_PASSWORD="teraflow" --from-literal=INFLUXDB_HTTP_AUTH_ENABLED="True"
    - kubectl describe secret influxdb-secrets
    - kubectl delete -f "manifests/monitoring.yaml"
    - sleep 15
    - kubectl get all
    - kubectl apply -f "manifests/monitoring.yaml"
    - sleep 60
    # - kubectl delete secret influxdb-secrets
    # - kubectl create secret generic influxdb-secrets --from-literal=INFLUXDB_DB="monitoring" --from-literal=INFLUXDB_ADMIN_USER="teraflow" --from-literal=INFLUXDB_ADMIN_PASSWORD="teraflow" --from-literal=INFLUXDB_HTTP_AUTH_ENABLED="True"
    # - kubectl describe secret influxdb-secrets
    # - kubectl delete -f "manifests/monitoring.yaml"
    # - sleep 15
    # - kubectl get all
    # - kubectl apply -f "manifests/monitoring.yaml"
    # - sleep 60
    - kubectl get all
    - cd ./src/monitoring/service
    - docker build -t "test-influx" ./
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ from influx_tools import *
from datetime import datetime

print("Starting")
influx = Influx('10.97.74.29', 8086, 'teraflow', 'teraflow', 'monitoring')
influx = Influx('10.108.110.24', 8086, 'teraflow', 'teraflow', 'monitoring')
influx.write_KPI(datetime.now(),1,1,101,1000)
results = influx.client.query('select * from samples;')
print(results.raw)
 No newline at end of file