[Kubernetes] kubectl auth can-i command
기본 구조 kubectl auth can-i [액션] [리소스 종류] [--namespace namespace] [--subresource subresource] [--list] # 현재 인증된 사용자가 파드를 가져올 수 있는지 여부를 확인할 수 있다. kubectl auth can-i get pods [명령어] --help를 입력하면 더...
기본 구조 kubectl auth can-i [액션] [리소스 종류] [--namespace namespace] [--subresource subresource] [--list] # 현재 인증된 사용자가 파드를 가져올 수 있는지 여부를 확인할 수 있다. kubectl auth can-i get pods [명령어] --help를 입력하면 더...
기본 구조 클러스터의 API 서버와 DNS 서비스의 IP 주소, 포트, 클러스터의 CA 인증서, API 서버의 버전 정보 등을 포함 kubectl cluster-info [명령어] --help를 입력하면 더 다양한 옵션들을 찾을 수 있다. Option --context: 사용할 컨텍스트를 지정 ...
기본 구조 kubectl explain [리소스 종류] # 리소스의 필드와 값을 확인할 수 있다. kubectl explain podPod [명령어] --help를 입력하면 더 다양한 옵션들을 찾을 수 있다. Option --recursive, -r: 모든 참조된 리소스의 필드와 값을 출력 # Pod 리소스와 관련된...
기본 구조 kubectl drain [노드 이름] # my-node 이름을 가진 노드에서 실행 중인 파드를 안전하게 다른 노드로 이동하고, 노드를 비활성화 kubectl drain my-node [명령어] --help를 입력하면 더 다양한 옵션들을 찾을 수 있다. Option --ignore-daemonsets: 데몬셋을 무시하...
git pull branch를 생성하기 위해 git project의 master가 올린 repo를 pull하여 가져온다. git pull "원격 repo 주소" git branch를 입력하여 원격 repo와 연결된 master branch가 생성되어 있는 것을 볼 수 있다. git branch ...
기본 구조 kubectl cordon [노드 이름] # my-node 이름을 가진 노드를 Scheduling 하지 않도록 설정 kubectl cordon my-node [명령어] --help를 입력하면 더 다양한 옵션들을 찾을 수 있다. Option --ignore-daemonsets: 데몬셋을 무시하고 노드를 cordon 처리...
docker ftp 공유할 폴더 생성 sudo mkdir /appdata/appuser/ftpdata container 생성 및 백업 sudo docker run --net=host -d -v /appdata/appuser/ftpdata:/home/vstfpd -it --name data-ftp --res...
기본 구조 kubectl cp [소스] [대상] # Local Machine의 /path/to/local/file 파일을 my-pod 파드의 /path/to/destination 경로로 복사할 수 있다. kubectl cp /path/to/local/file my-pod:/path/to/destination [명령어] --help를 입력하...
iTerm2 설치 brew install iterm2 Homebrew 설치 참고 oh my zsh 설치 iTerm2에 다음 명령어를 입력한다. sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"...
기본 구조 kubectl delete [리소스 유형] [리소스 이름] # Pod 삭제하려면 다음과 같이 입력 kubectl delete pod [파드 이름] [명령어] --help를 입력하면 더 다양한 옵션들을 찾을 수 있다. Option --all: 모든 리소스를 삭제 --force: 강제 삭제 ...