티스토리 뷰

728x90
반응형

지금부터 살펴볼 내용은 어쩌면 지금까지 살펴본 다양한 Kubernetes 포스팅의 완결판이 될 수도 있을 것 같습니다.

지금까지 다양한 Component를 살펴보며 Kubernetes가 제공하는 Request Flow에 대해 알아보고 구성해 보았습니다.

다만 각 컴포넌트들을 직접 구성하기에는 자세히 설명을 하였지만 처음 접하는 분들에게는 어려운 과정이 될 것입니다.

이에 누구나 손쉽게 따라 구성해 볼 수 있게 Shell Script와 YAML 파일을 작성해 보았습니다.

이전 포스팅은 아래를 참고해 주시기 바랍니다.

 

[Container Management] Kubernetes Master Node 설치

[Container Management] Kubernetes Dashboard Install & Setting

[Container Management] Kubernetes Woker Node Install & Setting

[Container Management] Kubernetes Pod 생성 가이드

[Container Management] Kubernetes Service 생성 가이드

[Container Management] Kubernetes 애플리케이션 관리

[Container Management] Kubernetes ingress & ingress controller

Kubernetes One Step Install

먼저 살펴볼 내용은 Kubernetes를 One Step으로 설치하는 방법입니다.

혹시나 내용을 스킵하고 빠르게 수행해 보고 싶으신 분은 제일 하단으로 이동하시기 바랍니다.

 

1. Workstation 환경

VM Box (6.0.8)

OS

[root@kubemaster kubernetes_onestepboot]# uname -a 
Linux kubemaster 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux 
[root@kubemaster kubernetes_onestepboot]# 

Git Repository

https://github.com/sonnaraon/kubernetesonestepboot.git

2. Git Repository Clone

먼저 진행 할 작업은 사전에 만들어 둔 github repository에 있는 소스를 다운로드 받습니다.

- git install

[root@kubemaster ~]# yum install -y git
Last login: Sat Aug 17 17:13:52 2019
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: data.aonenetworks.kr
 * extras: data.aonenetworks.kr
 * updates: data.aonenetworks.kr
base                                                                                                                                                                                                                 | 3.6 kB  00:00:00     
extras                                                                                                                                                                                                               | 3.4 kB  00:00:00     
updates                                                                                                                                                                                                              | 3.4 kB  00:00:00     
(1/4): base/7/x86_64/primary_db                                                                                                                                                                                      | 6.0 MB  00:00:00     
(2/4): base/7/x86_64/group_gz                                                                                                                                                                                        | 166 kB  00:00:03     
(3/4): extras/7/x86_64/primary_db                                                                                                                                                                                    | 215 kB  00:00:04 
...
...
...
Installed:
  git.x86_64 0:1.8.3.1-20.el7                                                                                                                                                                                                               

Dependency Installed:
  perl.x86_64 4:5.16.3-294.el7_6                 perl-Carp.noarch 0:1.26-244.el7                    perl-Encode.x86_64 0:2.51-7.el7                perl-Error.noarch 1:0.17020-2.el7          perl-Exporter.noarch 0:5.68-3.el7            
  perl-File-Path.noarch 0:2.09-2.el7             perl-File-Temp.noarch 0:0.23.01-3.el7              perl-Filter.x86_64 0:1.49-3.el7                perl-Getopt-Long.noarch 0:2.40-3.el7       perl-Git.noarch 0:1.8.3.1-20.el7             
  perl-HTTP-Tiny.noarch 0:0.033-3.el7            perl-PathTools.x86_64 0:3.40-5.el7                 perl-Pod-Escapes.noarch 1:1.04-294.el7_6       perl-Pod-Perldoc.noarch 0:3.20-4.el7       perl-Pod-Simple.noarch 1:3.28-4.el7          
  perl-Pod-Usage.noarch 0:1.63-3.el7             perl-Scalar-List-Utils.x86_64 0:1.27-248.el7       perl-Socket.x86_64 0:2.010-4.el7               perl-Storable.x86_64 0:2.45-3.el7          perl-TermReadKey.x86_64 0:2.30-20.el7        
  perl-Text-ParseWords.noarch 0:3.29-4.el7       perl-Time-HiRes.x86_64 4:1.9725-3.el7              perl-Time-Local.noarch 0:1.2300-2.el7          perl-constant.noarch 0:1.27-2.el7          perl-libs.x86_64 4:5.16.3-294.el7_6          
  perl-macros.x86_64 4:5.16.3-294.el7_6          perl-parent.noarch 1:0.225-244.el7                 perl-podlators.noarch 0:2.5.1-3.el7            perl-threads.x86_64 0:1.87-4.el7           perl-threads-shared.x86_64 0:1.43-6.el7      
  rsync.x86_64 0:3.1.2-6.el7_6.1                

Complete!
[root@kubemaster ~]#

- git clone

[root@kubemaster ~]# mkdir git_repo
[root@kubemaster ~]# cd git_repo/
[root@kubemaster git_repo]# ls
[root@kubemaster git_repo]# git clone https://github.com/sonnaraon/kubernetesonestepboot.git
Cloning into 'kubernetesonestepboot'...
remote: Enumerating objects: 149, done.
remote: Counting objects: 100% (149/149), done.
remote: Compressing objects: 100% (89/89), done.
remote: Total 149 (delta 57), reused 146 (delta 54), pack-reused 0
Receiving objects: 100% (149/149), 32.82 KiB | 0 bytes/s, done.
Resolving deltas: 100% (57/57), done.
[root@kubemaster git_repo]# ls -la
drwxr-xr-x. 3 root root  35  817 11:18 .
dr-xr-x---. 4 root root 142  817 11:18 ..
drwxr-xr-x. 5 root root 100  817 11:18 kubernetesonestepboot
[root@kubemaster git_repo]# cd kubernetesonestepboot/
[root@kubemaster kubernetesonestepboot]# ls
ReadMe.adoc  kubernetes_onestepboot  kubernetes_onestepinstall
[root@kubemaster kubernetesonestepboot]# ls -la
drwxr-xr-x. 5 root root  100  817 11:18 .
drwxr-xr-x. 3 root root   35  817 11:18 ..
drwxr-xr-x. 8 root root  163  817 11:18 .git
-rw-r--r--. 1 root root 4212  817 11:18 ReadMe.adoc
drwxr-xr-x. 2 root root 4096  817 11:18 kubernetes_onestepboot
drwxr-xr-x. 2 root root   95  817 11:18 kubernetes_onestepinstall
[root@kubemaster kubernetesonestepboot]#

아래서 설명해 드리겠지만, 다운로드 받은 git repository kubernetesonestepboot project는

1) kubernetes_onestepinstall : kubernetes 설치용 Shell Script

2) kubernetes_onestepboot : kubernetes 기동 및 기본 환경 구성용 Shell Script

로 구성되어 있습니다.

kubernetes_onestepinstall 디렉토리 하위로 이동합니다.

[root@kubemaster kubernetes_onestepinstall]# ls -la
drwxr-xr-x. 2 root root   95  817 11:18 .
drwxr-xr-x. 5 root root  100  817 11:18 ..
-rwxr-xr-x. 1 root root 3474  817 11:18 0.kubernetesOneStepInstall.sh
-rw-r--r--. 1 root root   19  817 11:18 ReadMe.txt
-rw-r--r--. 1 root root  105  817 11:18 epel.repo
-rw-r--r--. 1 root root  105  817 11:18 kube.repo
[root@kubemaster kubernetes_onestepinstall]#

0.kubernetesOneStepInstall.sh에 포함되어 있는 내용은 다음과 같습니다.

#!/bin/bash
StartTime=$(date +%s)
echo "*****************************************************************************************************************************************"
echo "*****************************************************************************************************************************************"
echo "*****************************************************************************************************************************************"
echo "******************************************************* Kubernetes Node Install *********************************************************"
echo "*****************************************************************************************************************************************"
echo "*****************************************************************************************************************************************"
echo "*****************************************************************************************************************************************"

echo "#####"
echo "##### Set ENV"
echo "#####"
export k8sRepo=192.168.56.107
export dockerRepo="192.168.56.107:13000"

