Signed-off-by: trevor tao <trevor.tao@arm.com>
Change-Id: I5e9ba2a5db63df80a6dacfcf5c2479e35e77c84c
if ! kubectl get nodes --request-timeout=3s; then
sudo kubeadm config images pull
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}" \
sudo kubeadm init \
--pod-network-cidr="${POD_NETWORK_CIDR}" \
- --apiserver-advertise-address="${MGMT_HOST}" \
+ --apiserver-advertise-address="${MGMT_IP}" \
--service-cidr="${SERVICE_CIDR}"
--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" | \
if [ "$(id -u)" = 0 ]; then
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" | \