Skip to content

Commit

Permalink
wip3
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchiu committed Jul 13, 2018
1 parent fb5efd5 commit 962a020
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ script:
- JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl -n kube-system get pods -lk8s-app=kube-dns -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1;echo "waiting for kube-dns to be available"; kubectl get pods --all-namespaces; done
- kubectl apply -f deploy/kubernetes/apps/monitoring/ -R
- until curl --connect-timeout 1 -sL -w "%{http_code}\\n" http://`kubectl get service -n monitoring prometheus -o jsonpath="{.spec.clusterIP}"`:9090/api/v1/query?query=prometheus_build_info -o /dev/null | grep 200; do sleep 1; echo "wait the prometheus to ve available"; done
- sleep 10
- kubectl describe -n monitoring pod -l name=cadvisor
- kubectl get -n monitoring pods
- make build
- sudo -E PATH=$PATH TEST_GRPC=1 TEST_PROMETHEUS=1 make src.test-coverage
- if [ "$TRAVIS_BRANCH" == "develop" ]; then docker build --tag sdnvortex/vortex --file ./dockerfiles/Dockerfile . ; fi
Expand Down
4 changes: 2 additions & 2 deletions deploy/kubernetes/apps/monitoring/cadvisor/cadvisor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
mountPath: /var/run
readOnly: false
- name: sys
mountPath: /sys
mountPath: /sys::shared
readOnly: true
- name: docker
mountPath: /var/lib/docker
Expand All @@ -51,4 +51,4 @@ spec:
path: /sys
- name: docker
hostPath:
path: /var/lib/docker
path: /var/lib/docker

0 comments on commit 962a020

Please sign in to comment.