Enable advanced netcheck application for K8s
Deploy advanced netchecker K8s app and add docs for it. Change-Id: I7c69387d5bf637c7c86d4ef24bdc3c224b6b402d Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
parent
6fa147b7db
commit
0256af353f
|
@ -33,16 +33,29 @@ place, followed by public internet resolvers, if any.
|
|||
Network check
|
||||
=============
|
||||
|
||||
While a net check is a part of deployment process, you can run it manually
|
||||
from the admin node as well:
|
||||
While a net check is a part of deployment process, you can run the basic DNS
|
||||
check manually from a cluster node as ``bash /usr/local/bin/test_networking.sh``.
|
||||
You can as well run all network checks from the admin node:
|
||||
|
||||
.. code:: sh
|
||||
|
||||
export ws=~/workspace/
|
||||
export ws=/home/workspace/
|
||||
/usr/bin/ansible-playbook -e ansible_ssh_pass=vagrant -u vagrant -b \
|
||||
--become-user=root -i ~/${ws}inventory/inventory.cfg \
|
||||
--become-user=root -i ~${ws}inventory/inventory.cfg \
|
||||
-e @${ws}kargo/inventory/group_vars/all.yml \
|
||||
-e @${ws}inventory/kargo_default_common.yaml \
|
||||
-e @${ws}inventory/kargo_default_ubuntu.yaml \
|
||||
-e @${ws}inventory/custom.yaml \
|
||||
${ws}utils/kargo/postinstall.yml -v --tags postinstall
|
||||
${ws}utils/kargo/postinstall.yml -v --tags netcheck
|
||||
|
||||
There is also K8s netcheck server and agents applications running, if the
|
||||
cluster was created with the ``deploy_netchecker: true``.
|
||||
In order to verify networking health and status of agents, which include
|
||||
timestamps of the last known healthy networking state, those may be quieried
|
||||
from any cluster node with:
|
||||
|
||||
.. code:: sh
|
||||
|
||||
curl -s -X GET 'http://localhost:31081/api/v1/agents/' | \
|
||||
python -mjson.tool
|
||||
curl -X GET 'http://localhost:31081/api/v1/connectivity_check'
|
||||
|
|
|
@ -20,6 +20,8 @@ hyperkube_image_tag: "v1.4.3_coreos.0"
|
|||
etcd_version: "v3.0.12"
|
||||
#Download once, then push to nodes in batches, if enabled
|
||||
download_run_once: true
|
||||
#Enable netchecker app
|
||||
deploy_netchecker: true
|
||||
|
||||
calico_version: "v1.0.0-beta"
|
||||
|
||||
|
|
|
@ -31,6 +31,14 @@
|
|||
changed_when: false
|
||||
become: no
|
||||
|
||||
- name: Check netchecker status
|
||||
uri: url=http://localhost:31081/api/v1/connectivity_check status_code=200
|
||||
retries: 6
|
||||
delay: 20
|
||||
delegate_to: "{{groups['kube-master'][0]}}"
|
||||
run_once: true
|
||||
become: no
|
||||
|
||||
- name: Copy dashboard definition
|
||||
copy:
|
||||
src: kubernetes-dashboard.yml
|
||||
|
|
Loading…
Reference in New Issue