• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

kubectl 오류

23.03.13 07:52 작성 조회수 712

1

root@ubuntu-VM:~# k version

W0313 07:48:07.210855 4539 loader.go:222] Config not found: /etc/kubernetes/admin.conf

WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.

Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.2", GitCommit:"fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b", GitTreeState:"clean", BuildDate:"2023-02-22T13:39:03Z", GoVersion:"go1.19.6", Compiler:"gc", Platform:"linux/amd64"}

Kustomize Version: v4.5.7

The connection to the server localhost:8080 was refused - did you specify the right host or port?

 

구글링으로 해결 못 했습니다 ㅠㅠ

답변 2

·

답변을 작성해보세요.

0

teacheryo님의 프로필

teacheryo

2023.07.18

  1. 미니쿠베를 실행하세요.

    minikube start --driver=docker
    
    or
    
    minikube start --driver=virtual box

 

그런 후 kubectl version --output=yaml을 입력하세요.

 

0

안녕하세요!

적어주신 로그를 봤을 때, 쿠버네티스 서버 설치가 정상적으로 이루어지지 않은 것으로 보입니다.

혹시 어떤 방식으로 설치했는지 알 수 있을까요? (k3s 또는 minikube등)

다시 처음부터 설치해보시고 그래도 동작하지 않는 다면 다시 문의 부탁드립니다.

감사합니다!