1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| wget -c 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 mv openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit/oc /usr/local/bin/ mv openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit/kubectl /usr/local/bin/
cat << EOF >> /etc/hosts 172.26.252.34 okd.xc 127.0.0.1 okd.xc EOF
rm -rf openshift.local.clusterup oc cluster up --skip-registry-check=true --public-hostname=okd.xc --write-config=true
sed -i 's/router\.default\.svc\.cluster\.local/pod\.xc/g' openshift.local.clusterup/openshift-controller-manager/master-config.yaml sed -i 's/router\.default\.svc\.cluster\.local/pod\.xc/g' openshift.local.clusterup/openshift-apiserver/master-config.yaml sed -i 's/127\.0\.0\.1\.nip\.io/pod\.xc/g' openshift.local.clusterup/openshift-controller-manager/master-config.yaml sed -i 's/127\.0\.0\.1\.nip\.io/pod\.xc/g' openshift.local.clusterup/openshift-apiserver/master-config.yaml
oc cluster up --skip-registry-check=true --public-hostname=okd.xc oc login -u system:admin oc adm policy add-cluster-role-to-user admin xinchen
|