最快速体验openshift目前最新版本3.9的方法 。
事前准备
[root@host ~]# git clone http://github.com/liumiaocn/easypack.gitCloning into 'easypack'...remote: Counting objects: 1050, done.remote: Compressing objects: 100% (59/59), done.remote: Total 1050 (delta 29), reused 6 (delta 3), pack-reused 985Receiving objects: 100% (1050/1050), 157.41 KiB | 0 bytes/s, done.Resolving deltas: 100% (464/464), done.[root@host ~]# cd easypack/openshift/[root@host openshift]# lsinstall-openshift.sh[root@host openshift]#安装
安装命令:sh install-openshift.sh[root@host openshift]# sh install-openshift.sh Sun May 6 09:16:16 EDT 2018## Step 1: OS version confirm: Linux host.localdomain 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/LinuxCentOS Linux release 7.3.1611 (Core) ## Install docker Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirror.it.ubc.ca * extras: mirror.it.ubc.ca * updates: mirror.csclub.uwaterloo.ca...安装dockerSun May 6 09:16:16 EDT 2018## Step 2: Set net.ipv4.ip_forwardnet.ipv4.ip_forward=1net.ipv4.ip_forward=1sysctl net.ipv4.ip_forwardnet.ipv4.ip_forward = 1Sun May 6 09:16:17 EDT 2018## Step 3: Set registry & Restart docker{"insecure-registries": ["172.30.0.0/16"]}## systemctl daemon-reload## systemctl restart docker## confirm docker versionClient: Version:1.13.1 API version:1.26 Package version:
相关的镜像
[root@host openshift]# docker images |grep openshiftdocker.io/openshift/origin-web-consolev3.9.06d397283b9246 days ago489 MBdocker.io/openshift/origin-docker-registryv3.9.045f47bc77de86 days ago458 MBdocker.io/openshift/origin-haproxy-routerv3.9.042e8fd168a7a6 days ago1.28 GBdocker.io/openshift/origin-deployerv3.9.02dcb16bd17a46 days ago1.25 GBdocker.io/openshift/originv3.9.0e28708220c0b6 days ago1.25 GBdocker.io/openshift/origin-pod v3.9.0b549aa96e0a76 days ago220 MB[root@host openshift]#验证管理员权限
[root@host openshift]# oc login -u system:adminLogged into "https://127.0.0.1:8443" as "system:admin" using existing credentials.You have access to the following projects and can switch between them with 'oc project ':defaultkube-publickube-system * myprojectopenshiftopenshift-infraopenshift-nodeopenshift-web-consoleUsing project "myproject".[root@host openshift]#本地连接方式
ssh -p 10023 -L 80:127.0.0.1:80 127.0.0.1ssh -p 10023 -L 8443:127.0.0.1:8443 127.0.0.1https://127.0.0.1:8443总结
【快速安装openshift的步骤详解】以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,谢谢大家对考高分网的支持 。如果你想了解更多相关内容请查看下面相关链接
- 春季老年人吃什么养肝?土豆、米饭换着吃
- 三八妇女节节日祝福分享 三八妇女节节日语录
- 老人谨慎!选好你的“第三只脚”
- 校方进行了深刻的反思 青岛一大学生坠亡校方整改校规
- 脸皮厚的人长寿!有这特征的老人最长寿
- 长寿秘诀:记住这10大妙招 100%增寿
- 春季老年人心血管病高发 3条保命要诀
- 眼睛花不花要看四十八 老年人怎样延缓老花眼
- 香槟然能防治老年痴呆症? 一天三杯它人到90不痴呆
- 老人手抖的原因 为什么老人手会抖
