OpenShift
作者:胡小根
邮箱:hxg@haomo-studio.com
概述
安装和使用
Ubuntu 18.04下安装
wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
tar zxvf openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz openshift-origin-client-tools
echo "export PATH=$PATH:$PWD" >> ~/.zshrc
cd openshift-origin-client-tools
oc cluster up --public-hostname=192.168.201.182 --loglevel=8 --skip-registry-check=true
# 注意:3.11.0版本,存在bug,需要运行以下命令
fgrep -RIl 127.0.0.1:8443 openshift.local.clusterup/ | xargs sed -i 's/127.0.0.1:8443/192.168.201.182:8443/g'
访问:https://
FAQ
运行oc cluster up卡住:Waiting for the kube-apiserver to be ready ...
解决办法:
*