Commit 705e1908 authored by Sergio Gonzalez Diaz's avatar Sergio Gonzalez Diaz
Browse files

Test secrets

parent 5f90be80
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -39,7 +39,8 @@ build influx:
    # # - kubectl get all
    # - curl -XGET "10.97.74.29:8086/health" 
    # # - kubectl delete -f "manifests/influx.yaml"
    - 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 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
+1 −0
Original line number Diff line number Diff line
from influx_tools import *
from datetime import datetime

print("Starting")
influx = Influx('10.97.74.29', 8086, 'teraflow', 'teraflow', 'monitoring')
influx.write_KPI(datetime.now(),1,1,101,1000)
results = influx.client.query('select * from samples;')