echo "#####"
echo "##### Check the firewall"
echo "#####"
count=$(systemctl status firewalld | grep dead | wc -l)
if(( "${count}" == 0 ));
then
        echo "firewalld이 기동되어 있습니다."
        echo "firewalld를 다운하시겠습니까? (y/n)"
        read word
        if [ "${word}" == "y" ];
        then
                systemctl stop firewalld
                echo "firewalld를 다운하였습니다."
        else
                echo "firewalld를 기동된 상태로 시작합니다."
        fi
else
        echo "firewalld가 다운되어 있습니다."
fi

echo "#####"
echo "##### Check the Selinux"
echo "#####"
getSelinux=$(getenforce)
if [ "$getSelinux" = "Disabled" ];
then
        echo "Selinux가 다운되어 있습니다."
elif [ "$getSelinux" = "Permissive" ];
then
        echo "Selinux가 Permissive 모드로 기동되어 있습니다."
elif [ "$getSelinux" = "Enforcing" ];
then
        echo "Selinux가 기동되어 있습니다."
        echo "Selinux를 Permissive 모드로 변경 하시겠습니까? (y/n)"
        read fword
        if [ "${fword}" = "y" ];
        then
                setenfoce 0;
                echo "Selinux를 Permissive 모드로 변경 하였습니다."
        else
                echo "Selinux를 Enforce 모드로 유지하고 기동합니다."
        fi
fi

echo "#####"
echo "##### Install required pachages"
echo "#####"
yum install -y yum-utils device-mapper-persistent-data lvm2 sshpass net-tools

echo "#####"
echo "##### Install Docker"
echo "#####"
yum install -y docker
mv /etc/docker/daemon.json /etc/docker/daemon.json.org
sed "s/{}/{\"insecure\-registries\"\:\[\"$dockerRepo\"\]}/" /etc/docker/daemon.json.org > /etc/docker/daemon.json
systemctl daemon-reload
systemctl restart docker

echo "#####"
echo "##### Add RPM Repository"
echo "#####"
sed "s/K8SREPO/$k8sRepo/" kube.repo > kubernetes.repo
mv kubernetes.repo /etc/yum.repos.d/
yum clean all
yum repolist all

echo "#####"
echo "##### Install Kubernetes"
echo "#####"
yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes
echo '1' > /proc/sys/net/bridge/bridge-nf-call-arptables
echo '1' > /proc/sys/net/bridge/bridge-nf-call-ip6tables
echo '1' > /proc/sys/net/bridge/bridge-nf-call-iptables
systemctl enable docker
systemctl enable kubelet

a) Set Env

b) Check the Firewall

c) Check the Selinux

d) Install required pachages

e) Install Docker

f) Add RPM Repository

g) Install Kubernetes

총 7Step으로 이루어져 있습니다.

하나씩 살펴보고 적용해 실제로 적용해 보겠습니다.

a) Set Env

echo "#####" 
echo "##### Set ENV" 
echo "#####"
export k8sRepo=192.168.xxx.xxx 
export dockerRepo=192.168.xxx.xxx

→ 유일하게 직접 수정해야 하는 부분입니다.

K8S Repository 경로를 지정하는 k8sRepo와 docker Repository 경로를 지정하는 dockerRepo로 설정되어 있습니다.

본 포스팅의 시작이 외부망과 차단된 폐쇄망을 기준으로 작성하다보니 각각 위와 같이 변경을 원하는 리포지토리 경로를 지정해 주어야 하지만, 외부 인터넷이 되는 환경에서는 굳이 필요 없는 설정입니다.

 

b) Check the Firewall

echo "#####" 
echo "##### Check the firewall" 
echo "#####" 
count=$(systemctl status firewalld | grep dead | wc -l) 
if(( "${count}" == 0 )); 
then 
        echo "firewalld이 기동되어 있습니다." 
        echo "firewalld를 다운하시겠습니까? (y/n)" 
        read word 
        if [ "${word}" == "y" ]; 
        then 
                systemctl stop firewalld 
                echo "firewalld를 다운하였습니다." 
        else 
                echo "firewalld를 기동된 상태로 시작합니다." 
        fi 
else 
        echo "firewalld가 다운되어 있습니다." 
fi

→ firewalld에 대한 설정을 검증합니다. firewalld 설정을 확인하고 기동되어 있을 경우 다운여부를 결정합니다.

 

c) Check the Selinux

echo "#####"
echo "##### Check the Selinux"
echo "#####"
getSelinux=$(getenforce)
if [ "$getSelinux" = "Disabled" ];
then
        echo "Selinux가 다운되어 있습니다."
elif [ "$getSelinux" = "Permissive" ];
then
        echo "Selinux가 Permissive 모드로 기동되어 있습니다."
elif [ "$getSelinux" = "Enforcing" ];
then
        echo "Selinux가 기동되어 있습니다."
        echo "Selinux를 Permissive 모드로 변경 하시겠습니까? (y/n)"
        read fword
        if [ "${fword}" = "y" ];
        then
                setenfoce 0;
                echo "Selinux를 Permissive 모드로 변경 하였습니다."
        else
                echo "Selinux를 Enforce 모드로 유지하고 기동합니다."
        fi
fi

→ selinux에 대한 설정을 검증합니다. selinux 설정을 확인하고 기동되어 있을 경우 다운여부를 결정합니다.

 

d) Install required packages

echo "#####" 
echo "##### Install required packages" 
echo "#####" 
yum install -y yum-utils device-mapper-persistent-data lvm2 sshpass net-tools 

→ 주요 패키지를 설치합니다.

 

e) Install Docker

echo "#####" 
echo "##### Install Docker" 
echo "#####" 
yum install -y docker 
mv /etc/docker/daemon.json /etc/docker/daemon.json.org 
sed "s/{}/{\"insecure\-registries\"\:\[\"$dockerRepo\"\]}/" /etc/docker/daemon.json.org > /etc/docker/daemon.json 
systemctl daemon-reload 
systemctl restart docker 

→ Kubernetes를 기동할 Docker를 설치하고 기본 설정을 진행합니다. 상단의 SetEnv 정보를 기반으로 docker repository에 http로 접근하기 위한 insecure-registries를 /etc/docker/daemon.json에 추가하며, Docker Process를 재기동합니다.

 

f) Add RPM Repository

echo "#####" 
echo "##### Add RPM Repository" 
echo "#####" 
sed "s/K8SREPO/$k8sRepo/" kube.repo > kubernetes.repo 
mv kubernetes.repo /etc/yum.repos.d/ 
yum clean all 
yum repolist all 

→ Kubernetes 설치를 위한 repository를 yum.repo.d에 반영하고 적용합니다.

 

g) Install Kubernetes

echo "#####" 
echo "##### Install Kubernetes" 
echo "#####" 
yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes 
echo '1' > /proc/sys/net/bridge/bridge-nf-call-arptables 
echo '1' > /proc/sys/net/bridge/bridge-nf-call-ip6tables 
echo '1' > /proc/sys/net/bridge/bridge-nf-call-iptables 
systemctl enable docker 
systemctl enable kubelet

→ Kubenetes의 주요 모듈을 설치합니다. 이후 docker와 kubelet을 서비스에 enable합니다.

3. Kubetnetes 설치

대부분 인터넷 환경에서 사용한다는 것을 기준으로 ShellScript를 수정하여 하나 더 반영해 드리도록 하겠습니다.

같은 디렉토리(~/kubernetesonestepboot/kubernetes_onestepinstall/)에 1.kubernetesOneStepInstallByInternet.sh을 추가합니다.

[root@kubemaster kubernetes_onestepinstall]# sh 1.kubernetesOneStepInstallByInternet.sh 
*****************************************************************************************************************************************
*****************************************************************************************************************************************
*****************************************************************************************************************************************
******************************************************* Kubernetes Node Install *********************************************************
*****************************************************************************************************************************************
*****************************************************************************************************************************************
*****************************************************************************************************************************************
#####
##### Check the firewall
#####
firewalld이 기동되어 있습니다.
firewalld를 다운하시겠습니까? (y/n)
y
firewalld를 다운하였습니다.
#####
##### Check the Selinux
#####
Selinux가 기동되어 있습니다.
Selinux를 Permissive 모드로 변경 하시겠습니까? (y/n)
y
Selinux를 Permissive 모드로 변경 하였습니다.
#####
##### Install required pachages
#####
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: data.aonenetworks.kr
 * extras: data.aonenetworks.kr
 * updates: data.aonenetworks.kr
