[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 cluster install guide (설치 가이드)  (0) 2022.04.22
[RHOCP4] 계정관리 - 권한 수정 (Role Binding)  (0) 2022.01.22
[RHOCP4] 계정관리 - 계정 수정 및 삭제 (시크릿)  (0) 2022.01.21
[RHOCP4] 계정관리 - 계정 생성 및 추가  (0) 2022.01.20
[RHOCP4] openshift에서 k9s 설치 및 사용방법  (0) 2022.01.10
'Container' 카테고리의 다른 글
  • [k8s] k8s cluster install guide (설치 가이드)
  • [RHOCP4] 계정관리 - 권한 수정 (Role Binding)
  • [RHOCP4] 계정관리 - 계정 수정 및 삭제 (시크릿)
  • [RHOCP4] 계정관리 - 계정 생성 및 추가
레시피 마스터
레시피 마스터
클라우드 환경에서 OS, 자동화, 컴퓨팅등 알고 있는 지식으로 공유하는데 활용
  • 레시피 마스터
    클라우드 구축 레시피
    레시피 마스터
  • 전체
    오늘
    어제
    • 분류 전체보기 (66) N
      • Linux (8)
      • Virtualization (1)
      • OpenStack (2)
      • Container (12)
      • 서버_OS (18) N
      • 가상화 (5) N
      • 클라우드 컴퓨팅 (5)
      • 컨테이너 플랫폼 (4)
      • 자동화 (3) N
      • 데이터베이스 (2)
      • 모니터링 (6)
  • 블로그 메뉴

    • 홈
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    rhel
    linux 자동화
    kickstart
    virt-install
    컨테이너플랫폼
    rhocp4
    pxe 부팅
    cli vm 생성
    클러스터운영
    리눅스 가상화
    KVM
    iso 설치
    linux 배포
    노드문제해결
    oc명령어
  • 최근 댓글

  • 최근 글

  • 반응형
  • hELLO· Designed By정상우.v4.10.3
레시피 마스터
[RHOCP4] RHEL8 worker 노드 추가
상단으로

티스토리툴바