[RHOCP4] RHEL8 worker 노드 추가

2022. 2. 5. 09:01·오픈소스 클라우드/Container
728x90
반응형

RHOCP Cluster에 RHEL8 (8.4) worker node 추가 방법에 대한 내용입니다.

 

기존에 사용했던 방법은 동일하지만, RHEL7과는 다른 Repo를 활성화해야하는 항목만 변경되었습니다.

 

 

sub등록 및 필요한 repo 활성화

[root@worker3 ~]# subscription-manager register --username=<user id> --password=<passwd>

[root@worker3 ~]# subscription-manager refresh
You are attempting to use a locale: "ko_KR.UTF-8" that is not fully supported by this system.
로컬 데이터가 모두 재생되었습니다

[root@worker3 ~]# subscription-manager list --available --matches '*OpenShift*'
You are attempting to use a locale: "ko_KR.UTF-8" that is not fully supported by this system.

[root@worker3 ~]# subscription-manager attach --pool=xxxxxxx
You are attempting to use a locale: "ko_KR.UTF-8" that is not fully supported by this system.
서브스크립션을 제대로 첨부했습니다: Red Hat OpenShift Platform Plus (Bare Metal Node), Standard (1-2 sockets, NFR, Partner Only)


[root@worker3 ~]# subscription-manager repos --disable="*"
You are attempting to use a locale: "ko_KR.UTF-8" that is not fully supported by this system.


[root@worker3 yum.repos.d]# subscription-manager repos \
>     --enable="rhel-8-for-x86_64-baseos-rpms" \
>     --enable="rhel-8-for-x86_64-appstream-rpms" \
>     --enable="rhocp-4.9-for-rhel-8-x86_64-rpms" \
>     --enable="fast-datapath-for-rhel-8-x86_64-rpms"


[root@worker3 yum.repos.d]# systemctl disable firewalld --now

 

 

1. hosts 파일작성

###############################################################################
# Required configuration variables                                            #
###############################################################################
#openshift_kubeconfig_path="~/.kube/config"
openshift_kubeconfig_path="/root/ocp/config/auth/kubeconfig"


# For running RHEL worker scaleup
[new_workers]
worker3.ocp-dc.hk.com ansible_host=55.55.35.218

 

 

2. scaleup.yml 실행

[root@bastion inventory]#ansible-playbook -i hosts ../playbooks/scaleup.yml

 

 

3. 노드 조인 및 정보 확인

ansible을 통해 자동으로 노드에 추가할 수 있도록 approve까지 진행해준다.

 

[root@bastion inventory]#oc get node
NAME                    STATUS   ROLES    AGE   VERSION
infra1.ocp-dc.hk.com    Ready    infra    21d   v1.22.0-rc.0+894a78b
infra2.ocp-dc.hk.com    Ready    infra    21d   v1.22.0-rc.0+894a78b
master1.ocp-dc.hk.com   Ready    master   21d   v1.22.0-rc.0+894a78b
master2.ocp-dc.hk.com   Ready    master   21d   v1.22.0-rc.0+894a78b
master3.ocp-dc.hk.com   Ready    master   21d   v1.22.0-rc.0+894a78b
worker1.ocp-dc.hk.com   Ready    worker   21d   v1.22.0-rc.0+894a78b
worker2.ocp-dc.hk.com   Ready    worker   21d   v1.22.0-rc.0+894a78b
worker3.ocp-dc.hk.com   Ready    worker   97m   v1.22.3+e790d7f
728x90
반응형

'오픈소스 클라우드 > Container' 카테고리의 다른 글

[k8s] k8s Dashboard install guide (설치 가이드)  (0) 2022.04.23
[k8s] k8s cluster install guide (설치 가이드)  (0) 2022.04.22
[RHOCP4] 계정관리 - 권한 수정 (Role Binding)  (0) 2022.01.22
[RHOCP4] 계정관리 - 계정 수정 및 삭제 (시크릿)  (0) 2022.01.21
[RHOCP4] 계정관리 - 계정 생성 및 추가  (0) 2022.01.20
'오픈소스 클라우드/Container' 카테고리의 다른 글
  • [k8s] k8s Dashboard install guide (설치 가이드)
  • [k8s] k8s cluster install guide (설치 가이드)
  • [RHOCP4] 계정관리 - 권한 수정 (Role Binding)
  • [RHOCP4] 계정관리 - 계정 수정 및 삭제 (시크릿)
깐돌
깐돌
일상과 기술 콘텐츠를 균형있게 다루기 위한 블로그.
  • 깐돌
    깐돌이의 일상이야기
    깐돌
  • 전체
    오늘
    어제
    • 분류 전체보기 (91) N
      • 일상이야기 (2) N
        • 취미 (0)
        • 잡동사니 (0)
        • 맛집 리스트 (2) N
      • 오픈소스 클라우드 (88) N
        • Linux (36)
        • Virtualization (7) N
        • OpenStack (8)
        • Container (21) N
        • Storage (3)
        • Monitoring (9)
        • Database (2)
        • Infra as Code (IaC) (2)
  • 블로그 메뉴

    • 홈
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    galera cluster 복구
    openstack #ansible #floatingip #자동화 #클라우드 #ansible cloud module
    '서울 매운 냉면
    sriov lshw
    야탑 짬뽕
    openstack #cinder #volumedeletion #사용량초기화 #quotausagereset #openstackansible
    galera cluster restore
    qcow2 convert
    qemu-img convert
    ubuntu machine id
    #kvm #livemigration #rhel8 #virsh #qcow2 #vm이전 #호스트간마이그레이션 #가상화 #libvirt
    야탑 굴짬뽕
    동묘앞역 맛집'
    podman
    '낙산냉면'
  • 최근 댓글

  • 최근 글

  • 반응형
    250x250
  • hELLO· Designed By정상우.v4.10.3
깐돌
[RHOCP4] RHEL8 worker 노드 추가
상단으로

티스토리툴바