Package device-mapper-persistent-data-0.7.3-3.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package lvm2.x86_64 7:2.02.180-8.el7 will be updated
---> Package lvm2.x86_64 7:2.02.180-10.el7_6.8 will be an update
--> Processing Dependency: lvm2-libs = 7:2.02.180-10.el7_6.8 for package: 7:lvm2-2.02.180-10.el7_6.8.x86_64
---> Package net-tools.x86_64 0:2.0-0.24.20131004git.el7 will be installed
---> Package sshpass.x86_64 0:1.06-2.el7 will be installed
---> Package yum-utils.noarch 0:1.1.31-50.el7 will be installed
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-50.el7.noarch
--> Processing Dependency: libxml2-python for package: yum-utils-1.1.31-50.el7.noarch
--> Running transaction check
---> Package libxml2-python.x86_64 0:2.9.1-6.el7_2.3 will be installed
---> Package lvm2-libs.x86_64 7:2.02.180-8.el7 will be updated
---> Package lvm2-libs.x86_64 7:2.02.180-10.el7_6.8 will be an update
--> Processing Dependency: device-mapper-event = 7:1.02.149-10.el7_6.8 for package: 7:lvm2-libs-2.02.180-10.el7_6.8.x86_64
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed
--> Processing Dependency: python-chardet for package: python-kitchen-1.1.1-5.el7.noarch
--> Running transaction check
---> Package device-mapper-event.x86_64 7:1.02.149-8.el7 will be updated
---> Package device-mapper-event.x86_64 7:1.02.149-10.el7_6.8 will be an update
--> Processing Dependency: device-mapper-event-libs = 7:1.02.149-10.el7_6.8 for package: 7:device-mapper-event-1.02.149-10.el7_6.8.x86_64
--> Processing Dependency: device-mapper = 7:1.02.149-10.el7_6.8 for package: 7:device-mapper-event-1.02.149-10.el7_6.8.x86_64
---> Package python-chardet.noarch 0:2.2.1-1.el7_1 will be installed
--> Running transaction check
---> Package device-mapper.x86_64 7:1.02.149-8.el7 will be updated
--> Processing Dependency: device-mapper = 7:1.02.149-8.el7 for package: 7:device-mapper-libs-1.02.149-8.el7.x86_64
---> Package device-mapper.x86_64 7:1.02.149-10.el7_6.8 will be an update
---> Package device-mapper-event-libs.x86_64 7:1.02.149-8.el7 will be updated
---> Package device-mapper-event-libs.x86_64 7:1.02.149-10.el7_6.8 will be an update
--> Running transaction check
---> Package device-mapper-libs.x86_64 7:1.02.149-8.el7 will be updated
---> Package device-mapper-libs.x86_64 7:1.02.149-10.el7_6.8 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================================================================
 Package                                                           Arch                                            Version                                                           Repository                                        Size
============================================================================================================================================================================================================================================
Installing:
 net-tools                                                         x86_64                                          2.0-0.24.20131004git.el7                                          base                                             306 k
 sshpass                                                           x86_64                                          1.06-2.el7                                                        extras                                            21 k
 yum-utils                                                         noarch                                          1.1.31-50.el7                                                     base                                             121 k
Updating:
 lvm2                                                              x86_64                                          7:2.02.180-10.el7_6.8                                             updates                                          1.3 M
Installing for dependencies:
 libxml2-python                                                    x86_64                                          2.9.1-6.el7_2.3                                                   base                                             247 k
 python-chardet                                                    noarch                                          2.2.1-1.el7_1                                                     base                                             227 k
 python-kitchen                                                    noarch                                          1.1.1-5.el7                                                       base                                             267 k
Updating for dependencies:
 device-mapper                                                     x86_64                                          7:1.02.149-10.el7_6.8                                             updates                                          293 k
 device-mapper-event                                               x86_64                                          7:1.02.149-10.el7_6.8                                             updates                                          189 k
 device-mapper-event-libs                                          x86_64                                          7:1.02.149-10.el7_6.8                                             updates                                          188 k
 device-mapper-libs                                                x86_64                                          7:1.02.149-10.el7_6.8                                             updates                                          321 k
 lvm2-libs                                                         x86_64                                          7:2.02.180-10.el7_6.8                                             updates                                          1.1 M

Transaction Summary
============================================================================================================================================================================================================================================
Install  3 Packages (+3 Dependent packages)
Upgrade  1 Package  (+5 Dependent packages)

Total download size: 4.5 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/12): device-mapper-event-1.02.149-10.el7_6.8.x86_64.rpm                                                                                                                                                           | 189 kB  00:00:00     
(2/12): device-mapper-1.02.149-10.el7_6.8.x86_64.rpm                                                                                                                                                                 | 293 kB  00:00:00     
(3/12): device-mapper-event-libs-1.02.149-10.el7_6.8.x86_64.rpm                                                                                                                                                      | 188 kB  00:00:00     
(4/12): device-mapper-libs-1.02.149-10.el7_6.8.x86_64.rpm                                                                                                                                                            | 321 kB  00:00:00     
(5/12): libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm                                                                                                                                                                    | 247 kB  00:00:00     
(6/12): lvm2-2.02.180-10.el7_6.8.x86_64.rpm                                                                                                                                                                          | 1.3 MB  00:00:00     
(7/12): lvm2-libs-2.02.180-10.el7_6.8.x86_64.rpm                                                                                                                                                                     | 1.1 MB  00:00:00     
(8/12): net-tools-2.0-0.24.20131004git.el7.x86_64.rpm                                                                                                                                                                | 306 kB  00:00:00     
(9/12): python-chardet-2.2.1-1.el7_1.noarch.rpm                                                                                                                                                                      | 227 kB  00:00:00     
(10/12): yum-utils-1.1.31-50.el7.noarch.rpm                                                                                                                                                                          | 121 kB  00:00:00     
(11/12): python-kitchen-1.1.1-5.el7.noarch.rpm                                                                                                                                                                       | 267 kB  00:00:00     
(12/12): sshpass-1.06-2.el7.x86_64.rpm                                                                                                                                                                               |  21 kB  00:00:00     
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                       8.2 MB/s | 4.5 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : 7:device-mapper-1.02.149-10.el7_6.8.x86_64                                                                                                                                                                              1/18 
  Updating   : 7:device-mapper-libs-1.02.149-10.el7_6.8.x86_64                                                                                                                                                                         2/18 
  Updating   : 7:device-mapper-event-libs-1.02.149-10.el7_6.8.x86_64                                                                                                                                                                   3/18 
  Updating   : 7:device-mapper-event-1.02.149-10.el7_6.8.x86_64                                                                                                                                                                        4/18 
  Updating   : 7:lvm2-libs-2.02.180-10.el7_6.8.x86_64                                                                                                                                                                                  5/18 
  Installing : python-chardet-2.2.1-1.el7_1.noarch                                                                                                                                                                                     6/18 
  Installing : python-kitchen-1.1.1-5.el7.noarch                                                                                                                                                                                       7/18 
  Installing : libxml2-python-2.9.1-6.el7_2.3.x86_64                                                                                                                                                                                   8/18 
  Installing : yum-utils-1.1.31-50.el7.noarch                                                                                                                                                                                          9/18 
  Updating   : 7:lvm2-2.02.180-10.el7_6.8.x86_64                                                                                                                                                                                      10/18 
  Installing : net-tools-2.0-0.24.20131004git.el7.x86_64                                                                                                                                                                              11/18 
  Installing : sshpass-1.06-2.el7.x86_64                                                                                                                                                                                              12/18 
  Cleanup    : 7:lvm2-2.02.180-8.el7.x86_64                                                                                                                                                                                           13/18 
  Cleanup    : 7:lvm2-libs-2.02.180-8.el7.x86_64                                                                                                                                                                                      14/18 
  Cleanup    : 7:device-mapper-event-1.02.149-8.el7.x86_64                                                                                                                                                                            15/18 
  Cleanup    : 7:device-mapper-event-libs-1.02.149-8.el7.x86_64                                                                                                                                                                       16/18 
  Cleanup    : 7:device-mapper-1.02.149-8.el7.x86_64                                                                                                                                                                                  17/18 
  Cleanup    : 7:device-mapper-libs-1.02.149-8.el7.x86_64                                                                                                                                                                             18/18 
  Verifying  : 7:device-mapper-event-libs-1.02.149-10.el7_6.8.x86_64                                                                                                                                                                   1/18 
  Verifying  : 7:device-mapper-libs-1.02.149-10.el7_6.8.x86_64                                                                                                                                                                         2/18 
  Verifying  : yum-utils-1.1.31-50.el7.noarch                                                                                                                                                                                          3/18 
  Verifying  : libxml2-python-2.9.1-6.el7_2.3.x86_64                                                                                                                                                                                   4/18 
  Verifying  : python-chardet-2.2.1-1.el7_1.noarch                                                                                                                                                                                     5/18 
  Verifying  : sshpass-1.06-2.el7.x86_64                                                                                                                                                                                               6/18 
  Verifying  : python-kitchen-1.1.1-5.el7.noarch                                                                                                                                                                                       7/18 
  Verifying  : 7:lvm2-2.02.180-10.el7_6.8.x86_64                                                                                                                                                                                       8/18 
  Verifying  : 7:lvm2-libs-2.02.180-10.el7_6.8.x86_64                                                                                                                                                                                  9/18 
  Verifying  : 7:device-mapper-event-1.02.149-10.el7_6.8.x86_64                                                                                                                                                                       10/18 
  Verifying  : 7:device-mapper-1.02.149-10.el7_6.8.x86_64                                                                                                                                                                             11/18 
  Verifying  : net-tools-2.0-0.24.20131004git.el7.x86_64                                                                                                                                                                              12/18 
  Verifying  : 7:lvm2-2.02.180-8.el7.x86_64                                                                                                                                                                                           13/18 
  Verifying  : 7:lvm2-libs-2.02.180-8.el7.x86_64                                                                                                                                                                                      14/18 
  Verifying  : 7:device-mapper-1.02.149-8.el7.x86_64                                                                                                                                                                                  15/18 
  Verifying  : 7:device-mapper-event-1.02.149-8.el7.x86_64                                                                                                                                                                            16/18 
  Verifying  : 7:device-mapper-libs-1.02.149-8.el7.x86_64                                                                                                                                                                             17/18 
  Verifying  : 7:device-mapper-event-libs-1.02.149-8.el7.x86_64                                                                                                                                                                       18/18 

