K-PaaS 로고

SUPPORT

  1. SUPPORT
    • 가이드
    • 다운로드
    • 문의하기
    • 기술지원 신청
    • 인증서비스

묻고 답하기

기술지원K-PaaS 클러스터 환경 구성 중 에러
고*훈 2024-09-20 15:37:44
  • hits67

#!/bin/bash

# Master Node Count Variable (eg. 1, 3, 5 ...)
export KUBE_CONTROL_HOSTS=1

# if KUBE_CONTROL_HOSTS > 1 (eg. external, stacked)
export ETCD_TYPE=

# if KUBE_CONTROL_HOSTS > 1
# HA Control Plane LoadBalanncer IP or Domain
export LOADBALANCER_DOMAIN=

# if ETCD_TYPE=external
# The number of ETCD node variable is set equal to the number of KUBE_CONTROL_HOSTS
export ETCD1_NODE_HOSTNAME=
export ETCD1_NODE_PRIVATE_IP=
export ETCD2_NODE_HOSTNAME=
export ETCD2_NODE_PRIVATE_IP=
export ETCD3_NODE_HOSTNAME=
export ETCD3_NODE_PRIVATE_IP=

# Master Node Info Variable
# The number of MASTER node variable is set equal to the number of KUBE_CONTROL_HOSTS
export MASTER1_NODE_HOSTNAME=kpaas
export MASTER1_NODE_PUBLIC_IP=10.10.10.81
export MASTER1_NODE_PRIVATE_IP=10.10.10.81
export MASTER2_NODE_HOSTNAME=
export MASTER2_NODE_PRIVATE_IP=
export MASTER3_NODE_HOSTNAME=
export MASTER3_NODE_PRIVATE_IP=

# Worker Node Count Variable
export KUBE_WORKER_HOSTS=3

# Worker Node Info Variable
# The number of Worker node variable is set equal to the number of KUBE_WORKER_HOSTS
export WORKER1_NODE_HOSTNAME=kpaas1
export WORKER1_NODE_PRIVATE_IP=10.10.10.34
export WORKER2_NODE_HOSTNAME=kpaas2
export WORKER2_NODE_PRIVATE_IP=10.10.10.35
export WORKER3_NODE_HOSTNAME=kpaas3
export WORKER3_NODE_PRIVATE_IP=10.10.10.36

# Storage Variable (eg. nfs, rook-ceph)
export STORAGE_TYPE=nfs

# if STORATE_TYPE=nfs
export NFS_SERVER_PRIVATE_IP=10.10.10.81

# MetalLB Variable (eg. 192.168.0.150-192.168.0.160)
export METALLB_IP_RANGE=10.10.10.34-10.10.10.36

# MetalLB Ingress Nginx Controller LoadBalancer Service External IP
export INGRESS_NGINX_PRIVATE_IP=10.10.10.81

이렇게 작성을 하고 source deploy-cp-cluster.sh를 진행했더니 설치 진행 과정 중에 에러가 발생했습니다.
TASK [istio-single : Check kube-apiserver] ******************************************************************************************************************************************************************************************************************
FAILED - RETRYING: [localhost]: Check kube-apiserver (15 retries left).

FAILED - RETRYING: [localhost]: Check kube-apiserver (14 retries left).

FAILED - RETRYING: [localhost]: Check kube-apiserver (13 retries left).

이렇게 1까지 내려가는 에러가 발생했고, 로그를 확인해보면 no hosts matched가 발생하였습니다.
 

DEBUG: Adding group all
DEBUG: Adding group kube_control_plane
DEBUG: Adding group kube_node
DEBUG: Adding group etcd
DEBUG: Adding group k8s_cluster
DEBUG: Adding group calico_rr
Container Platform vars setting completed.

PLAY [Check Ansible version] ***************************************************
skipping: no hosts matched

PLAY [Add kube-master nodes to kube_control_plane] *****************************
skipping: no hosts matched

