본문 바로가기

728x90

k8s

[kubernetes] 쿠버네티스 디플로이먼트 쿠버네티스 디플로이먼트(kubernetes deployment) 디플로이먼트(Deployment) 는 파드와 레플리카셋(ReplicaSet)에 대한 선언적 업데이트를 제공한다. 디플로이먼트에서 의도하는 상태 를 설명하고, 디플로이먼트 컨트롤러(Controller)는 현재 상태에서 의도하는 상태로 비율을 조정하며 변경한다. 새 레플리카셋을 생성하는 디플로이먼트를 정의하거나 기존 디플로이먼트를 제거하고, 모든 리소스를 새 디플로이먼트에 적용할 수 있다. 디플로이먼트 생성(kubectl create deployment) kubectl create deployment myapp --image=nginx $ kubectl create deployment myapp --image=nginx deployment.ap.. 더보기
[kubernetes] kubectl exec 명령 kubectl exec 명령 Execute a command in a container. 사용법 Examples: # Get output from running the 'date' command from pod mypod, using the first container by default kubectl exec mypod -- date # Get output from running the 'date' command in ruby-container from pod mypod kubectl exec mypod -c ruby-container -- date # Switch to raw terminal mode; sends stdin to 'bash' in ruby-container from pod mypod .. 더보기
[kubernetes] kubectl delete 명령 kubectl delete 명령 Delete resources by file names, stdin, resources and names, or by resources and label selector. 사용법 Examples: # Delete a pod using the type and name specified in pod.json kubectl delete -f ./pod.json # Delete resources from a directory containing kustomization.yaml - e.g. dir/kustomization.yaml kubectl delete -k dir # Delete a pod based on the type and name in the JSON passed i.. 더보기
[kubernetes] kubectl run 명령 kubectl run 명령 Create and run a particular image in a pod. 사용법 Examples: # Start a nginx pod kubectl run nginx --image=nginx # Start a hazelcast pod and let the container expose port 5701 kubectl run hazelcast --image=hazelcast/hazelcast --port=5701 # Start a hazelcast pod and set environment variables "DNS_DOMAIN=cluster" and "POD_NAMESPACE=default" in the container kubectl run hazelcast --imag.. 더보기
[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.. 더보기
[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