본문 바로가기

728x90

리눅스

[kubernetes] kubectl explain 명령 kubectl explain 명령 List the fields for supported resources. 사용법 Examples: # Get the documentation of the resource and its fields kubectl explain pods # Get the documentation of a specific field of a resource kubectl explain pods.spec.containers Options: --api-version='': Get different explanations for particular API version (API group/version) --recursive=false: Print the fields of fields (Curre.. 더보기
[kubernetes] kubectl get events 명령 kubectl get events 명령 Display one or many resources. 사용법 Examples: # List all pods in ps output format kubectl get pods # List all pods in ps output format with more information (such as node name) kubectl get pods -o wide # List a single replication controller with specified NAME in ps output format kubectl get replicationcontroller web # List deployments in JSON output format, in the "v1" vers.. 더보기
[draft] macOS에 kubectl 설치 및 설정 macOS에 kubectl 설치 및 설정최신 버전(1.25.x)brew install kubectlkubectl version --client --short$ kubectl version --client --shortFlag --short has been deprecated, and will be removed in the future. The --short output will become the default.Client Version: v1.25.1Kustomize Version: v4.5.71.22.10 버전 설치sudo curl -fsSL https://storage.googleapis.com/kubernetes-release/release/v1.22.10/bin/darwin/amd64/kube.. 더보기
[kubernetes] ReplicationController kubernetes ReplicationController 레플리케이션 컨트롤러 생성 - 레이블 셀렉터 - 파드 템플릿 - 복제본 수 nginx-rc.yaml 편집 vim nginx-rc.yaml apiVersion: v1 kind: ReplicationController metadata: name: nginx-rc spec: replicas: 3 selector: app: webserver env: prod template: metadata: name: nginx-pod labels: app: webserver env: prod spec: containers: - name: nginx-container image: nginx:latest ports: - containerPort: 8080 kubectl.. 더보기
[kubernetes] minikube를 이용한 kubernetes 클러스터 배포 minikube를 이용한 kubernetes 클러스터 배포 minikube - kubernetes cluster 구성 도구 1. KVM install https://help.ubuntu.com/community/KVM/Installation sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils sudo adduser `id -un` libvirt sudo adduser `id -un` kvm sudo adduser `id -un` libvirt-qemu sudo reboot systemctl is-active libvirtd 2. minikube install https://minikube.sigs.k8s.io/d.. 더보기
Vagrant를 사용하여 Ubuntu 가상 머신을 설치하고 배포하는 방법 Vagrant를 사용하여 Ubuntu 가상 머신을 설치하고 배포하는 방법 테스트 환경 $ cat /etc/os-release NAME="Ubuntu" VERSION="20.04.4 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.4 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy.. 더보기
[리눅스] Ubuntu 20.04에 VirtualBox를 설치하는 방법 Ubuntu 20.04에 VirtualBox를 설치하는 방법 테스트 환경 $ cat /etc/os-release NAME="Ubuntu" VERSION="20.04.4 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.4 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy.. 더보기
[kubernetes] kubespray를 이용한 kubernetes 클러스터 배포 kubespray를 이용한 kubernetes 클러스터 배포 릴리스 히스토리 쿠버네티스 프로젝트는 가장 최신의 3개 마이너(minor) 릴리스(1.25, 1.24, 1.23)에 대해서 릴리스 브랜치를 관리한다. 쿠버네티스 1.19 및 이후 신규 버전은 약 1년간 패치 지원을 받을 수 있다. 쿠버네티스 1.18 및 이전 버전은 약 9개월간의 패치 지원을 받을 수 있다. 쿠버네티스 버전은 x.y.z 의 형태로 표현되는데, x 는 메이저(major) 버전, y 는 마이너(minor), z 는 패치(patch) 버전을 의미하며, 이는 시맨틱(semantic) 버전의 용어를 따른 것이다. - https://kubernetes.io/ko/releases/ 버전 차이 정책(Version Skew Policy) - h.. 더보기

728x90