OpenShift Installation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(36 intermediate revisions by the same user not shown)
Line 5: Line 5:
=Internal=
=Internal=


* [[OpenShift#Subjects|OpenShift]]
* [[OpenShift TODEPLETE#Subjects|OpenShift TODEPLETE]]


=Overview=
=Overview=


There are two installation methods: ''quick install'', which uses a CLI tool available in the "atomic-openshift-utils" package, which, in turn, uses [[Ansible]] in the background, and ''advanced install''. The advanced install assumes familiarity with [[Ansible]].
{{Internal|OpenShift_Concepts#Installation|Installation Concepts}}


=Prerequisites=
=Subjects=


==System Requirements==
* [[OpenShift 3.5 Installation|OpenShift 3.5 HA Installation]]
* [[OpenShift 3.6 Installation]]


Relevance OpenShift 3.3.
=Installation Troubleshooting=


===Master===
ansible-playbood -vvv /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/openshift-metrics.yml > install.out


* Physical or virtual system.
This generates an installation log that contains the location of the installation files (templates) on the target nodes.
* RHEL 7.1 installed with the "minimal" installation option.
* 2 CPUs
* 8 GB RAM
* 30 GB storage space.


===Node===
Example:


* Physical or virtual system.
ok: [master1.local] => {
* RHEL 7.1 installed with the "minimal" installation option.
    "changed": false,
* 1 CPU
    "checksum": "cc1e65bb730ab21e3f0c352251cd1d094f1259f1",
* 8 GB RAM
    <b><font color=orange>"dest": "/tmp/openshift-metrics-ansible-C6Xjkq/templates/metrics-heapster-rc.yaml", </font></b>
* 15 GB storage space.
    "gid": 0,
* Docker 1.9.1 or later
    "group": "root",
* 15 GB to allocated to Docker storage.
    "invocation": {
 
        "module_args": {
==DNS Setup==
            "backup": false,
 
            "content": null,
A DNS server is required.
            "delimiter": null,
 
            "dest": "/tmp/openshift-metrics-ansible-C6Xjkq/templates/metrics-heapster-rc.yaml",  
After setup, the DNS server needs to be configured to resolve a public wildcard DNS entry to the public IP address of the [[OpenShift Concepts#Node|node]] that executes the [[OpenShift_Concepts#Router|default router]], by adding an [[DNS_Concepts#A_.28Host.29|A record]], with a low TTL. If the environment has multiple routers, an external load balancer is required.
            "directory_mode": null,  
 
            "follow": true,  
<pre>
            "force": true,  
*.myapp.example.com. 300 IN  A 1.2.3.4
            "group": null,
</pre>
            "mode": null,
 
            "original_basename": "heapster.j2",
=O/S Installation=
            "owner": null,
 
            "regexp": null,
Execute a ''minimal'' installation on all hosts.
            "remote_src": null,
 
            "selevel": null,
Register all hosts with [[Red Hat Subscription Manager]] and register
            "serole": null,
 
            "setype": null,
=Run CLI to Install=
            "seuser": null,
 
            "src": "/home/ansible/.ansible/tmp/ansible-tmp-1508226983.15-262452251753895/source",
=Post-Install=
            "unsafe_writes": null,
 
            "validate": null
==Deploy the Integrated Docker Registry==
        }
 
    },
==Deploy the HAProxy Router==
    "md5sum": "b26056e8d1d246431cabdcc1d0f4dc09",
 
    "mode": "0644",
==Load Image Streams==
    "owner": "root",
 
    "secontext": "unconfined_u:object_r:user_home_t:s0",
==Load Templates==
    "size": 2456,
 
    "src": "/home/ansible/.ansible/tmp/ansible-tmp-1508226983.15-262452251753895/source",
==Set up NFS==
    "state": "file",
 
    "uid": 0
The NFS server is required for [[OpenShift_Concepts#Volume|persistent volumes]].
}

Latest revision as of 19:54, 18 November 2020

External

Internal

Overview

Installation Concepts

Subjects

Installation Troubleshooting

ansible-playbood -vvv /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/openshift-metrics.yml > install.out

This generates an installation log that contains the location of the installation files (templates) on the target nodes.

Example:

ok: [master1.local] => {
    "changed": false, 
    "checksum": "cc1e65bb730ab21e3f0c352251cd1d094f1259f1", 
    "dest": "/tmp/openshift-metrics-ansible-C6Xjkq/templates/metrics-heapster-rc.yaml", 
    "gid": 0, 
    "group": "root", 
    "invocation": {
        "module_args": {
            "backup": false, 
            "content": null, 
            "delimiter": null, 
            "dest": "/tmp/openshift-metrics-ansible-C6Xjkq/templates/metrics-heapster-rc.yaml", 
            "directory_mode": null, 
            "follow": true, 
            "force": true, 
            "group": null, 
            "mode": null, 
            "original_basename": "heapster.j2", 
            "owner": null, 
            "regexp": null, 
            "remote_src": null, 
            "selevel": null, 
            "serole": null, 
            "setype": null, 
            "seuser": null, 
            "src": "/home/ansible/.ansible/tmp/ansible-tmp-1508226983.15-262452251753895/source", 
            "unsafe_writes": null, 
            "validate": null
        } 
    }, 
   "md5sum": "b26056e8d1d246431cabdcc1d0f4dc09", 
   "mode": "0644", 
   "owner": "root", 
   "secontext": "unconfined_u:object_r:user_home_t:s0", 
   "size": 2456, 
   "src": "/home/ansible/.ansible/tmp/ansible-tmp-1508226983.15-262452251753895/source", 
   "state": "file", 
   "uid": 0
}