Woogie On & On
article thumbnail

OpenShift 4.13 UPI 설치 방법 (HTTP, LB 구성)

https://woogieonxon.tistory.com/entry/OpenShift-413-UPI-%EC%84%A4%EC%B9%98-%EB%B0%A9%EB%B2%95HTTP-LB-%EA%B5%AC%EC%84%B1

OpenShift 4.13 UPI 설치 방법 (DNS 구성)

https://woogieonxon.tistory.com/entry/OpenShift-413-UPI-%EC%84%A4%EC%B9%98-%EB%B0%A9%EB%B2%95-DNS-%EA%B5%AC%EC%84%B1

OpenShift 4.13 UPI 설치 방법(bootstrap, master, worker)

Bootstrap 구성

CoreOS 부팅 화면

 

네트워크 설정

nmtui
 
IP Address: 172.16.10.106/24
Gateway: 172.16.10.1
DNS servers: 172.16.10.103


hostname 확인

hostname

hostname 출력 결과 예시

bootstrap.team4.team4.local

Ignition 설치

coreos-installer install --ignition-url=http://172.16.10.105:8080/ign/master.ign /dev/sda \
--insecure-ignition --copy-network

재부팅

reboot

Master 1~3 구성

CoreOS 부팅 화면


네트워크 설정

nmtui
 
IP Address: 172.16.10.(107,108,109)/24
Gateway: 172.16.10.1
DNS servers: 172.16.10.103

hostname 확인

hostname

hostname 출력 결과 예시

#master1
master1.team4.team4.local

#master2
master2.team4.team4.local

#master3
master3.team4.team4.local

Ignition 설치

coreos-installer install --ignition-url=http://172.16.10.105:8080/ign/master.ign /dev/sda \
--insecure-ignition --copy-network

재부팅

reboot

Bootstrap-Complete 실행 (Infra 서버)

kubeconfig 환경변수 추가

export KUBECONFIG=/root/ocp/config/auth/kubeconfig

Node 확인


Master 1,2,3의 Status가 'Not Ready''Ready'로 바뀔 때까지 확인합니다.
oc get nodes

Status 변경 확인


bootstrap-compete 실행

cd /usr/local/bin
./openshift-install wait-for bootstrap-complete --log-level=info --dir=/root/ocp/config/

Worker 1~3 구성

CoreOS 부팅 화면


네트워크 설정

nmtui

IP Address: 172.16.10.(110,111,112)/24
Gateway: 172.16.10.1
DNS servers: 172.16.10.103

hostname 확인

hostname

hostname 출력 결과 예시

#worker1
worker1.team4.team4.local

#worker2
worker2.team4.team4.local

#worker3
worker3.team4.team4.local

Ignition 설치

coreos-installer install --ignition-url=http://172.16.10.105:8080/ign/worker.ign /dev/sda \
--insecure-ignition --copy-network

재부팅

reboot

Install-Complete 실행 (Infra 서버)

인증서 서명 요청 (CSR) 확인

CSR 확인 후 'Pending' 상태를 'Approved'로 바꿔줘야 한다.
oc get csr

Condition 확인


스크립트 파일 생성 (CSR 전체 승인)

cd /usr/local/bin/
vi csr.sh

스크립트 내용 추가 (CSR 전체 승인)

#!/bin/bash

for csr_name in $(oc get csr | grep -o '^csr-[a-zA-Z0-9]*'); do
  oc adm certificate approve "$csr_name"
done

 


스크립트 실행

sh csr.sh

인증서 서명 요청 (CSR) 변경 확인

oc get csr

Node 확인

oc get nodes

Node 및 Status 확인


install-complete 실행

./openshift-install wait-for install-complete --dir=/root/ocp/config/ --log-level=info

web-console url, id, pw 확인


Web-console 접속

Local PC DNS 접속 정보 수정


web-console 접속


접속 화면



📋 참고 : https://altocloudwise.com/24
profile

Woogie On & On

@Woogie On & On

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!

검색 태그