OpenShift Node 호스트 설치입니다. OpenShift Origin Comprehensive Deployment Guide를 참고하여 설치하였습니다.
OpenShift 설치 전 필요한 것들
OpenShift Origin을 설치하려면 아래 서비스를 네트워크에서 사용할 수 있어야 합니다.
DNS
MongoDB
ActiveMQ
또한 호스트(Broker, Node)에는 아래 클라이언트가 설치되어 있어야 합니다.
NTP
MCollective
1. 필수사항: 호스트 시스템 준비
이 항목은 Broker와 Node 호스트를 위해 필요한 절차입니다.
1.1 OpenShift Origin 저장소 설정
openshift-dependencies RPM 저장소 설정
cat <<EOF> /etc/yum.repos.d/openshift-origin-deps.repo [openshift-origin-deps] name=openshift-origin-deps baseurl=https://mirror.openshift.com/pub/origin-server/release/4/rhel-6/dependencies/x86_64/ gpgcheck=0 enabled=1
EOF
파일 생성 확인
# cat /etc/yum.repos.d/openshift-origin-deps.repo
[openshift-origin-deps]
name=openshift-origin-deps
baseurl=https://mirror.openshift.com/pub/origin-server/release/4/rhel-6/dependencies/x86_64/
gpgcheck=0
enabled=1
openshift-origin RPM 저장소 설정
cat <<EOF> /etc/yum.repos.d/openshift-origin.repo
[openshift-origin]
name=openshift-origin
baseurl=https://mirror.openshift.com/pub/origin-server/release/4/rhel-6/packages/x86_64/
gpgcheck=0
enabled=1
EOF
파일 생성 확인
# cat /etc/yum.repos.d/openshift-origin.repo
[openshift-origin]
name=openshift-origin
baseurl=https://mirror.openshift.com/pub/origin-server/release/4/rhel-6/packages/x86_64/
gpgcheck=0
enabled=1
1.1.1. EPEL 저장소
최신 버전의 epel-release 패키지를 설치합니다. 최신 버전의 epel-release의 RPM 파일 경로는 http://download.fedoraproject.org/pub/epel/6/i386/repoview/epel-release.html 에서 확인할 수 있습니다.
yum install -y --nogpgcheck ${url_of_the_latest_epel-release_rpm}
설치 결과
# yum install -y --nogpgcheck http://mirror.premi.st/epel/6/i386/epel-release-6-8.noarch.rpm
Loaded plugins: amazon-id, rhui-lb
epel-release-6-8.noarch.rpm | 14 kB 00:00:00
Examining /var/tmp/yum-root-GP7kyR/epel-release-6-8.noarch.rpm: epel-release-6-8.noarch
Marking /var/tmp/yum-root-GP7kyR/epel-release-6-8.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:6-8 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================
Package Arch Version Repository Size
===================================================================================================
Installing:
epel-release noarch 6-8 /epel-release-6-8.noarch 22 k
Transaction Summary
===================================================================================================
Install 1 Package
Total size: 22 k
Installed size: 22 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-6-8.noarch 1/1
Verifying : epel-release-6-8.noarch 1/1
Installed:
epel-release.noarch 0:6-8
Complete!
/etc/yum.repos.d/epel.repo 파일 수정
아래 파란색으로 표시한 부분을 추가해줍니다.
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
exclude=*passenger* nodejs*
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
1.1.2. "옵션" 저장소 설정 (RHEL 환경에서만 적용됩니다.)
"Optional" 저장소를 사용가능하도록 설정합니다.
yum-config-manager --enable rhel-6-server-optional-rpms
yum-config-manager가 없는 경우 설치해줍니다.
# yum search yum-config-manager
Loaded plugins: amazon-id, rhui-lb
epel/x86_64/metalink | 14 kB 00:00:00
epel | 4.4 kB 00:00:00
openshift-origin | 2.9 kB 00:00:00
openshift-origin-deps | 2.9 kB 00:00:00
rhui-REGION-client-config-server-7 | 2.9 kB 00:00:00
rhui-REGION-rhel-server-releases | 3.7 kB 00:00:00
(1/6): rhui-REGION-client-config-server-7/x86_64/primary_db | 3.3 kB 00:00:00
(2/6): rhui-REGION-rhel-server-releases/7Server/x86_64/primary_db | 6.0 MB 00:00:00
(3/6): openshift-origin/primary_db | 44 kB 00:00:01
(4/6): epel/x86_64/group_gz | 237 kB 00:00:02
(5/6): openshift-origin-deps/primary_db | 481 kB 00:00:03
(6/6): epel/x86_64/primary_db | 6.3 MB 00:00:04
(1/4): rhui-REGION-rhel-server-releases/7Server/x86_64/group_gz | 133 kB 00:00:00
(2/4): rhui-REGION-rhel-server-releases/7Server/x86_64/updateinfo | 62 kB 00:00:00
(3/4): epel/x86_64/updateinfo | 841 kB 00:00:03
(4/4): epel/x86_64/pkgtags | 908 kB 00:00:03
========================================== Matched: yum-config-manager ===========================================
yum-utils.noarch : Utilities based around the yum package manager
# yum install yum-utils.noarch
Loaded plugins: amazon-id, rhui-lb
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-25.el7_0 will be installed
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-25.el7_0.noarch
--> Running transaction check
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Installing:
yum-utils noarch 1.1.31-25.el7_0 rhui-REGION-rhel-server-releases 111 k
Installing for dependencies:
python-kitchen noarch 1.1.1-5.el7 rhui-REGION-rhel-server-releases 266 k
Transaction Summary
==================================================================================================================
Install 1 Package (+1 Dependent package)
Total download size: 377 k
Installed size: 1.7 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): python-kitchen-1.1.1-5.el7.noarch.rpm | 266 kB 00:00:00
(2/2): yum-utils-1.1.31-25.el7_0.noarch.rpm | 111 kB 00:00:00
------------------------------------------------------------------------------------------------------------------
Total 938 kB/s | 377 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python-kitchen-1.1.1-5.el7.noarch 1/2
Installing : yum-utils-1.1.31-25.el7_0.noarch 2/2
Verifying : python-kitchen-1.1.1-5.el7.noarch 1/2
Verifying : yum-utils-1.1.31-25.el7_0.noarch 2/2
Installed:
yum-utils.noarch 0:1.1.31-25.el7_0
Dependency Installed:
python-kitchen.noarch 0:1.1.1-5.el7
Complete!
1.2. 업데이트 및 NTP
1.2.1. 방화벽 설치
firewalld를 삭제하고 대신 방화벽 규칙 관리를 위해서 lokkit을 사용합니다.
yum erase -y firewalld
yum install -y lokkit
! Trouble Shooting
'밤을 지새다 > OpenShift Origin' 카테고리의 다른 글
OpenShift Broker 이중화 구성 (HAProxy + 2 Broker Host) (0) | 2014.10.15 |
---|---|
OpenShift Origin 설치 트러블 슈팅: Node (0) | 2014.09.22 |
OpenShift Origin V3 (2) | 2014.08.14 |
ApplicationsController- create (0) | 2014.08.05 |
공부할 것들 (0) | 2014.07.28 |