Installed:
  net-tools.x86_64 0:2.0-0.24.20131004git.el7                                            sshpass.x86_64 0:1.06-2.el7                                            yum-utils.noarch 0:1.1.31-50.el7                                           

Dependency Installed:
  libxml2-python.x86_64 0:2.9.1-6.el7_2.3                                         python-chardet.noarch 0:2.2.1-1.el7_1                                         python-kitchen.noarch 0:1.1.1-5.el7                                        

Updated:
  lvm2.x86_64 7:2.02.180-10.el7_6.8                                                                                                                                                                                                         

Dependency Updated:
  device-mapper.x86_64 7:1.02.149-10.el7_6.8 device-mapper-event.x86_64 7:1.02.149-10.el7_6.8 device-mapper-event-libs.x86_64 7:1.02.149-10.el7_6.8 device-mapper-libs.x86_64 7:1.02.149-10.el7_6.8 lvm2-libs.x86_64 7:2.02.180-10.el7_6.8

Complete!
#####
##### Install Docker
#####
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: data.aonenetworks.kr
 * extras: data.aonenetworks.kr
 * updates: data.aonenetworks.kr
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 2:1.13.1-102.git7f2769b.el7.centos will be installed
--> Processing Dependency: docker-common = 2:1.13.1-102.git7f2769b.el7.centos for package: 2:docker-1.13.1-102.git7f2769b.el7.centos.x86_64
--> Processing Dependency: docker-client = 2:1.13.1-102.git7f2769b.el7.centos for package: 2:docker-1.13.1-102.git7f2769b.el7.centos.x86_64
--> Processing Dependency: subscription-manager-rhsm-certificates for package: 2:docker-1.13.1-102.git7f2769b.el7.centos.x86_64
--> Running transaction check
---> Package docker-client.x86_64 2:1.13.1-102.git7f2769b.el7.centos will be installed
---> Package docker-common.x86_64 2:1.13.1-102.git7f2769b.el7.centos will be installed
--> Processing Dependency: skopeo-containers >= 1:0.1.26-2 for package: 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64
--> Processing Dependency: oci-umount >= 2:2.3.3-3 for package: 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64
--> Processing Dependency: oci-systemd-hook >= 1:0.1.4-9 for package: 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64
--> Processing Dependency: oci-register-machine >= 1:0-5.13 for package: 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64
--> Processing Dependency: container-storage-setup >= 0.9.0-1 for package: 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64
--> Processing Dependency: container-selinux >= 2:2.51-1 for package: 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64
--> Processing Dependency: atomic-registries for package: 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64
---> Package subscription-manager-rhsm-certificates.x86_64 0:1.21.10-3.el7.centos will be installed
--> Running transaction check
---> Package atomic-registries.x86_64 1:1.22.1-26.gitb507039.el7.centos will be installed
--> Processing Dependency: python-yaml for package: 1:atomic-registries-1.22.1-26.gitb507039.el7.centos.x86_64
--> Processing Dependency: python-setuptools for package: 1:atomic-registries-1.22.1-26.gitb507039.el7.centos.x86_64
--> Processing Dependency: python-pytoml for package: 1:atomic-registries-1.22.1-26.gitb507039.el7.centos.x86_64
---> Package container-selinux.noarch 2:2.107-1.el7_6 will be installed
--> Processing Dependency: policycoreutils-python for package: 2:container-selinux-2.107-1.el7_6.noarch
---> Package container-storage-setup.noarch 0:0.11.0-2.git5eaf76c.el7 will be installed
---> Package containers-common.x86_64 1:0.1.37-1.el7.centos will be installed
---> Package oci-register-machine.x86_64 1:0-6.git2b44233.el7 will be installed
---> Package oci-systemd-hook.x86_64 1:0.2.0-1.git05e6923.el7_6 will be installed
--> Processing Dependency: libyajl.so.2()(64bit) for package: 1:oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64
---> Package oci-umount.x86_64 2:2.5-1.el7_6 will be installed
--> Running transaction check
---> Package PyYAML.x86_64 0:3.10-11.el7 will be installed
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-11.el7.x86_64
---> Package policycoreutils-python.x86_64 0:2.5-29.el7_6.1 will be installed
--> Processing Dependency: policycoreutils = 2.5-29.el7_6.1 for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: setools-libs >= 3.3.8-4 for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-14 for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libcgroup for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
---> Package python-pytoml.noarch 0:0.1.14-1.git7dea353.el7 will be installed
---> Package python-setuptools.noarch 0:0.9.8-7.el7 will be installed
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-7.el7.noarch
---> Package yajl.x86_64 0:2.0.4-4.el7 will be installed
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.8.4-4.el7 will be installed
---> Package checkpolicy.x86_64 0:2.5-8.el7 will be installed
---> Package libcgroup.x86_64 0:0.41-20.el7 will be installed
---> Package libsemanage-python.x86_64 0:2.5-14.el7 will be installed
---> Package libyaml.x86_64 0:0.1.4-11.el7_0 will be installed
---> Package policycoreutils.x86_64 0:2.5-29.el7 will be updated
---> Package policycoreutils.x86_64 0:2.5-29.el7_6.1 will be an update
---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
---> Package python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 will be installed
--> Processing Dependency: python-ipaddress for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
---> Package setools-libs.x86_64 0:3.3.8-4.el7 will be installed
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
---> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================================================================
 Package                                                                   Arch                                      Version                                                               Repository                                  Size
============================================================================================================================================================================================================================================
Installing:
 docker                                                                    x86_64                                    2:1.13.1-102.git7f2769b.el7.centos                                    extras                                      18 M
