couldn't get current server API group list: the server has asked for the client to provide credentials :: 에버노트

ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • couldn't get current server API group list: the server has asked for the client to provide credentials
    카테고리 없음 2023. 8. 9. 10:41

    kubectl은 Kubernetes 클러스터와 상호 작용하기 위한 커맨드 라인 도구입니다. Kubernetes는 컨테이너 오케스트레이션 플랫폼으로, 복잡한 컨테이너 기반 애플리케이션을 관리하고 배포하기 위한 기능을 제공합니다. kubectl은 이러한 Kubernetes 클러스터를 다루는데 사용되며, 클러스터 관리자, 개발자, 운영팀 등이 컨테이너화된 애플리케이션을 관리하고 제어하기 위해 사용됩니다.

    여러 가지 작업을 수행할 수 있는 kubectl 명령어가 있습니다:

    1. Pod 관리:
      • kubectl create: 새로운 리소스 생성.
      • kubectl get: 리소스 목록 조회.
      • kubectl describe: 리소스 상세 정보 조회.
      • kubectl logs: Pod의 로그 조회.
    2. Deployment 및 서비스 관리:
      • kubectl apply: 리소스 정의 파일을 기반으로 리소스 생성 또는 업데이트.
      • kubectl scale: 배포나 리소스의 인스턴스 개수 조정.
    3. ConfigMap 및 Secret 관리:
      • kubectl create configmap: ConfigMap 생성.
      • kubectl create secret: Secret 생성.
    4. Kubernetes 클러스터 상태 조회:
      • kubectl cluster-info: 클러스터 정보 조회.
      • kubectl get nodes: 노드 목록 조회.
      • kubectl get namespaces: 네임스페이스 목록 조회.
    5. 상호 작용:
      • kubectl exec: Pod 내부로 명령 실행.
      • kubectl port-forward: 로컬 포트와 클러스터의 포트 연결.
      • kubectl attach: 특정 Pod에 연결.

    이 외에도 다양한 명령어가 있으며, kubectl의 기능은 Kubernetes 클러스터를 관리하고 모니터링하는 데 중요합니다. 또한, kubectl은 다양한 플러그인과 확장 기능을 지원하여 사용자 정의 명령어나 기능을 추가할 수 있습니다.

     

    aws eks version  1.25

    에러

    couldn't get current server API group list: the server has asked for the client to provide credentials

     

    원인

    [root@14c5493417be /]# kubectl version --short
    Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
    Client Version: v1.27.4
    Kustomize Version: v5.0.1

     

    해결 

    Client  버전이 문제 였다.. 1.24 버전으로 변경했다.

    [root@14c5493417be /]kubectl version --short
    Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
    Client Version: v1.24.2
    Kustomize Version: v4.5.4

    댓글

Designed by Tistory.