OpenShift: Difference between revisions

no edit summary
No edit summary
Line 51:
* Restart all 3 hosts
 
= Installing =
= Ansible Configuration =
 
== Openshift 3.9 ==
 
Create ansible hosts file
nano /etc/ansible/hosts
 
<pre>
 
# Create an OSEv3 group that contains the masters and nodes groups
[OSEv3:children]
Line 85 ⟶ 87:
Openshift02 openshift_node_labels="{'region': 'primary', 'zone': 'east'}" openshift_hostname=Openshift02 openshift_public_hostname=Openshift02
Openshift03 openshift_node_labels="{'region': 'primary', 'zone': 'west'}" openshift_hostname=Openshift03 openshift_public_hostname=Openshift03
 
</pre>
 
* If parsing of this file fails, change the Quotes & Double Quotes symbols.
 
= OpenShift Installation =
 
*Download the Files:
git clone --single-branch -b release-3.9 https://github.com/openshift/openshift-ansible
 
*Install Prerequisites:
ansible-playbook -i /etc/ansible/hosts openshift-ansible/playbooks/prerequisites.yml
 
*Install OpenShift:
ansible-playbook -i /etc/ansible/hosts openshift-ansible/playbooks/deploy_cluster.yml
 
*You should see similar output once done:
<pre>
PLAY RECAP *****************************************************************************************************
Line 120:
Service Catalog Install : Complete (0:07:04)
</pre>
 
 
== Openshift 3.10 ==
 
nano playbooks/init/base_packages.yml
 
 
changing the line:
"{{ 'python3-docker' if ansible_distribution == 'Fedora' else 'python-docker' }}"
to
"{{ 'python3-docker' if ansible_distribution == 'Fedora' else 'python-docker-py' }}"
 
 
<pre>
[OSEv3:children]
masters
nodes
etcd
 
[OSEv3:vars]
# admin user created in previous section
ansible_ssh_user=root
ansible_become=true
openshift_deployment_type=origin
 
# use HTPasswd for authentication
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider'}]
# define default sub-domain for Master node
#openshift_master_default_subdomain=apps.srv.world
# allow unencrypted connection within cluster
openshift_docker_insecure_registries=172.30.0.0/16
 
[masters]
Openshift01 openshift_schedulable=true containerized=false
 
[etcd]
Openshift01
 
[nodes]
# defined values for [openshift_node_group_name] in the file below
# [/usr/share/ansible/openshift-ansible/roles/openshift_facts/defaults/main.yml]
Openshift01 openshift_node_group_name='node-config-master-infra'
Openshift02 openshift_node_group_name='node-config-compute'
Openshift03 openshift_node_group_name='node-config-compute'
 
# if you'd like to separate Master node feature and Infra node feature, set like follows
# ctrl.srv.world openshift_node_group_name='node-config-master'
# Openshift02 openshift_node_group_name='node-config-compute'
# Openshift03 openshift_node_group_name='node-config-infra'
</pre>
 
 
 
 
 
= WebUI =