Installing for dependencies:
 PyYAML                                                                    x86_64                                    3.10-11.el7                                                           base                                       153 k
 atomic-registries                                                         x86_64                                    1:1.22.1-26.gitb507039.el7.centos                                     extras                                      35 k
 audit-libs-python                                                         x86_64                                    2.8.4-4.el7                                                           base                                        76 k
 checkpolicy                                                               x86_64                                    2.5-8.el7                                                             base                                       295 k
 container-selinux                                                         noarch                                    2:2.107-1.el7_6                                                       extras                                      39 k
 container-storage-setup                                                   noarch                                    0.11.0-2.git5eaf76c.el7                                               extras                                      35 k
 containers-common                                                         x86_64                                    1:0.1.37-1.el7.centos                                                 extras                                      21 k
 docker-client                                                             x86_64                                    2:1.13.1-102.git7f2769b.el7.centos                                    extras                                     3.9 M
 docker-common                                                             x86_64                                    2:1.13.1-102.git7f2769b.el7.centos                                    extras                                      97 k
 libcgroup                                                                 x86_64                                    0.41-20.el7                                                           base                                        66 k
 libsemanage-python                                                        x86_64                                    2.5-14.el7                                                            base                                       113 k
 libyaml                                                                   x86_64                                    0.1.4-11.el7_0                                                        base                                        55 k
 oci-register-machine                                                      x86_64                                    1:0-6.git2b44233.el7                                                  extras                                     1.1 M
 oci-systemd-hook                                                          x86_64                                    1:0.2.0-1.git05e6923.el7_6                                            extras                                      34 k
 oci-umount                                                                x86_64                                    2:2.5-1.el7_6                                                         extras                                      33 k
 policycoreutils-python                                                    x86_64                                    2.5-29.el7_6.1                                                        updates                                    456 k
 python-IPy                                                                noarch                                    0.75-6.el7                                                            base                                        32 k
 python-backports                                                          x86_64                                    1.0-8.el7                                                             base                                       5.8 k
 python-backports-ssl_match_hostname                                       noarch                                    3.5.0.1-1.el7                                                         base                                        13 k
 python-ipaddress                                                          noarch                                    1.0.16-2.el7                                                          base                                        34 k
 python-pytoml                                                             noarch                                    0.1.14-1.git7dea353.el7                                               extras                                      18 k
 python-setuptools                                                         noarch                                    0.9.8-7.el7                                                           base                                       397 k
 setools-libs                                                              x86_64                                    3.3.8-4.el7                                                           base                                       620 k
 subscription-manager-rhsm-certificates                                    x86_64                                    1.21.10-3.el7.centos                                                  updates                                    207 k
 yajl                                                                      x86_64                                    2.0.4-4.el7                                                           base                                        39 k
Updating for dependencies:
 policycoreutils                                                           x86_64                                    2.5-29.el7_6.1                                                        updates                                    916 k

Transaction Summary
============================================================================================================================================================================================================================================
Install  1 Package  (+25 Dependent packages)
Upgrade             (  1 Dependent package)

Total download size: 26 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/27): atomic-registries-1.22.1-26.gitb507039.el7.centos.x86_64.rpm                                                                                                                                                 |  35 kB  00:00:00     
(2/27): PyYAML-3.10-11.el7.x86_64.rpm                                                                                                                                                                                | 153 kB  00:00:00     
(3/27): audit-libs-python-2.8.4-4.el7.x86_64.rpm                                                                                                                                                                     |  76 kB  00:00:00     
(4/27): checkpolicy-2.5-8.el7.x86_64.rpm                                                                                                                                                                             | 295 kB  00:00:00     
(5/27): container-selinux-2.107-1.el7_6.noarch.rpm                                                                                                                                                                   |  39 kB  00:00:00     
(6/27): container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch.rpm                                                                                                                                                   |  35 kB  00:00:00     
(7/27): containers-common-0.1.37-1.el7.centos.x86_64.rpm                                                                                                                                                             |  21 kB  00:00:00     
(8/27): docker-client-1.13.1-102.git7f2769b.el7.centos.x86_64.rpm                                                                                                                                                    | 3.9 MB  00:00:00     
(9/27): docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64.rpm                                                                                                                                                    |  97 kB  00:00:00     
(10/27): libsemanage-python-2.5-14.el7.x86_64.rpm                                                                                                                                                                    | 113 kB  00:00:00     
(11/27): libcgroup-0.41-20.el7.x86_64.rpm                                                                                                                                                                            |  66 kB  00:00:00     
(12/27): libyaml-0.1.4-11.el7_0.x86_64.rpm                                                                                                                                                                           |  55 kB  00:00:00     
(13/27): oci-register-machine-0-6.git2b44233.el7.x86_64.rpm                                                                                                                                                          | 1.1 MB  00:00:00     
(14/27): oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64.rpm                                                                                                                                                        |  34 kB  00:00:00     
(15/27): oci-umount-2.5-1.el7_6.x86_64.rpm                                                                                                                                                                           |  33 kB  00:00:00     
(16/27): python-backports-1.0-8.el7.x86_64.rpm                                                                                                                                                                       | 5.8 kB  00:00:00     
(17/27): python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm                                                                                                                                                |  13 kB  00:00:00     
(18/27): docker-1.13.1-102.git7f2769b.el7.centos.x86_64.rpm                                                                                                                                                          |  18 MB  00:00:02     
(19/27): python-IPy-0.75-6.el7.noarch.rpm                                                                                                                                                                            |  32 kB  00:00:00     
(20/27): python-ipaddress-1.0.16-2.el7.noarch.rpm                                                                                                                                                                    |  34 kB  00:00:00     
(21/27): policycoreutils-2.5-29.el7_6.1.x86_64.rpm                                                                                                                                                                   | 916 kB  00:00:00     
(22/27): python-pytoml-0.1.14-1.git7dea353.el7.noarch.rpm                                                                                                                                                            |  18 kB  00:00:00     
(23/27): subscription-manager-rhsm-certificates-1.21.10-3.el7.centos.x86_64.rpm                                                                                                                                      | 207 kB  00:00:00     
(24/27): python-setuptools-0.9.8-7.el7.noarch.rpm                                                                                                                                                                    | 397 kB  00:00:00     
(25/27): setools-libs-3.3.8-4.el7.x86_64.rpm                                                                                                                                                                         | 620 kB  00:00:00     
(26/27): yajl-2.0.4-4.el7.x86_64.rpm                                                                                                                                                                                 |  39 kB  00:00:00     
(27/27): policycoreutils-python-2.5-29.el7_6.1.x86_64.rpm                                                                                                                                                            | 456 kB  00:00:02     
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                       5.5 MB/s |  26 MB  00:00:04     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : yajl-2.0.4-4.el7.x86_64                                                                                                                                                                                                 1/28 
  Updating   : policycoreutils-2.5-29.el7_6.1.x86_64                                                                                                                                                                                   2/28 
  Installing : 2:oci-umount-2.5-1.el7_6.x86_64                                                                                                                                                                                         3/28 
  Installing : 1:oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64                                                                                                                                                                      4/28 
  Installing : container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch                                                                                                                                                                  5/28 
  Installing : python-ipaddress-1.0.16-2.el7.noarch                                                                                                                                                                                    6/28 
  Installing : 1:containers-common-0.1.37-1.el7.centos.x86_64                                                                                                                                                                          7/28 
  Installing : libyaml-0.1.4-11.el7_0.x86_64                                                                                                                                                                                           8/28 
  Installing : PyYAML-3.10-11.el7.x86_64                                                                                                                                                                                               9/28 
  Installing : audit-libs-python-2.8.4-4.el7.x86_64                                                                                                                                                                                   10/28 
  Installing : python-backports-1.0-8.el7.x86_64                                                                                                                                                                                      11/28 
  Installing : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch                                                                                                                                                               12/28 
  Installing : python-setuptools-0.9.8-7.el7.noarch                                                                                                                                                                                   13/28 
  Installing : checkpolicy-2.5-8.el7.x86_64                                                                                                                                                                                           14/28 
  Installing : 1:oci-register-machine-0-6.git2b44233.el7.x86_64                                                                                                                                                                       15/28 
  Installing : libsemanage-python-2.5-14.el7.x86_64                                                                                                                                                                                   16/28 
  Installing : setools-libs-3.3.8-4.el7.x86_64                                                                                                                                                                                        17/28 
  Installing : python-pytoml-0.1.14-1.git7dea353.el7.noarch                                                                                                                                                                           18/28 
  Installing : 1:atomic-registries-1.22.1-26.gitb507039.el7.centos.x86_64                                                                                                                                                             19/28 
  Installing : python-IPy-0.75-6.el7.noarch                                                                                                                                                                                           20/28 
  Installing : subscription-manager-rhsm-certificates-1.21.10-3.el7.centos.x86_64                                                                                                                                                     21/28 
  Installing : libcgroup-0.41-20.el7.x86_64                                                                                                                                                                                           22/28 
  Installing : policycoreutils-python-2.5-29.el7_6.1.x86_64                                                                                                                                                                           23/28 
  Installing : 2:container-selinux-2.107-1.el7_6.noarch                                                                                                                                                                               24/28 
  Installing : 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64                                                                                                                                                                25/28 
  Installing : 2:docker-client-1.13.1-102.git7f2769b.el7.centos.x86_64                                                                                                                                                                26/28 
  Installing : 2:docker-1.13.1-102.git7f2769b.el7.centos.x86_64                                                                                                                                                                       27/28 
  Cleanup    : policycoreutils-2.5-29.el7.x86_64                                                                                                                                                                                      28/28 
  Verifying  : libcgroup-0.41-20.el7.x86_64                                                                                                                                                                                            1/28 
  Verifying  : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch                                                                                                                                                                2/28 
  Verifying  : 2:docker-client-1.13.1-102.git7f2769b.el7.centos.x86_64                                                                                                                                                                 3/28 
  Verifying  : 2:oci-umount-2.5-1.el7_6.x86_64                                                                                                                                                                                         4/28 
  Verifying  : policycoreutils-2.5-29.el7_6.1.x86_64                                                                                                                                                                                   5/28 
  Verifying  : subscription-manager-rhsm-certificates-1.21.10-3.el7.centos.x86_64                                                                                                                                                      6/28 
  Verifying  : python-setuptools-0.9.8-7.el7.noarch                                                                                                                                                                                    7/28 
  Verifying  : 2:docker-1.13.1-102.git7f2769b.el7.centos.x86_64                                                                                                                                                                        8/28 
  Verifying  : python-IPy-0.75-6.el7.noarch                                                                                                                                                                                            9/28 
  Verifying  : 1:atomic-registries-1.22.1-26.gitb507039.el7.centos.x86_64                                                                                                                                                             10/28 
  Verifying  : 2:docker-common-1.13.1-102.git7f2769b.el7.centos.x86_64                                                                                                                                                                11/28 
  Verifying  : python-pytoml-0.1.14-1.git7dea353.el7.noarch                                                                                                                                                                           12/28 
  Verifying  : setools-libs-3.3.8-4.el7.x86_64                                                                                                                                                                                        13/28 
  Verifying  : policycoreutils-python-2.5-29.el7_6.1.x86_64                                                                                                                                                                           14/28 
  Verifying  : libsemanage-python-2.5-14.el7.x86_64                                                                                                                                                                                   15/28 
  Verifying  : 1:oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64                                                                                                                                                                     16/28 
  Verifying  : 1:oci-register-machine-0-6.git2b44233.el7.x86_64                                                                                                                                                                       17/28 
  Verifying  : checkpolicy-2.5-8.el7.x86_64                                                                                                                                                                                           18/28 
  Verifying  : python-backports-1.0-8.el7.x86_64                                                                                                                                                                                      19/28 
  Verifying  : yajl-2.0.4-4.el7.x86_64                                                                                                                                                                                                20/28 
  Verifying  : audit-libs-python-2.8.4-4.el7.x86_64                                                                                                                                                                                   21/28 
  Verifying  : libyaml-0.1.4-11.el7_0.x86_64                                                                                                                                                                                          22/28 
  Verifying  : 1:containers-common-0.1.37-1.el7.centos.x86_64                                                                                                                                                                         23/28 
  Verifying  : 2:container-selinux-2.107-1.el7_6.noarch                                                                                                                                                                               24/28 
  Verifying  : python-ipaddress-1.0.16-2.el7.noarch                                                                                                                                                                                   25/28 
  Verifying  : PyYAML-3.10-11.el7.x86_64                                                                                                                                                                                              26/28 
  Verifying  : container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch                                                                                                                                                                 27/28 
  Verifying  : policycoreutils-2.5-29.el7.x86_64                                                                                                                                                                                      28/28 

