From 7a9e407d389f559da413ecb69ccc822323e9c3c2 Mon Sep 17 00:00:00 2001 From: trevor tao Date: Tue, 12 Apr 2022 19:42:07 +0800 Subject: [PATCH] Restore using IP as Apiserver address Signed-off-by: trevor tao Change-Id: I5e9ba2a5db63df80a6dacfcf5c2479e35e77c84c --- src/foundation/scripts/k8s_master.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/foundation/scripts/k8s_master.sh b/src/foundation/scripts/k8s_master.sh index 13b76cd..337209d 100755 --- a/src/foundation/scripts/k8s_master.sh +++ b/src/foundation/scripts/k8s_master.sh @@ -24,14 +24,14 @@ fi if ! kubectl get nodes --request-timeout=3s; then sudo kubeadm config images pull - #sudo kubeadm init \ - # --pod-network-cidr="${POD_NETWORK_CIDR}" \ - # --apiserver-advertise-address="${MGMT_IP}" \ - # --service-cidr="${SERVICE_CIDR}" sudo kubeadm init \ --pod-network-cidr="${POD_NETWORK_CIDR}" \ - --apiserver-advertise-address="${MGMT_HOST}" \ + --apiserver-advertise-address="${MGMT_IP}" \ --service-cidr="${SERVICE_CIDR}" + #sudo kubeadm init \ + # --pod-network-cidr="${POD_NETWORK_CIDR}" \ + # --apiserver-advertise-address="${MGMT_HOST}" \ + # --service-cidr="${SERVICE_CIDR}" if [ "$(id -u)" = 0 ]; then echo "export KUBECONFIG=/etc/kubernetes/admin.conf" | \ -- 2.16.6