From c6b9a863cf92f824e8b8e3004f6e1f649170e4f1 Mon Sep 17 00:00:00 2001 From: hu xinhui Date: Wed, 10 Jan 2018 16:03:25 +0800 Subject: spport k8s apiserver HA compass installer deploy k8s using kubespray for default, but k8s apiserver HA is not implemented by kubespray, This patch aim is to achieve the k8s apiserver HA Change-Id: I805b5eb2f4efa7ca82fcef7bfd3f4cad35ed65b5 JIRA: - Signed-off-by: hu xinhui --- .../adapters/ansible/kubernetes/roles/ha/files/chk_k8s_master.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 deploy/adapters/ansible/kubernetes/roles/ha/files/chk_k8s_master.sh (limited to 'deploy/adapters/ansible/kubernetes/roles/ha/files') diff --git a/deploy/adapters/ansible/kubernetes/roles/ha/files/chk_k8s_master.sh b/deploy/adapters/ansible/kubernetes/roles/ha/files/chk_k8s_master.sh new file mode 100644 index 00000000..62e79b3b --- /dev/null +++ b/deploy/adapters/ansible/kubernetes/roles/ha/files/chk_k8s_master.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +count=`ss -tnl | grep 6443 | wc -l` + +if [ $count = 0 ]; then + exit 1 +else + exit 0 +fi -- cgit 1.2.3-korg