File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ AGENT_IMAGE_TAG=${AGENT_IMAGE_TAG:-$IMAGE_TAG}
4040SERVER_PORT=${SERVER_PORT:- 8081}
4141
4242if [ -z ${USE_ETCD_ENDPOINT} ] ; then
43- # use 3rd party resource API to store agents state
43+ # use 3rd party resources (TPR) API to store agent reports
4444 SERVER_ENV_TAIL=" -kubeproxyinit"
4545else
4646 # use ETCD to store agent reports
5757# check there are nodes in the cluster
5858kubectl get nodes
5959
60- echo " Installing netchecker server"
60+ echo " Deploying netchecker server and agents "
6161cat << EOF > "${KUBE_DIR} "/netchecker-server-dep.yml
6262apiVersion: apps/v1beta1
6363kind: Deployment
@@ -198,8 +198,10 @@ echo "DONE"
198198
199199if [ " ${PURGE} " != " true" ]; then
200200 echo " Use the following commands to "
201- echo " - check agents responses :"
201+ echo " - get latest agents reports :"
202202 echo " curl -s -X GET 'http://localhost:${NODE_PORT} /api/v1/agents/' | python -mjson.tool"
203203 echo " - check connectivity with agents:"
204204 echo " curl -X GET 'http://localhost:${NODE_PORT} /api/v1/connectivity_check'"
205+ echo " - get agents metrics:"
206+ echo " curl -X GET 'http://localhost:${NODE_PORT} /metrics'"
205207fi
Original file line number Diff line number Diff line change 3030 - " -etcd-key=/var/lib/etcd/etcd-client.key"
3131 - " -etcd-cert=/var/lib/etcd/etcd-client.pem"
3232 - " -etcd-ca=/var/lib/etcd/ca.pem"
33+ # optional. to provide etcd certs data if it is in the host file system
34+ volumeMounts :
35+ - mountPath : /var/lib/etcd/
36+ name : etcd-certs
37+ readOnly : true
38+ # optional. to provide etcd certs data if it is in the host file system
39+ volumes :
40+ - hostPath :
41+ path : /var/lib/etcd
42+ name : etcd-certs
3343
You can’t perform that action at this time.
0 commit comments