쿠버네티스 공부하다 발생한 문제들

환경

[문제 1] There was an error while executing VBoxManage, a CLI used by Vagrant

VirtualBox, Vagrant 설치 후 vagrant up 커맨드 실행 시 아래와 같이 에러 발생

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["hostonlyif", "create"]
Stderr: 0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *" at line 95 of file VBoxManageHostonly.cpp

해결
맥 보안설정에서 권한 체크 후 해결 System Preferences > Security & Privacy > General > Allow Permission

"A program from Oracle Inc. was blocked from accessing system... "

[문제 2] Unimplemented: POSIX::tmpnam(): use File::Temp instead at /System/Library/Perl/5.28/darwin-thread-multi-2level/POSIX.pm line 185.

각 노드 접근을 위해 csshx 커맨드 실행 시 아래와 같이 에러 발생

Unimplemented: POSIX::tmpnam(): use File::Temp instead at /System/Library/Perl/5.28/darwin-thread-multi-2level/POSIX.pm line 185.
Unimplemented: POSIX::tmpnam() at /usr/local/bin/csshX line 1130.
BEGIN failed--compilation aborted at /usr/local/bin/csshX line 1130.

해결
/usr/local/bin/csshX 파일의 첫 번째 라인 수정, 펄 버전 정보 명시

#!/usr/bin/perl (X)
#!/usr/bin/perl5.18 (O)

[문제 3] The connection to the server localhost:8080 was refused - did you specify the right host or port?

kubectl 명령어 실행 시 아래과 같이 에러 발생

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

해결
아래의 명령어를 실행

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

* ref