본문 바로가기
728x90
반응형

Kubernetes12

[Kubernetes] Get "http://localhost:8080/api?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused $ echo $KUBECONFIGempty$ kubectl get podsE1002 10:16:21.854341 105845 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused$ KUBECONFIG=$HOME/.kube/config$ kubectl get podsNo resources found in default namespace. 2025. 1. 29.
[Kubernetes] dial tcp 127.0.0.1:10248: connect: connection refused. swap off 를 해주니 해결하였다.$ sudo swapoff -a && sudo sed -i '/ swap / s/^/#/' /etc/fstab $ sudo kubeadm init[init] Using Kubernetes version: v1.32.1[preflight] Running pre-flight checks [WARNING Swap]: swap is supported for cgroup v2 only. The kubelet must be properly configured to use swap. Please refer to https://kubernetes.io/docs/concepts/architecture/nodes/#swap-memory, or disable swap on the nod.. 2025. 1. 29.
[Kubernetes] ERROR FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml kube-controller-manager.yaml kube-scheduler.yaml etcd.yaml already exists $ kubeadm reset 수행 후 해당 파일 삭제 $ sudo kubeadm init[init] Using Kubernetes version: v1.32.1[preflight] Running pre-flight checks [WARNING Swap]: swap is supported for cgroup v2 only. The kubelet must be properly configured to use swap. Please refer to https://kubernetes.io/docs/concepts/architecture/nodes/#swap-memory, or disable swap on the nodeerror execution phase preflight: [preflight] Some fa.. 2025. 1. 29.
[Kubernetes] The repository 'https://apt.kubernetes.io kubernetes-xenial Release' does not have a Release file. 데비안 기반 배포판 또는 Ubuntu 환경에서 Kubernetes 설치 하면서 다음과 같은 에러가 발생하면서 정상적으로 설치되지 않는다.$ sudo apt-get update기존:1 https://download.docker.com/linux/ubuntu noble InRelease기존:2 http://kr.archive.ubuntu.com/ubuntu noble InRelease 기존:4 http://kr.archive.ubuntu.com/ubuntu noble-updates InRelease .. 2025. 1. 29.
728x90
반응형