Commit 4e25fe58 authored by Sergio Gonzalez Diaz's avatar Sergio Gonzalez Diaz
Browse files

Update monitoring manifest

parent 8be9ef71
Loading
Loading
Loading
Loading
+6 −24
Original line number Diff line number Diff line
@@ -29,12 +29,12 @@ spec:
        envFrom:
          - secretRef:
              name: influxdb-secrets
        readinessProbe:
          exec:
            command: ["curl", "-XGET", "localhost:8086/health"]
        livenessProbe:
          exec:
            command: ["curl", "-XGET", "localhost:8086/health"]
        # readinessProbe:
        #   exec:
        #     command: ["curl", "-XGET", "localhost:8086/health"]
        # livenessProbe:
        #   exec:
        #     command: ["curl", "-XGET", "localhost:8086/health"]
        resources:
          requests:
            cpu: 250m
@@ -82,21 +82,3 @@ spec:
    port: 8086
    targetPort: 8086
---
 No newline at end of file
apiVersion: v1
kind: Service
metadata:
  name: monitoring-public
spec:
  type: NodePort
  selector:
    app: monitoring
  ports:
  - name: grpc
    protocol: TCP
    port: 7070
    targetPort: 7070
  - name: influxdb
    protocol: TCP
    port: 8086
    targetPort: 8086
---
 No newline at end of file
+4 −4
Original line number Diff line number Diff line
@@ -28,11 +28,11 @@ kubernetes test:
  script:
    # - kubectl version
    # - kubectl get all
    - kubectl delete -f "manifests/monitoring.yaml"
    # - kubectl delete -f "manifests/monitoring.yaml"
    # - sleep 15
    # - kubectl apply -f "manifests/monitoring.yaml"
    # - sleep 30
    # - kubectl get all
    - kubectl apply -f "manifests/monitoring.yaml"
    - sleep 30
    - kubectl get all
    # - kubectl --namespace gitlab-ci describe pod monitoring-9df446bb5-6tmft
    # - kubectl --namespace gitlab-ci logs monitoring-9df446bb5-6tmft influxdb
    # - kubectl --namespace gitlab-ci logs monitoring-9df446bb5-6tmft server