Installed:
  docker.x86_64 2:1.13.1-102.git7f2769b.el7.centos                                                                                                                                                                                          

Dependency Installed:
  PyYAML.x86_64 0:3.10-11.el7                                                atomic-registries.x86_64 1:1.22.1-26.gitb507039.el7.centos                 audit-libs-python.x86_64 0:2.8.4-4.el7                                              
  checkpolicy.x86_64 0:2.5-8.el7                                             container-selinux.noarch 2:2.107-1.el7_6                                   container-storage-setup.noarch 0:0.11.0-2.git5eaf76c.el7                            
  containers-common.x86_64 1:0.1.37-1.el7.centos                             docker-client.x86_64 2:1.13.1-102.git7f2769b.el7.centos                    docker-common.x86_64 2:1.13.1-102.git7f2769b.el7.centos                             
  libcgroup.x86_64 0:0.41-20.el7                                             libsemanage-python.x86_64 0:2.5-14.el7                                     libyaml.x86_64 0:0.1.4-11.el7_0                                                     
  oci-register-machine.x86_64 1:0-6.git2b44233.el7                           oci-systemd-hook.x86_64 1:0.2.0-1.git05e6923.el7_6                         oci-umount.x86_64 2:2.5-1.el7_6                                                     
  policycoreutils-python.x86_64 0:2.5-29.el7_6.1                             python-IPy.noarch 0:0.75-6.el7                                             python-backports.x86_64 0:1.0-8.el7                                                 
  python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7                 python-ipaddress.noarch 0:1.0.16-2.el7                                     python-pytoml.noarch 0:0.1.14-1.git7dea353.el7                                      
  python-setuptools.noarch 0:0.9.8-7.el7                                     setools-libs.x86_64 0:3.3.8-4.el7                                          subscription-manager-rhsm-certificates.x86_64 0:1.21.10-3.el7.centos                
  yajl.x86_64 0:2.0.4-4.el7                                                 

Dependency Updated:
  policycoreutils.x86_64 0:2.5-29.el7_6.1                                                                                                                                                                                                   

Complete!
#####
##### Add RPM Repository
#####
Loaded plugins: fastestmirror
Cleaning repos: base extras kubernetes updates
Cleaning up list of fastest mirrors
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirror.navercorp.com
 * extras: mirror.navercorp.com
 * updates: mirror.navercorp.com
base                                                                                                                                                                                                                 | 3.6 kB  00:00:00     
extras                                                                                                                                                                                                               | 3.4 kB  00:00:00     
kubernetes/signature                                                                                                                                                                                                 |  454 B  00:00:00     
Retrieving key from https://packages.cloud.google.com/yum/doc/yum-key.gpg
Importing GPG key 0xA7317B0F:
 Userid     : "Google Cloud Packages Automatic Signing Key <gc-team@google.com>"
 Fingerprint: d0bc 747f d8ca f711 7500 d6fa 3746 c208 a731 7b0f
 From       : https://packages.cloud.google.com/yum/doc/yum-key.gpg
