Commit 30129055 authored by Sergio Gonzalez Diaz's avatar Sergio Gonzalez Diaz
Browse files

Test kubernetes monitoring

parent d0ee5fa2
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
@@ -23,18 +23,19 @@ build monitoring:
      - manifests/$IMAGE_NAME.yaml
      - .gitlab-ci.yml

build monitoring:
kubernetes test:
  stage: build
  script:
    - kubectl version
    - kubectl get all
    - kubectl delete -f "manifests/monitoring.yaml"
    - sleep 15
    - kubectl apply -f "manifests/monitoring.yaml"
    - sleep 30
    # - kubectl version
    # - kubectl get all
    # - kubectl delete -f "manifests/monitoring.yaml"
    # - sleep 15
    # - kubectl apply -f "manifests/monitoring.yaml"
    # - sleep 30
    - kubectl get all
    - kubectl --namespace gitlab-ci logs monitoring-* server
    - kubectl --namespace gitlab-ci logs monitoring-* influxdb
    - kubectl --namespace gitlab-ci describe pod monitoring-84fcb785-25knt
    - kubectl --namespace gitlab-ci logs monitoring-84fcb785-25knt server
    - kubectl --namespace gitlab-ci logs monitoring-84fcb785-25knt influxdb

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