This repository contains the deployment configuration for setting up an all-in-one OpenShift Origin system using OpenShift-Ansible for testing purposes.
Set up a CentOS 7 VM
Install the Origin 3.11 repo: sudo yum install centos-release-openshift-origin311
Install Git, pyOpenSSL, and Ansible: sudo yum install git pyOpenSSL ansible
Clone OpenShift-Ansible on the release-3.11 branch: git clone --branch release-3.11 https://github.com/openshift/openshift-ansible.git
Clone this repo: git clone https://pagure.io/openshift-allinone-deployment-configuration.git
Change into the openshift-ansible
directory.
Run the playbook to prep the system: sudo ansible-playbook -i ../openshift-allinone-deployment-configuration/localhost.example playbooks/prerequisites.yml
Run the playbook to deploy the cluster: sudo ansible-playbook -i ../openshift-allinone-deployment-configuration/localhost.example playbooks/deploy_cluster.yml
Set yourself as cluster admin: oc adm policy add-cluster-role-to-user cluster-admin developer
Set the registry storage uid/gid to 1001:root
: chown -R 1001:root /var/lib/origin-registry
Add registry user to privileged security context: oc adm policy add-scc-to-user privileged system:serviceaccount:default:registry
Edit the YAML for the docker-registry
resource in the default
project to change the privileged
setting to privileged: true
(hint. oc edit dc/docker-registry
)
Create an empty /etc/rhsm/ca/redhat-uep.pem
file: sudo touch /etc/rhsm/ca/redhat-uep.pem