# 官方提供@yunTaoScripts Openshift 搭建 🔥🔥
Openshift 有两个版本,一个开源版origin,一个企业版ose
- 修改系统时间
[root@foundation0 ~]# date -s "2020-01-01 10:00:00"
Wed Jan 1 10:00:00 CST 2020
[root@foundation0 ~]# date
Wed Jan 1 10:00:03 CST 2020
[root@foundation0 ~]# hwclock -w
- 重置虚拟机
[root@foundation0 ~]# rht-vmctl reset classroom -i
[root@foundation0 ~]# rht-vmctl reset all -i
- 主机分配
172.25.250.10 master.lab.example.com master #k8s m 节点
172.25.250.11 node1.lab.example.com node1 #k8s node 节点
172.25.250.12 node2.lab.example.com node2 #k8s node 节点
172.25.250.13 services.lab.example.com services # nas 存储
172.25.250.13 registry.lab.example.com registry
172.25.250.254 workstation.lab.example.com workstation # ansible 主机
# classroom yum源 ,git 仓库
- 登陆ansible 主机
[root@foundation0 ~]# ssh workstation
Last login: Thu Jan 2 04:25:16 2020 from 172.25.250.250
[student@workstation ~]$ lab install-prepare setup
[student@workstation ~]$ ./install.sh
- 获取安装节点
ssh root@master
oc get nodes
快速链接 →