[kubenetes] 2. 쿠버네티스 오브젝트

kubenetes
Author
chan2slo chan2slo
Date
2022-07-25 21:21
Views
1019

쿠버네티스만이 가지는 고유의 특징

모든 리소스는 오브젝트 형태로 관리된다.
쿠버네티스는 대부분의 리소스를 오브젝트라고 불리는 형태로 관리
스웜모드의 서비스도 컨테이너 리소스의 집합을 정의한 것이기 때문에 일종의 오브젝트라고 볼수있다.
쿠버네티스에서는 컨테이너의 집합(pods), 컨테이너의 집합을 관리하는 컨트롤러(replica set), 심지어 사용(service account), 노드(node)까지도 하나의 오브젝트로 사용할수 있다.

오브젝트들 확인

root@Kube-master1:~# kubectl api-resources | head
NAME                              SHORTNAMES   APIVERSION                             NAMESPACED   KIND
bindings                                       v1                                     true         Binding
componentstatuses                 cs           v1                                     false        ComponentStatus
configmaps                        cm           v1                                     true         ConfigMap
endpoints                         ep           v1                                     true         Endpoints
events                            ev           v1                                     true         Event
limitranges                       limits       v1                                     true         LimitRange
namespaces                        ns           v1                                     false        Namespace
nodes                             no           v1                                     false        Node
persistentvolumeclaims            pvc          v1                                     true         PersistentVolumeClaim

오브젝트에 관한 설명

root@Kube-master1:~# kubectl explain pod
KIND:     Pod
VERSION:  v1

DESCRIPTION:
     Pod is a collection of containers that can run on a host. This resource is
     created by clients and scheduled onto hosts.
Total Reply 0