반응형
kubernetes MetalLB 설치
네임스페이스 생성
$ kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.9.3/manifests/namespace.yaml
namespace/metallb-system created
MetalLB Components 생성
$ kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.9.3/manifests/metallb.yaml
podsecuritypolicy.policy/controller created
podsecuritypolicy.policy/speaker created
serviceaccount/controller unchanged
serviceaccount/speaker unchanged
clusterrole.rbac.authorization.k8s.io/metallb-system:controller configured
clusterrole.rbac.authorization.k8s.io/metallb-system:speaker configured
role.rbac.authorization.k8s.io/config-watcher configured
role.rbac.authorization.k8s.io/pod-lister created
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:controller unchanged
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:speaker unchanged
rolebinding.rbac.authorization.k8s.io/config-watcher unchanged
rolebinding.rbac.authorization.k8s.io/pod-lister created
daemonset.apps/speaker created
deployment.apps/controller created
Secret 생성
$ kubectl create secret generic -n metallb-system memberlist --from-literal=secretkey="$(openssl rand -base64 128)"
secret/memberlist created
metallb system 확인
$ kubectl get pods -n metallb-system
NAME READY STATUS RESTARTS AGE
controller-fb659dc8-44t79 1/1 Running 0 6m14s
speaker-dvwbq 1/1 Running 0 6m14s
speaker-jmkq2 1/1 Running 0 6m14s
speaker-snhrj 1/1 Running 0 6m14s
speaker-tm4cq 1/1 Running 0 6m14s
https://metallb.universe.tf/installation/
728x90
반응형
'리눅스' 카테고리의 다른 글
kubernetes 클러스터 내 모든 네임스페이스의 파드 상태 확인 (0) | 2020.11.04 |
---|---|
[kubernetes] Jenkins 설치 방법 (0) | 2020.11.03 |
쿠버네티스에 Flannel 네트워크 플러그인을 설치하는 방법 (0) | 2020.11.03 |
[kubernetes] component statuses 에러 (0) | 2020.11.03 |
쿠버네티스 클러스터를 재구성하는 방법 (0) | 2020.11.02 |