Commit 0fc37cfe authored by Sergio Gonzalez Diaz's avatar Sergio Gonzalez Diaz
Browse files

Update monitoring manifest with influxdb

parent bdf03a90
Loading
Loading
Loading
Loading
+9 −42
Original line number Diff line number Diff line
# apiVersion: apps/v1
# kind: Deployment
# metadata:
#   name: monitoring
# spec:
#   selector:
#     matchLabels:
#       app: monitoring
#   template:
#     metadata:
#       labels:
#         app: monitoring
#     spec:
#       terminationGracePeriodSeconds: 5
#       containers:
#       - name: server
#         image: registry.gitlab.com/teraflow-h2020/controller/monitoring:latest
#         imagePullPolicy: Always
#         ports:
#         - containerPort: 8080
# ---
# apiVersion: v1
# kind: Service
# metadata:
#   name: monitoring
# spec:
#   type: ClusterIP
#   selector:
#     app: monitoring
#   ports:
#   - name: grpc
#     protocol: TCP
#     port: 8080
#     targetPort: 8080
# ---







apiVersion: apps/v1
kind: Deployment
metadata:
@@ -60,6 +18,15 @@ spec:
        image: influxdb:1.8
        ports:
        - containerPort: 8086
        env:
        - name: INFLUXDB_DB
          value: "monitoring"
        - name: INFLUXDB_ADMIN_USER
          value: "teraflow"
        - name: INFLUXDB_ADMIN_PASSWORD
          value: "teraflow"
        - name: INFLUXDB_HTTP_AUTH_ENABLED
          value: "True"
        resources:
          requests:
            cpu: 250m
+7 −9
Original line number Diff line number Diff line
@@ -28,18 +28,16 @@ build influx:
  script:
    - kubectl version
    - kubectl get all
    # - kubectl delete -f "manifests/monitoring.yaml"
    # - kubectl delete -f "manifests/influx.yaml"
    # - sleep 60
    # - kubectl get all
    # - kubectl apply -f "manifests/monitoring.yaml"
    # - sleep 60
    # - kubectl get all
    - kubectl delete -f "manifests/monitoring.yaml"
    - sleep 15
    - kubectl get all
    - kubectl apply -f "manifests/monitoring.yaml"
    - sleep 60
    - kubectl get all
    # - kubectl apply -f "manifests/influx.yaml"
    # - sleep 15
    # - kubectl get all
    - curl -XGET "10.106.2.145:8086/health" 
    - curl -XGET "service/monitoring-public:8086/health"    
    # - kubectl delete -f "manifests/influx.yaml"

# test if the Docker image can be pulled from the gitlab registry