구성요소

node

$ kubectl get node
NAME                                         STATUS   ROLES    AGE     VERSION
kimdubi-test-default-w-46niimovcith-node-0   Ready    <none>   4h56m   v1.17.6
kimdubi-test-default-w-46niimovcith-node-1   Ready    <none>   4h56m   v1.17.6
kimdubi-test-default-w-46niimovcith-node-2   Ready    <none>   4h56m   v1.17.6
  • worker node 3개

Pod

$ kubectl get pod
NAME                                              READY   STATUS      RESTARTS   AGE
kimdubi-test-redis-cluster-0                      1/1     Running     0          3h10m
kimdubi-test-redis-cluster-1                      1/1     Running     0          3h10m
kimdubi-test-redis-cluster-2                      1/1     Running     2          3h10m
kimdubi-test-redis-cluster-3                      1/1     Running     1          3h10m
kimdubi-test-redis-cluster-4                      1/1     Running     1          3h10m
kimdubi-test-redis-cluster-5                      1/1     Running     1          3h10m
kimdubi-test-redis-cluster-cluster-create-gjwsk   0/1     Completed   0          3h10m
  • redis cluster 용도의 Pod 6개
  • Job / batch 용으로 1회성으로 생성된 Pod 1개

Service

$ kubectl get service
NAME                                  TYPE        CLUSTER-IP    EXTERNAL-IP   PORT(S)              AGE
kimdubi-test-redis-cluster            ClusterIP   10.254.8.60   <none>        6379/TCP             3h13m
kimdubi-test-redis-cluster-headless   ClusterIP   None          <none>        6379/TCP,16379/TCP   3h13m
  • headless service
  • 내부에서 동작하는 ClusterIP service

StatefulSet

$ kubectl get statefulset
NAME                         READY   AGE
kimdubi-test-redis-cluster   6/6     3h13m
  • Pod 관리하는 statefulset 1개

Job

NAME                                                COMPLETIONS   DURATION   AGE
job.batch/kimdubi-test-redis-cluster-cluster-create   1/1           44s        23h
job.batch/kimdubi-test-redis-cluster-cluster-update   1/1           2s         26h
  • hook 으로 동작하는 job

pvc / pv

$ kubectl get pv,pvc
NAME                                                        CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                                             STORAGECLASS   REASON   AGE
persistentvolume/pvc-10412da7-46bb-43e0-b791-a810774b7c87   2Gi        RWO            Delete           Bound    default/redis-data-kimdubi-test-redis-cluster-1   kimdubi-test            3h15m
persistentvolume/pvc-3b7c88ff-6e56-428a-885f-58301e05478f   2Gi        RWO            Delete           Bound    default/redis-data-kimdubi-test-redis-cluster-0   kimdubi-test            3h15m
persistentvolume/pvc-6a5aa328-8ca2-4450-a308-1c07cc7aab60   2Gi        RWO            Delete           Bound    default/redis-data-kimdubi-test-redis-cluster-2   kimdubi-test            3h15m
persistentvolume/pvc-92e41155-d644-4799-b974-2a35c19ada8b   2Gi        RWO            Delete           Bound    default/redis-data-kimdubi-test-redis-cluster-4   kimdubi-test            3h15m
persistentvolume/pvc-b198c891-2d0c-474e-9113-2ad0f198a336   2Gi        RWO            Delete           Bound    default/redis-data-kimdubi-test-redis-cluster-3   kimdubi-test            3h15m
persistentvolume/pvc-b2fe7621-e748-4cc7-aa4c-2efee2fc0cd8   2Gi        RWO            Delete           Bound    default/redis-data-kimdubi-test-redis-cluster-5   kimdubi-test            3h15m

NAME                                                            STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
persistentvolumeclaim/redis-data-kimdubi-test-redis-cluster-0   Bound    pvc-3b7c88ff-6e56-428a-885f-58301e05478f   2Gi        RWO            kimdubi-test   3h15m
persistentvolumeclaim/redis-data-kimdubi-test-redis-cluster-1   Bound    pvc-10412da7-46bb-43e0-b791-a810774b7c87   2Gi        RWO            kimdubi-test   3h15m
persistentvolumeclaim/redis-data-kimdubi-test-redis-cluster-2   Bound    pvc-6a5aa328-8ca2-4450-a308-1c07cc7aab60   2Gi        RWO            kimdubi-test   3h15m
persistentvolumeclaim/redis-data-kimdubi-test-redis-cluster-3   Bound    pvc-b198c891-2d0c-474e-9113-2ad0f198a336   2Gi        RWO            kimdubi-test   3h15m
persistentvolumeclaim/redis-data-kimdubi-test-redis-cluster-4   Bound    pvc-92e41155-d644-4799-b974-2a35c19ada8b   2Gi        RWO            kimdubi-test   3h15m
persistentvolumeclaim/redis-data-kimdubi-test-redis-cluster-5   Bound    pvc-b2fe7621-e748-4cc7-aa4c-2efee2fc0cd8   2Gi        RWO            kimdubi-test   3h15m

configmap

$ kubectl get configmap
NAME                                 DATA   AGE
kimdubi-test-redis-cluster-default   1      3h15m
kimdubi-test-redis-cluster-scripts   2      3h15m