Is this ok [y/N]: y
Retrieving key from https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
kubernetes/signature                                                                                                                                                                                                 | 1.4 kB  00:00:01 !!! 
updates                                                                                                                                                                                                              | 3.4 kB  00:00:00     
(1/5): base/7/x86_64/group_gz                                                                                                                                                                                        | 166 kB  00:00:00     
(2/5): extras/7/x86_64/primary_db                                                                                                                                                                                    | 215 kB  00:00:00     
(3/5): base/7/x86_64/primary_db                                                                                                                                                                                      | 6.0 MB  00:00:01     
(4/5): kubernetes/primary                                                                                                                                                                                            |  53 kB  00:00:00     
(5/5): updates/7/x86_64/primary_db                                                                                                                                                                                   | 7.4 MB  00:00:01     
kubernetes                                                                                                                                                                                                                          385/385
repo id                                                                                                       repo name                                                                                                       status
C7.0.1406-base/x86_64                                                                                         CentOS-7.0.1406 - Base                                                                                          disabled
C7.0.1406-centosplus/x86_64                                                                                   CentOS-7.0.1406 - CentOSPlus                                                                                    disabled
C7.0.1406-extras/x86_64                                                                                       CentOS-7.0.1406 - Extras                                                                                        disabled
C7.0.1406-fasttrack/x86_64                                                                                    CentOS-7.0.1406 - Fasttrack                                                                                     disabled
C7.0.1406-updates/x86_64                                                                                      CentOS-7.0.1406 - Updates                                                                                       disabled
C7.1.1503-base/x86_64                                                                                         CentOS-7.1.1503 - Base                                                                                          disabled
C7.1.1503-centosplus/x86_64                                                                                   CentOS-7.1.1503 - CentOSPlus                                                                                    disabled
C7.1.1503-extras/x86_64                                                                                       CentOS-7.1.1503 - Extras                                                                                        disabled
C7.1.1503-fasttrack/x86_64                                                                                    CentOS-7.1.1503 - Fasttrack                                                                                     disabled
C7.1.1503-updates/x86_64                                                                                      CentOS-7.1.1503 - Updates                                                                                       disabled
C7.2.1511-base/x86_64                                                                                         CentOS-7.2.1511 - Base                                                                                          disabled
C7.2.1511-centosplus/x86_64                                                                                   CentOS-7.2.1511 - CentOSPlus                                                                                    disabled
C7.2.1511-extras/x86_64                                                                                       CentOS-7.2.1511 - Extras                                                                                        disabled
C7.2.1511-fasttrack/x86_64                                                                                    CentOS-7.2.1511 - Fasttrack                                                                                     disabled
C7.2.1511-updates/x86_64                                                                                      CentOS-7.2.1511 - Updates                                                                                       disabled
C7.3.1611-base/x86_64                                                                                         CentOS-7.3.1611 - Base                                                                                          disabled
C7.3.1611-centosplus/x86_64                                                                                   CentOS-7.3.1611 - CentOSPlus                                                                                    disabled
C7.3.1611-extras/x86_64                                                                                       CentOS-7.3.1611 - Extras                                                                                        disabled
C7.3.1611-fasttrack/x86_64                                                                                    CentOS-7.3.1611 - Fasttrack                                                                                     disabled
C7.3.1611-updates/x86_64                                                                                      CentOS-7.3.1611 - Updates                                                                                       disabled
C7.4.1708-base/x86_64                                                                                         CentOS-7.4.1708 - Base                                                                                          disabled
C7.4.1708-centosplus/x86_64                                                                                   CentOS-7.4.1708 - CentOSPlus                                                                                    disabled
C7.4.1708-extras/x86_64                                                                                       CentOS-7.4.1708 - Extras                                                                                        disabled
C7.4.1708-fasttrack/x86_64                                                                                    CentOS-7.4.1708 - Fasttrack                                                                                     disabled
C7.4.1708-updates/x86_64                                                                                      CentOS-7.4.1708 - Updates                                                                                       disabled
C7.5.1804-base/x86_64                                                                                         CentOS-7.5.1804 - Base                                                                                          disabled
C7.5.1804-centosplus/x86_64                                                                                   CentOS-7.5.1804 - CentOSPlus                                                                                    disabled
C7.5.1804-extras/x86_64                                                                                       CentOS-7.5.1804 - Extras                                                                                        disabled
C7.5.1804-fasttrack/x86_64                                                                                    CentOS-7.5.1804 - Fasttrack                                                                                     disabled
C7.5.1804-updates/x86_64                                                                                      CentOS-7.5.1804 - Updates                                                                                       disabled
base/7/x86_64                                                                                                 CentOS-7 - Base                                                                                                 enabled: 10019
base-debuginfo/x86_64                                                                                         CentOS-7 - Debuginfo                                                                                            disabled
base-source/7                                                                                                 CentOS-7 - Base Sources                                                                                         disabled
c7-media                                                                                                      CentOS-7 - Media                                                                                                disabled
centosplus/7/x86_64                                                                                           CentOS-7 - Plus                                                                                                 disabled
centosplus-source/7                                                                                           CentOS-7 - Plus Sources                                                                                         disabled
cr/7/x86_64                                                                                                   CentOS-7 - cr                                                                                                   disabled
extras/7/x86_64                                                                                               CentOS-7 - Extras                                                                                               enabled:   435
extras-source/7                                                                                               CentOS-7 - Extras Sources                                                                                       disabled
fasttrack/7/x86_64                                                                                            CentOS-7 - fasttrack                                                                                            disabled
kubernetes                                                                                                    Kubernetes                                                                                                      enabled: 8+377
updates/7/x86_64                                                                                              CentOS-7 - Updates                                                                                              enabled:  2500
updates-source/7                                                                                              CentOS-7 - Updates Sources                                                                                      disabled
repolist: 12962
#####
##### Install Kubernetes
#####
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.navercorp.com
 * extras: mirror.navercorp.com
 * updates: mirror.navercorp.com
Resolving Dependencies
--> Running transaction check
---> Package kubeadm.x86_64 0:1.15.2-0 will be installed
--> Processing Dependency: kubernetes-cni >= 0.7.5 for package: kubeadm-1.15.2-0.x86_64
--> Processing Dependency: cri-tools >= 1.13.0 for package: kubeadm-1.15.2-0.x86_64
---> Package kubectl.x86_64 0:1.15.2-0 will be installed
---> Package kubelet.x86_64 0:1.15.2-0 will be installed
--> Processing Dependency: socat for package: kubelet-1.15.2-0.x86_64
--> Processing Dependency: conntrack for package: kubelet-1.15.2-0.x86_64
--> Running transaction check
---> Package conntrack-tools.x86_64 0:1.4.4-4.el7 will be installed
--> Processing Dependency: libnetfilter_cttimeout.so.1(LIBNETFILTER_CTTIMEOUT_1.1)(64bit) for package: conntrack-tools-1.4.4-4.el7.x86_64
--> Processing Dependency: libnetfilter_cttimeout.so.1(LIBNETFILTER_CTTIMEOUT_1.0)(64bit) for package: conntrack-tools-1.4.4-4.el7.x86_64
--> Processing Dependency: libnetfilter_cthelper.so.0(LIBNETFILTER_CTHELPER_1.0)(64bit) for package: conntrack-tools-1.4.4-4.el7.x86_64
--> Processing Dependency: libnetfilter_queue.so.1()(64bit) for package: conntrack-tools-1.4.4-4.el7.x86_64
--> Processing Dependency: libnetfilter_cttimeout.so.1()(64bit) for package: conntrack-tools-1.4.4-4.el7.x86_64
--> Processing Dependency: libnetfilter_cthelper.so.0()(64bit) for package: conntrack-tools-1.4.4-4.el7.x86_64
---> Package cri-tools.x86_64 0:1.13.0-0 will be installed
---> Package kubernetes-cni.x86_64 0:0.7.5-0 will be installed
---> Package socat.x86_64 0:1.7.3.2-2.el7 will be installed
--> Running transaction check
---> Package libnetfilter_cthelper.x86_64 0:1.0.0-9.el7 will be installed
---> Package libnetfilter_cttimeout.x86_64 0:1.0.0-6.el7 will be installed
---> Package libnetfilter_queue.x86_64 0:1.0.2-2.el7_2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================================================================
 Package                                                           Arch                                              Version                                                    Repository                                             Size
============================================================================================================================================================================================================================================
Installing:
 kubeadm                                                           x86_64                                            1.15.2-0                                                   kubernetes                                            8.9 M
 kubectl                                                           x86_64                                            1.15.2-0                                                   kubernetes                                            9.5 M
 kubelet                                                           x86_64                                            1.15.2-0                                                   kubernetes                                             22 M
