Openshift-minishift安装

这里安装的是1.28.0
具体过程参考官方文档:
https://docs.okd.io/latest/minishift/getting-started/quickstart.html
现介绍实验时遇到的问题及解决方法。

minishift安装时会自动下载openshift等镜像文件,需确保网络或离线预先下载所需文件。

网络不好可能出现以下:
1.-- Checking if requested OpenShift version ‘v3.11.0’ is valid … v3.11.0 is not a valid OpenShift versionFAIL

2.E1217 09:13:11.967660 2363 run_self_hosted.go:571] API server error: Get https://192.168.99.100:8443/healthz?timeout=32s: dial tcp 192.168.99.100:8443: connect: connection refused ()

3.E1218 01:06:13.234152 2406 interface.go:34] Failed to install “openshift-web-console-operator”: timed out waiting for the condition
I1218 01:06:13.234709 2406 interface.go:41] Finished installing “centos-imagestreams” “openshift-image-registry” “openshift-router” “persistent-volumes” “sample-templates” “openshift-web-console-operator”
Error: timed out waiting for the condition

在安装过程中遇到kvm无法创建虚拟主机的情况,改用virtualbox

另外在使用virtualbox时:
Importing ‘openshift/origin-control-plane:v3.11.0’ CACHE MISS
Importing ‘openshift/origin-docker-registry:v3.11.0’ CACHE MISS
Importing ‘openshift/origin-haproxy-router:v3.11.0’ CACHE MISS
openshift/origin-cli:v3.11.0
使用minishift ssh登录虚拟机手动拉取镜像,关闭virtualbox重新开始。

在网络好的情况下,出现以下问题,但web界面可以正常进入
OpenShift server started.

The server is accessible via web console at:
https://192.168.99.100:8443/console

You are logged in as:
User: developer
Password:

To login as administrator:
oc login -u system:admin

Could not set oc CLI context for ‘minishift’ profile: Error during setting ‘minishift’ as active profile: The specified path to the kube config ‘/home/adson/.minishift/machines/minishift_kubeconfig’ does not exist
Openshift-minishift安装
[email protected]:~$ minishift oc-env
export PATH="/home/adson/.minishift/cache/oc/v3.11.0/linux:$PATH"
#Run this command to configure your shell:
#eval (minishiftocenv)adson@adsonThinkPadT450: (minishift oc-env) [email protected]:~ eval $(minishift oc-env)

[[email protected] ~]$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/openshift/origin-node v3.11.0 09155f3d6e1c 11 days ago 1.16 GB
docker.io/openshift/origin-control-plane v3.11.0 571bf0129014 11 days ago 825 MB
docker.io/openshift/origin-haproxy-router v3.11.0 0ccbbe057e4a 11 days ago 407 MB
docker.io/openshift/origin-hypershift v3.11.0 3d5b7b2d6450 11 days ago 546 MB
docker.io/openshift/origin-hyperkube v3.11.0 a6314b0fc67a 11 days ago 506 MB
docker.io/openshift/origin-cli v3.11.0 44cae6afabba 11 days ago 380 MB
docker.io/openshift/origin-pod v3.11.0 842871e974c0 11 days ago 258 MB
docker.io/openshift/origin-docker-registry v3.11.0 a0d5ad164395 8 weeks ago 305 MB
docker.io/openshift/origin-service-serving-cert-signer v3.11 47dadf9d43b6 8 weeks ago 276 MB