Skip to content

Commit 3f69a9e

Browse files
Extend the examples with more options
1 parent e545ec3 commit 3f69a9e

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

examples/deploy.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ AGENT_IMAGE_TAG=${AGENT_IMAGE_TAG:-$IMAGE_TAG}
4040
SERVER_PORT=${SERVER_PORT:-8081}
4141

4242
if [ -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"
4545
else
4646
# use ETCD to store agent reports
@@ -57,7 +57,7 @@ fi
5757
# check there are nodes in the cluster
5858
kubectl get nodes
5959

60-
echo "Installing netchecker server"
60+
echo "Deploying netchecker server and agents"
6161
cat << EOF > "${KUBE_DIR}"/netchecker-server-dep.yml
6262
apiVersion: apps/v1beta1
6363
kind: Deployment
@@ -198,8 +198,10 @@ echo "DONE"
198198

199199
if [ "${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'"
205207
fi

examples/deployment_etcd.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,14 @@ spec:
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

0 commit comments

Comments
 (0)