Installing for dependencies:
 conntrack-tools                                                   x86_64                                            1.4.4-4.el7                                                base                                                  186 k
 cri-tools                                                         x86_64                                            1.13.0-0                                                   kubernetes                                            5.1 M
 kubernetes-cni                                                    x86_64                                            0.7.5-0                                                    kubernetes                                             10 M
 libnetfilter_cthelper                                             x86_64                                            1.0.0-9.el7                                                base                                                   18 k
 libnetfilter_cttimeout                                            x86_64                                            1.0.0-6.el7                                                base                                                   18 k
 libnetfilter_queue                                                x86_64                                            1.0.2-2.el7_2                                              base                                                   23 k
 socat                                                             x86_64                                            1.7.3.2-2.el7                                              base                                                  290 k

Transaction Summary
============================================================================================================================================================================================================================================
Install  3 Packages (+7 Dependent packages)

Total download size: 56 M
Installed size: 251 M
Downloading packages:
(1/10): conntrack-tools-1.4.4-4.el7.x86_64.rpm                                                                                                                                                                       | 186 kB  00:00:00     
warning: /var/cache/yum/x86_64/7/kubernetes/packages/14bfe6e75a9efc8eca3f638eb22c7e2ce759c67f95b43b16fae4ebabde1549f3-cri-tools-1.13.0-0.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 3e1ba8d5: NOKEY 1.8 MB/s | 4.6 MB  00:00:28 ETA 
Public key for 14bfe6e75a9efc8eca3f638eb22c7e2ce759c67f95b43b16fae4ebabde1549f3-cri-tools-1.13.0-0.x86_64.rpm is not installed
(2/10): 14bfe6e75a9efc8eca3f638eb22c7e2ce759c67f95b43b16fae4ebabde1549f3-cri-tools-1.13.0-0.x86_64.rpm                                                                                                               | 5.1 MB  00:00:01     
(3/10): b3e3099a44905838335bf405565659ba6113699d8457ccf0e3462dd47691de65-kubeadm-1.15.2-0.x86_64.rpm                                                                                                                 | 8.9 MB  00:00:02     
(4/10): bfc2b9cfa0bcfa8dd9e90edb0f0754e6256ba466de7afbd75da014e412ecedfa-kubectl-1.15.2-0.x86_64.rpm                                                                                                                 | 9.5 MB  00:00:02     
(5/10): libnetfilter_cthelper-1.0.0-9.el7.x86_64.rpm                                                                                                                                                                 |  18 kB  00:00:00     
(6/10): libnetfilter_queue-1.0.2-2.el7_2.x86_64.rpm                                                                                                                                                                  |  23 kB  00:00:00     
(7/10): socat-1.7.3.2-2.el7.x86_64.rpm                                                                                                                                                                               | 290 kB  00:00:00     
(8/10): libnetfilter_cttimeout-1.0.0-6.el7.x86_64.rpm                                                                                                                                                                |  18 kB  00:00:00     
(9/10): 548a0dcd865c16a50980420ddfa5fbccb8b59621179798e6dc905c9bf8af3b34-kubernetes-cni-0.7.5-0.x86_64.rpm                                                                                                           |  10 MB  00:00:02     
(10/10): ade2907a0bab0715751dc037a4d0582bf9d933d3f15b588876b48465d8d9169b-kubelet-1.15.2-0.x86_64.rpm                                                                                                                |  22 MB  00:00:03     
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                       9.2 MB/s |  56 MB  00:00:06     
Retrieving key from https://packages.cloud.google.com/yum/doc/yum-key.gpg
Importing GPG key 0xA7317B0F:
 Userid     : "Google Cloud Packages Automatic Signing Key <gc-team@google.com>"
 Fingerprint: d0bc 747f d8ca f711 7500 d6fa 3746 c208 a731 7b0f
 From       : https://packages.cloud.google.com/yum/doc/yum-key.gpg
Retrieving key from https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
Importing GPG key 0x3E1BA8D5:
 Userid     : "Google Cloud Packages RPM Signing Key <gc-team@google.com>"
 Fingerprint: 3749 e1ba 95a8 6ce0 5454 6ed2 f09c 394c 3e1b a8d5
 From       : https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : socat-1.7.3.2-2.el7.x86_64                                                                                                                                                                                              1/10 
  Installing : libnetfilter_cthelper-1.0.0-9.el7.x86_64                                                                                                                                                                                2/10 
  Installing : cri-tools-1.13.0-0.x86_64                                                                                                                                                                                               3/10 
  Installing : kubectl-1.15.2-0.x86_64                                                                                                                                                                                                 4/10 
  Installing : libnetfilter_queue-1.0.2-2.el7_2.x86_64                                                                                                                                                                                 5/10 
  Installing : libnetfilter_cttimeout-1.0.0-6.el7.x86_64                                                                                                                                                                               6/10 
  Installing : conntrack-tools-1.4.4-4.el7.x86_64                                                                                                                                                                                      7/10 
  Installing : kubernetes-cni-0.7.5-0.x86_64                                                                                                                                                                                           8/10 
  Installing : kubelet-1.15.2-0.x86_64                                                                                                                                                                                                 9/10 
  Installing : kubeadm-1.15.2-0.x86_64                                                                                                                                                                                                10/10 
  Verifying  : kubelet-1.15.2-0.x86_64                                                                                                                                                                                                 1/10 
  Verifying  : libnetfilter_cttimeout-1.0.0-6.el7.x86_64                                                                                                                                                                               2/10 
  Verifying  : libnetfilter_queue-1.0.2-2.el7_2.x86_64                                                                                                                                                                                 3/10 
  Verifying  : kubeadm-1.15.2-0.x86_64                                                                                                                                                                                                 4/10 
  Verifying  : kubectl-1.15.2-0.x86_64                                                                                                                                                                                                 5/10 
  Verifying  : cri-tools-1.13.0-0.x86_64                                                                                                                                                                                               6/10 
  Verifying  : libnetfilter_cthelper-1.0.0-9.el7.x86_64                                                                                                                                                                                7/10 
  Verifying  : kubernetes-cni-0.7.5-0.x86_64                                                                                                                                                                                           8/10 
  Verifying  : socat-1.7.3.2-2.el7.x86_64                                                                                                                                                                                              9/10 
  Verifying  : conntrack-tools-1.4.4-4.el7.x86_64                                                                                                                                                                                     10/10 

Installed:
  kubeadm.x86_64 0:1.15.2-0                                                     kubectl.x86_64 0:1.15.2-0                                                     kubelet.x86_64 0:1.15.2-0                                                    

Dependency Installed:
  conntrack-tools.x86_64 0:1.4.4-4.el7  cri-tools.x86_64 0:1.13.0-0  kubernetes-cni.x86_64 0:0.7.5-0  libnetfilter_cthelper.x86_64 0:1.0.0-9.el7  libnetfilter_cttimeout.x86_64 0:1.0.0-6.el7  libnetfilter_queue.x86_64 0:1.0.2-2.el7_2 
  socat.x86_64 0:1.7.3.2-2.el7         

Complete!
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /usr/lib/systemd/system/kubelet.service.
[root@kubemaster kubernetes_onestepinstall]# 

정리하면 다음과 같습니다.

인터넷 환경에서 Kubernetes를 설치하기 위해서는 다음과 같습니다.


1) Virtual Box 및 CentOS 설치

2) git 설치 (yum install -y git)

3) git repository 다운로드 (git clone https://github.com/sonnaraon/kubernetesonestepboot.git)

4) Shell Script 실행을 위한 이동 (cd $GIT_REPO_HOME/kubernetesonestepboot/kubernetes_onestepinstall/)

5) Shell Script 실행 (sh 1.kubernetesOneStepInstallByInternet.sh)


쉽죠?

이번 포스팅은 여기서 마치고 다음시간에 보다 상세한 설정도 원스텝으로 구성하고 샘플 애플리케이션까지 확인해 보는 시간을 갖도록 하겠습니다.

그전에 과제를 하나 드리자면, 현재 설치한 구성이 Master Node라면 동일한 구성으로 Worker Node로 사용할 VM을 하나 더 생성하고 동일한 설치 과정으로 준비한 이후 다음 포스팅을 보시기를 권고드립니다.

728x90
반응형