OpenShift cluster up notes

Published (last updated )

Notes about oc cluster up on RHEL Atomic hostname

  1. add –insecure-registry setting to /etc/sysconfig/docker
  2. add -H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375 –insecure-registry 172.30.0.0/16 option to /etc/sysconfig/docker
  3. install oc client in /root/.local/bin
  4. oc cluster up --base-dir=/root/.openshift --enable='automation-service-broker,centos-imagestreams,persistent-volumes,registry,rhel-imagestreams,router,-sample-templates,service-catalog,template-service-broker,web-console' --public-hostname=10.10.11.3
  5. running into issue where everything redirects to localhost/127.0.0.1
  6. fgrep -RIl localhost:8443 /root/.openshift | xargs sed -i 's/localhost:8443/10.10.11.3:8443/g'
  7. oc cluster down
  8. oc cluster up --base-dir=/root/.openshift --public-hostname=10.10.11.3