PLAY [Add kube-node nodes to kube_node] ****************************************
skipping: no hosts matched

PLAY [Add k8s-cluster nodes to k8s_cluster] ************************************
skipping: no hosts matched

PLAY [Add calico-rr nodes to calico_rr] ****************************************
skipping: no hosts matched

PLAY [Add no-floating nodes to no_floating] ************************************
skipping: no hosts matched

PLAY [Install bastion ssh config] **********************************************
skipping: no hosts matched

PLAY [Bootstrap hosts for Ansible] *********************************************
skipping: no hosts matched

PLAY [Gather facts] ************************************************************
skipping: no hosts matched

PLAY [Prepare for etcd install] ************************************************
skipping: no hosts matched

PLAY [Add worker nodes to the etcd play if needed] *****************************
skipping: no hosts matched

PLAY [Install etcd] ************************************************************
skipping: no hosts matched

PLAY [Install Kubernetes nodes] ************************************************
skipping: no hosts matched

PLAY [Install the control plane] ***********************************************
skipping: no hosts matched

PLAY [Invoke kubeadm and install a CNI] ****************************************
skipping: no hosts matched

PLAY [Install Calico Route Reflector] ******************************************
skipping: no hosts matched

PLAY [Patch Kubernetes for Windows] ********************************************
skipping: no hosts matched

PLAY [Install Kubernetes apps] *************************************************
skipping: no hosts matched

PLAY [Apply resolv.conf changes now that cluster DNS is up] ********************
skipping: no hosts matched

PLAY [kube_control_plane] ******************************************************
skipping: no hosts matched

PLAY [kube_control_plane] ******************************************************
skipping: no hosts matched

PLAY [k8s_cluster] *************************************************************
skipping: no hosts matched

PLAY [k8s_cluster] *************************************************************
skipping: no hosts matched

PLAY [kube_control_plane] ******************************************************
skipping: no hosts matched

PLAY [kube_control_plane] ******************************************************
skipping: no hosts matched

PLAY [kube_control_plane] ******************************************************
skipping: no hosts matched

PLAY [kube_control_plane] ******************************************************
skipping: no hosts matched

PLAY [k8s_cluster] *************************************************************
skipping: no hosts matched

PLAY RECAP *********************************************************************

금요일 20 9월 2024  15:32:43 +0900 (0:00:00.020)       0:00:00.020 ****************
===============================================================================



혹시 해결 방안을 알려주실 수 있을까요..?
Single로 진행했고,
Main 장비는 PowerEdge R750에 Ubuntu 22.04.5 설치해서 진행했고,
서브들은 VMWare ESXi로 IP 3개를 파서 Ubuntu 22.04.5 를 설치해서 Worker Node로 진행하려고 했습니다.
서브 없이 메인만으로 하는 방법이 있으면 그것도 같이 알려주시면 좋겠습니다.
방법은 유튜브를 보면서 설치 과정을 따라하던 도중에 에러가 발생했고, IP는 그냥 마음대로 적은 IP여서 신경 안쓰셔도 될 것 같습니다.
Master IP : 10.10.10.81
Worker IP : 10.10.10.34 ~ 10.10.10.36 으로 구상하여 진행했습니다.


 

안녕하세요. 개방형 클라우드 플랫폼 센터입니다.

문의주신 사항에 대해 답변드립니다.

우선 환경변수 목록 중 노드의 호스트명은 실제 호스트명을 입력하여야 하며, 입력하신 Private IP를 기반으로 모든 노드에 ssh 통신이 가능한 상태여야합니다.
개인 / 공개키 생성 및 배포, 임의의 IP가 아닌 실제 IP를 입력하여 설치 진행하시기 바랍니다.

컨테이너 플랫폼 클러스터 설치 가이드
https://github.com/K-PaaS/container-platform/blob/master/install-guide/standalone/cp-cluster-install-single.md

감사합니다.

알 림

필수입력 값 모달창