2. 2종류의 파드가 3개씩 총 6개가 배포됐는지 확인합니다.

    [root@m-k8s ~]# kubectl get pods
    NAME                             READY   STATUS    RESTARTS   AGE 
    lb-hname-pods-79b95c7c7b-7lplh   1/1     Running   0          98s
    lb-hname-pods-79b95c7c7b-7lplh   1/1     Running   0          105s
    lb-hname-pods-79b95c7c7b-tx45r   1/1     Running   0          98s
    lb-ip-pods-6c6bb59b4-4759t       1/1     Running   0          72s
    lb-ip-pods-6c6bb59b4-f6fpl       1/1     Running   0          72s
    lb-ip-pods-6c6bb59b4-l4wmt       1/1     Running   0          80s 

    3. 인그레스와 마찬가지로 사전에 정의된 오브젝트 스펙으로 MetalLB를 구성합니다. 이렇게 하면 MetalLB에 필요한 요소가 모두 설치되고 독립적인 네임스페이스(metallb-system)도 함께 만들어집니다.

    [root@m-k8s ~]# kubectl apply -f ~/_Book_k8sInfra/ch3/3.3.4/metallb.yaml
    namespace/metallb-system created
    podsecuritypolicy.policy/speaker created
    serviceaccount/controller created
    serviceaccount/speaker created
    clusterrole.rbac.authorization.k8s.io/metallb-system:controller created
    clusterrole.rbac.authorization.k8s.io/metallb-system:speaker created
    role.rbac.authorization.k8s.io/config-watcher created
    clusterrolebinding.rbac.authorization.k8s.io/metallb-system:controller created
    clusterrolebinding.rbac.authorization.k8s.io/metallb-system:speaker created
    rolebinding.rbac.authorization.k8s.io/config-watcher created
    daemonset.apps/speaker created
    deployment.apps/controller created
    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.